Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var LogRoot = "/data/logs"
Functions ¶
This section is empty.
Types ¶
type Adapter ¶
type Adapter interface {
Start()
Write(string, string) error
Read(string, int) ([]string, error)
Chan(context.Context, string, int) (chan string, error)
Destroy(string) error
Reopen() error
Stop()
}
Adapter is an interface for pluggable components that store log messages.
func NewAdapter ¶
NewAdapter returns a pointer to an appropriate implementation of the Adapter interface, as determined by the adapterType string it is passed.
func NewFileAdapter ¶
NewFileAdapter returns an Adapter that uses a file.
func NewValkeyStorageAdapter ¶ added in v1.3.7
NewValkeyStorageAdapter returns a pointer to a new instance of a valkey-based storage.Adapter.
Click to show internal directories.
Click to hide internal directories.