Documentation ¶
Index ¶
- Constants
- type Agent
- type AgentConfig
- type AmqpSinkConfig
- type AmqpSourceConfig
- type Bridge
- type BridgeConfig
- type Config
- type FileSourceConfig
- type InfluxConfig
- type Usage
- type UsageSink
- type WebsocketSourceConfig
- type ZitiEventAMQP
- type ZitiEventJson
- type ZitiEventJsonMsg
- type ZitiEventJsonSink
- type ZitiEventJsonSource
- type ZitiEventMsg
Constants ¶
View Source
const ZitiSession = "zt-session"
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Agent ¶
type Agent struct {
// contains filtered or unexported fields
}
func NewAgent ¶
func NewAgent(cfg *AgentConfig, str *store.Store, ifxCfg *InfluxConfig) (*Agent, error)
func (*Agent) AddUsageSink ¶
type AgentConfig ¶
type AgentConfig struct {
Source interface{}
}
type AmqpSinkConfig ¶
type AmqpSourceConfig ¶
type Bridge ¶
type Bridge struct {
// contains filtered or unexported fields
}
func NewBridge ¶
func NewBridge(cfg *BridgeConfig) (*Bridge, error)
type BridgeConfig ¶
type BridgeConfig struct { Source interface{} Sink interface{} }
type Config ¶
type Config struct { Influx *InfluxConfig Agent *AgentConfig }
type FileSourceConfig ¶
type InfluxConfig ¶
type Usage ¶
type Usage struct { ProcessedStamp time.Time IntervalStart time.Time ZitiServiceId string ZitiCircuitId string EnvironmentId int64 AccountId int64 FrontendTx int64 FrontendRx int64 BackendTx int64 BackendRx int64 }
func Ingest ¶
func Ingest(event ZitiEventJson) (*Usage, error)
type WebsocketSourceConfig ¶
type WebsocketSourceConfig struct { WebsocketEndpoint string // wss://127.0.0.1:1280/fabric/v1/ws-api ApiEndpoint string // https://127.0.0.1:1280 Username string Password string `cf:"+secret"` }
type ZitiEventAMQP ¶
type ZitiEventAMQP struct {
// contains filtered or unexported fields
}
func (*ZitiEventAMQP) Ack ¶
func (e *ZitiEventAMQP) Ack() error
func (*ZitiEventAMQP) Data ¶
func (e *ZitiEventAMQP) Data() ZitiEventJson
type ZitiEventJson ¶
type ZitiEventJson string
type ZitiEventJsonMsg ¶
type ZitiEventJsonMsg struct {
// contains filtered or unexported fields
}
func (*ZitiEventJsonMsg) Ack ¶
func (e *ZitiEventJsonMsg) Ack() error
func (*ZitiEventJsonMsg) Data ¶
func (e *ZitiEventJsonMsg) Data() ZitiEventJson
type ZitiEventJsonSink ¶
type ZitiEventJsonSink interface {
Handle(event ZitiEventJson) error
}
type ZitiEventJsonSource ¶
type ZitiEventJsonSource interface { Start(chan ZitiEventMsg) (join chan struct{}, err error) Stop() }
type ZitiEventMsg ¶
type ZitiEventMsg interface { Data() ZitiEventJson Ack() error }
Click to show internal directories.
Click to hide internal directories.