handlers

package
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: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func FromJSON

func FromJSON(i interface{}, r io.Reader) error

func ToJSON

func ToJSON(i interface{}, w io.Writer) error

Types

type Attributes

type Attributes struct {
	Type string `json:"type"`
}

type Config

type Config struct {
	JsonDirPath string
}

type Handler

type Handler struct {
	// contains filtered or unexported fields
}

func GetHandler

func GetHandler(l *zap.Logger, cfg *Config) (*Handler, error)

func (*Handler) CreateCSVFile

func (h *Handler) CreateCSVFile(dir, fileName string) (*os.File, error)

func (*Handler) GetMCLI

func (h *Handler) GetMCLI(w http.ResponseWriter, r *http.Request)

func (*Handler) GetMCLIToSearch

func (h *Handler) GetMCLIToSearch(w http.ResponseWriter, r *http.Request)

func (*Handler) GetMeasureCalcs

func (h *Handler) GetMeasureCalcs(w http.ResponseWriter, r *http.Request)

func (*Handler) Getmcliquery

func (h *Handler) Getmcliquery(w http.ResponseWriter, r *http.Request)

type MCLIRecords

type MCLIRecords struct {
	Attributes  Attributes `json:"attributes"`
	Condition   string     `json:"Condition__c"`
	Formula     string     `json:"Measure_Formula__c"`
	Id          string     `json:"Id"`
	MeasureCalc string     `json:"Measure_Calculation__c"`
	IsDeleted   bool       `json:"IsDeleted"`
}

type MCLIResponse

type MCLIResponse struct {
	TotalSize   int           `json:"totalSize"`
	Done        bool          `json:"done"`
	MCLIRecords []MCLIRecords `json:"records"`
}

type MeasureCalcRecords

type MeasureCalcRecords struct {
	Attributes  Attributes `json:"attributes"`
	FieldToCalc string     `json:"CLI_CNR_Field_to_calculate__c"`
	Formula     string     `json:"CLR_CNI_Mesaure_Formula__c"`
	Sequence    float32    `json:"CLR_CNI_Sequence__c"`
	Id          string     `json:"Id"`
	Name        string     `json:"Name"`
	ProgramName string     `json:"Program_Name__c"`
	IsDeleted   bool       `json:"IsDeleted"`
}

type MeasureCalcsResponse

type MeasureCalcsResponse struct {
	TotalSize          int                  `json:"totalSize"`
	Done               bool                 `json:"done"`
	MeasureCalcRecords []MeasureCalcRecords `json:"records"`
}

Jump to

Keyboard shortcuts

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