Documentation ¶
Overview ¶
Package ack
Package ack
Index ¶
- Constants
- type Ack
- type GinAck
- func (ga *GinAck) GinErrorAbort(ServerCode int, errorCode string, errorMessage string)
- func (ga *GinAck) GinSend(payload interface{})
- func (ga *GinAck) MakeError(ServerCode int, errorCode string, errorMessage string)
- func (ga *GinAck) SetPayload(payload interface{})
- func (ga *GinAck) SetPayloadType(payloadType string)
- func (ga *GinAck) UnmarshalAbort(data []byte, v interface{}) error
- func (ga *GinAck) UnmarshalPostAbort(v interface{}) error
- type MappedMetricFamily
Constants ¶
View Source
const VERSION = 8
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Ack ¶
type Ack struct { Version int `json:"ack_version"` Agent string `json:"agent"` SrvEnv string `json:"srv_env"` SrvNS string `json:"srv_ns"` Uuid string `json:"ack_uuid"` RequestUuid string `json:"req_uuid"` DateTime string `json:"date_time"` Success bool `json:"success"` ErrorCode string `json:"error_code"` ErrorMessage string `json:"error_message"` ServerCode int `json:"server_code"` Location string `json:"location"` PayloadType string `json:"payload_type"` Payload interface{} `json:"payload"` Duration string `json:"duration"` // contains filtered or unexported fields }
func (*Ack) SetPayload ¶
func (a *Ack) SetPayload(payload interface{})
func (*Ack) SetPayloadType ¶
func (*Ack) StartTimer ¶
func (a *Ack) StartTimer()
type GinAck ¶
type GinAck struct { Ack Ack // contains filtered or unexported fields }
GinAck
func (*GinAck) GinErrorAbort ¶
GinError aborts gin context with JSON error
func (*GinAck) GinSend ¶
func (ga *GinAck) GinSend(payload interface{})
GinSend responds with JSON on the gin context
func (*GinAck) UnmarshalAbort ¶
UnmarshalAbort unmarshals data and aborts if it can not.
func (*GinAck) UnmarshalPostAbort ¶
UnmarshalPostAbort unmarshal raw data posted through gin or aborts.
type MappedMetricFamily ¶
type MappedMetricFamily map[string]*ioprometheusclient.MetricFamily
MappedMetricFamily
Click to show internal directories.
Click to hide internal directories.