Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CreateConsumerCluster ¶
Types ¶
type DockerSpec ¶
type DockerSpec struct {
ContainerId string `json:"container_id"`
}
type KubernetesSpec ¶
type LabelsSpec ¶
type LogConsumer ¶
type LogConsumer struct { AppLogs chan *kafka.Message BuildLogs chan *kafka.Message WebLogs chan *kafka.Message IstioWebLogs chan *kafka.Message IsOpen bool // contains filtered or unexported fields }
func (*LogConsumer) Close ¶
func (lc *LogConsumer) Close()
func (*LogConsumer) Init ¶
func (lc *LogConsumer) Init(kafkaAddrs []string, kafkaGroup string)
func (*LogConsumer) MarkOffset ¶
func (lc *LogConsumer) MarkOffset(msg *kafka.Message)
func (*LogConsumer) Open ¶
func (lc *LogConsumer) Open() error
func (*LogConsumer) Refresh ¶
func (lc *LogConsumer) Refresh() error
type LogProducer ¶
type LogProducer struct { IsOpen bool // contains filtered or unexported fields }
func (*LogProducer) AddLog ¶
func (lc *LogProducer) AddLog(message LogSpec) error
func (*LogProducer) AddRaw ¶ added in v1.0.3
func (lc *LogProducer) AddRaw(topic string, message string) error
func (*LogProducer) Close ¶
func (lc *LogProducer) Close()
func (*LogProducer) Init ¶
func (lc *LogProducer) Init(kafkaAddrs []string, kafkaGroup string) error
func (*LogProducer) Open ¶
func (lc *LogProducer) Open() error
type LogSpec ¶
type LogSpec struct { Log string `json:"log"` Stream string `json:"stream"` Time time.Time `json:"time"` Space string `json:"space"` Docker DockerSpec `json:"docker"` Kubernetes KubernetesSpec `json:"kubernetes"` Topic string `json:"topic"` Tag string `json:"tag"` Site string `json:"site,omitempty"` SitePath string `json:"site,omitempty"` Path string `json:"site,omitempty"` }
Click to show internal directories.
Click to hide internal directories.