Documentation
¶
Index ¶
Constants ¶
View Source
const ( MetricActiveConnections = "active_connections" MetricEventsSent = "events_sent_total" MetricConnectionErrors = "connection_errors_total" MetricEventLatency = "event_delivery_latency_seconds" MetricKeepalivesSent = "keepalives_sent_total" LabelEventType = "event_type" LabelErrorType = "error_type" ErrorTypeBufferFull = "buffer_full" ErrorTypeNoConnection = "no_connection" ErrorTypeWriteFailure = "write_failure" ErrorTypeMarshalError = "marshal_error" )
Metric constants.
Variables ¶
View Source
var (
ErrNoConnection = errors.New("no connection")
)
Functions ¶
Types ¶
type Config ¶
type Config struct {
// contains filtered or unexported fields
}
func DefaultConfig ¶ added in v1.34.3
func DefaultConfig() Config
func (*Config) KeepAlivePeriod ¶
type Event ¶
type Event struct {
Type smsgateway.PushEventType `json:"event"`
Data map[string]string `json:"data"`
}
Click to show internal directories.
Click to hide internal directories.