stan_input

package
v0.38.2 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jul 25, 2024 License: Apache-2.0 Imports: 17 Imported by: 0

Documentation

Index

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"`
	ClusterName     string           `mapstructure:"cluster-name,omitempty"`
	PingInterval    int              `mapstructure:"ping-interval,omitempty"`
	PingRetry       int              `mapstructure:"ping-retry,omitempty"`
	Format          string           `mapstructure:"format,omitempty"`
	Debug           bool             `mapstructure:"debug,omitempty"`
	NumWorkers      int              `mapstructure:"num-workers,omitempty"`
	Outputs         []string         `mapstructure:"outputs,omitempty"`
	EventProcessors []string         `mapstructure:"event-processors,omitempty"`
}

Config //

type StanInput

type StanInput struct {
	Cfg *Config
	// contains filtered or unexported fields
}

StanInput //

func (*StanInput) Close

func (s *StanInput) Close() error

func (*StanInput) SetEventProcessors

func (s *StanInput) SetEventProcessors(ps map[string]map[string]interface{}, logger *log.Logger, tcs map[string]*types.TargetConfig, acts map[string]map[string]interface{}) error

func (*StanInput) SetLogger

func (s *StanInput) SetLogger(logger *log.Logger)

func (*StanInput) SetName

func (s *StanInput) SetName(name string)

func (*StanInput) SetOutputs

func (s *StanInput) SetOutputs(outs map[string]outputs.Output)

func (*StanInput) Start

func (s *StanInput) Start(ctx context.Context, name string, cfg map[string]interface{}, opts ...inputs.Option) error

func (*StanInput) String

func (s *StanInput) String() string

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL