Documentation
¶
Index ¶
- Variables
- func ErrLaneWithoutSink(s string) error
- func NewLogger() zerolog.Logger
- func ReadToml(file string) (map[string]any, error)
- func RegisterGenerator(name string, generators Generator)
- func RegisterMap(name string, maps Map)
- func RegisterSink(name string, sink Sink)
- type Agent
- type BaseLaneConfig
- type Config
- type Context
- func (c *Context) Context() context.Context
- func (c *Context) LaneItem() *LaneItem
- func (c *Context) LaneName() string
- func (c *Context) LaneType() LaneTypes
- func (c *Context) Logger() zerolog.Logger
- func (c *Context) ReturnValue(value any) error
- func (c *Context) SourceName() string
- func (c *Context) Value() any
- type Generator
- type Generators
- type HealthCheck
- type Init
- type Internal
- type LaneItem
- type LaneTypes
- type LogFormat
- type Map
- type Maps
- type MethodGenerator
- type MethodMap
- type MethodSink
- type MetricsServer
- type Sink
- type Sinks
- type TreeLanes
Constants ¶
This section is empty.
Variables ¶
View Source
var ( ErrNameNotBeEmptyString = errors.New("ErrNameNotBeEmptyString") ErrEnvNotFound = errors.New("ErrEnvNotFound") )
View Source
var ( ErrInputsNotFound = errors.New("ErrInputsNotFound") ErrUnknownItem = errors.New("ErrUnknownItem") ErrLaneNameMustBeUnique = errors.New("ErrLaneNameMustBeUnique") ErrInvalidConfig = errors.New("ErrInvalidConfig") ErrUnknownGenerator = errors.New("ErrUnknownGenerator") ErrUnknownMap = errors.New("ErrUnknownMap") ErrUnknownSink = errors.New("ErrUnknownSink") )
View Source
var (
ErrLaneIsStopped = errors.New("ErrLaneIsStopped")
)
Functions ¶
func ErrLaneWithoutSink ¶
func RegisterGenerator ¶
func RegisterMap ¶
func RegisterSink ¶
Types ¶
type BaseLaneConfig ¶
type BaseLaneConfig struct {
OutputBufferSize int64 `pipelane:"output_buffer"`
Threads int64 `pipelane:"threads"`
StartGCAfterMessageProcess bool `pipelane:"start_gc_after_message_process"`
SourceName string `pipelane:"source_name"`
Inputs []string `pipelane:"inputs"`
Internal
}
func NewBaseConfig ¶
func NewBaseConfig(val map[string]any) (*BaseLaneConfig, error)
func (*BaseLaneConfig) ParseExtended ¶
func (c *BaseLaneConfig) ParseExtended(v any) error
type Config ¶
type Config struct {
Input map[string]any `pipeline:"input"`
Map map[string]any `pipeline:"map"`
Sink map[string]any `pipeline:"sink"`
// contains filtered or unexported fields
}
func NewConfigFromFile ¶
type Context ¶
type Context struct {
// contains filtered or unexported fields
}
func (*Context) ReturnValue ¶
func (*Context) SourceName ¶
type Generators ¶
type HealthCheck ¶
type HealthCheck struct {
// contains filtered or unexported fields
}
func NewHealthCheck ¶
func NewHealthCheck(conf Config) (*HealthCheck, error)
func (*HealthCheck) Serve ¶
func (p *HealthCheck) Serve()
type LaneItem ¶
type LaneItem struct {
// contains filtered or unexported fields
}
func NewLaneItem ¶
func NewLaneItem( config *BaseLaneConfig, metrics bool, ) *LaneItem
func (*LaneItem) Config ¶
func (l *LaneItem) Config() *BaseLaneConfig
type MethodGenerator ¶
type MethodSink ¶
type MetricsServer ¶
type MetricsServer struct {
// contains filtered or unexported fields
}
func NewMetricsServer ¶
func NewMetricsServer(cfg Config) (*MetricsServer, error)
func (*MetricsServer) Serve ¶
func (m *MetricsServer) Serve() error
Source Files
¶
Click to show internal directories.
Click to hide internal directories.