rabbitmq

package module
v0.0.0-...-9d2be39 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Aug 23, 2024 License: MIT Imports: 6 Imported by: 1

Documentation

Index

Constants

View Source
const (
	PicklistQueryEvent = "picklistquery.created"
)

Variables

This section is empty.

Functions

func ConnectAmqp

func ConnectAmqp(config *Config, l *zap.Logger) (*amqp.Channel, func() error, error)

Types

type Config

type Config struct {
	AmqpUser    string
	AmqpPass    string
	AmqpHost    string
	AmqpPort    string
	JsonDirPath string
}

func LoadConfig

func LoadConfig(l *zap.Logger) (*Config, error)

type CustomRecords

type CustomRecords struct {
	Id             string        `json:"Id"`
	MeasureNameNew string        `json:"Measure_Name_New__c,omitempty"`
	RecTypeName    string        `json:"Record_Type_Name__c,omitempty"`
	RecTypeId      string        `json:"Record_Type_Id__c,omitempty"`
	ProgRec        ProgramRecord `json:"Program__r,omitempty"`
}

type EquipmentRecord

type EquipmentRecord struct {
	ProgName    string `json:"Program_Name__c"`
	MeasureName string `json:"Measure_Description__c"`
	PicklistVal string `json:"Equipment_Type__c"`
}

type EquipmentRecords

type EquipmentRecords []EquipmentRecord

type PicklistMappedResp

type PicklistMappedResp struct {
	Eqs  EquipmentRecords      `json:"equipment_records,omitempty"`
	Recs RecommendationRecords `json:"recommendation_records,omitempty"`
}

type PicklistQueryResponse

type PicklistQueryResponse struct {
	PicklistValues []PicklistValue `json:"Values"`
}

type PicklistQueueRequest

type PicklistQueueRequest struct {
	Method      string        `json:"Method"`
	Url         string        `json:"Url"`
	Body        io.Reader     `json:"Body"`
	AccessToken string        `json:"AccessToken"`
	CustomObj   CustomRecords `json:"record"`
	RecordType  string        `json:"recordType"`
}

type PicklistValue

type PicklistValue struct {
	PickValues string `json:"value"`
}

type ProgramRecord

type ProgramRecord struct {
	Name string `json:"Name,omitempty"`
}

type RecommendationRecord

type RecommendationRecord struct {
	ProgName    string `json:"Program_Name__c"`
	MeasureName string `json:"Measure_Description__c"`
	PicklistVal string `json:"Recommendation__c"`
}

type RecommendationRecords

type RecommendationRecords []RecommendationRecord

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL