Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type FileWriter ¶
type FileWriter struct { FilenameFunc func(*FileWriter) string // contains filtered or unexported fields }
FileWriter 文件写入结构体
func NewFileWriter ¶
func NewFileWriter(opts ...Option) (*FileWriter, error)
NewFileWriter 实例化FileWriter, 支持大文件分割
type Option ¶
type Option func(*Options)
Option set options
func WithBufferSize ¶ added in v0.1.9
WithBufferSize set loki buffer size
func WithLokiEndpoint ¶ added in v0.1.9
WithLokiEndpoint set loki endpoint
func WithLokiInterval ¶ added in v0.1.9
WithLokiInterval set loki interval
func WithLokiLabels ¶ added in v0.1.9
WithLokiLabels set loki labels
Click to show internal directories.
Click to hide internal directories.