Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Adapter ¶
type Adapter interface {
Start()
Write(string, string) error
Read(string, int) ([]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 NewRedisStorageAdapter ¶
NewRedisStorageAdapter returns a pointer to a new instance of a redis-based storage.Adapter.
func NewRingBufferAdapter ¶
NewRingBufferAdapter returns a storage adapter that uses an in-memory ring buffer of the given size.
Click to show internal directories.
Click to hide internal directories.