Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewRawHandlerWithOption ¶
Types ¶
type Codec ¶
type Codec interface {
Name() string
Encode(record *slog.Record, attrs []slog.Attr, groups []string) ([]byte, error)
}
Codec converts slog records into bytes for network transport.
type NetAdapter ¶
type NetAdapter struct {
*modules.BaseModule
// contains filtered or unexported fields
}
NetAdapter sends records to generic TCP/UDP endpoints.
func NewNetAdapter ¶
func NewNetAdapter() *NetAdapter
type RawHandler ¶
type RawHandler struct {
// contains filtered or unexported fields
}
RawHandler is a generic network output handler with async transport.
Click to show internal directories.
Click to hide internal directories.