adapters

package
v1.2.98 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Oct 14, 2024 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewEsLog

func NewEsLog(index, id string, opt goes.Config) *golog.Logger

func NewFileLog

func NewFileLog(opts ...FileOption) *golog.Logger

func NewKafkaLog

func NewKafkaLog(topic string, opt gokafka.Config) *golog.Logger

Types

type EsAdapter

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

func NewEsAdapter

func NewEsAdapter(index, id string, opt goes.Config) *EsAdapter

func (*EsAdapter) Write

func (fa *EsAdapter) Write(msg *golog.Message)

type FileAdapter

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

func NewFileAdapter

func NewFileAdapter(opt ...FileOption) *FileAdapter

func (*FileAdapter) Write

func (fa *FileAdapter) Write(msg *golog.Message)

type FileOption

type FileOption interface {
	// contains filtered or unexported methods
}

func FileMaxSizeOption

func FileMaxSizeOption(maxSize int64) FileOption

func FilePathOption

func FilePathOption(filepath string) FileOption

type KafkaAdapter

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

func NewKafkaAdapter

func NewKafkaAdapter(topic string, opt gokafka.Config) *KafkaAdapter

func (*KafkaAdapter) CloseKafka

func (fa *KafkaAdapter) CloseKafka()

func (*KafkaAdapter) Write

func (fa *KafkaAdapter) Write(msg *golog.Message)

Jump to

Keyboard shortcuts

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