Documentation
¶
Index ¶
- type Config
- type NatsInput
- func (n *NatsInput) Close() error
- func (n *NatsInput) Dial(network, address string) (net.Conn, error)
- func (n *NatsInput) SetEventProcessors(ps map[string]map[string]interface{}, logger *log.Logger, ...) error
- func (n *NatsInput) SetLogger(logger *log.Logger)
- func (n *NatsInput) SetName(name string)
- func (n *NatsInput) SetOutputs(outs map[string]outputs.Output)
- func (n *NatsInput) Start(ctx context.Context, name string, cfg map[string]interface{}, ...) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Config ¶
type Config struct {
Name string `mapstructure:"name,omitempty"`
Address string `mapstructure:"address,omitempty"`
Subject string `mapstructure:"subject,omitempty"`
Queue string `mapstructure:"queue,omitempty"`
Username string `mapstructure:"username,omitempty"`
Password string `mapstructure:"password,omitempty"`
ConnectTimeWait time.Duration `mapstructure:"connect-time-wait,omitempty"`
TLS *types.TLSConfig `mapstructure:"tls,omitempty" json:"tls,omitempty"`
Format string `mapstructure:"format,omitempty"`
Debug bool `mapstructure:"debug,omitempty"`
NumWorkers int `mapstructure:"num-workers,omitempty"`
BufferSize int `mapstructure:"buffer-size,omitempty"`
Outputs []string `mapstructure:"outputs,omitempty"`
EventProcessors []string `mapstructure:"event-processors,omitempty"`
}
Config //
type NatsInput ¶
type NatsInput struct {
Cfg *Config
// contains filtered or unexported fields
}
NatsInput //
func (*NatsInput) SetEventProcessors ¶
func (*NatsInput) SetOutputs ¶
SetOutputs //
Click to show internal directories.
Click to hide internal directories.