Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Writer ¶
type Writer struct {
// contains filtered or unexported fields
}
func (*Writer) SetEndpoint ¶
SetEndpoint sets the loki endpoint. This method IS NOT thread safe. It should be used just after config is loaded
type WriterOptions ¶
type WriterOptions struct { LokiEndpoint string // ChildWriter is used to pass logs to another writer // default: os.Stdout ChildWriter io.Writer // DefaultRecordsBufferSize is your expected number of `(logs per second) / (1000 / FlushTimeout)` // default: 100 DefaultRecordsBufferSize uint32 // EmptyEndpointMaxBufferSize is the number of logs to buffer if LokiEndpoint == "". // it's useful if you log a few things before your config with the loki endpoint is full loaded // default: 200 EmptyEndpointMaxBufferSize uint32 // FlushTimeout in ms // default: 200 FlushTimeout uint32 }
Click to show internal directories.
Click to hide internal directories.