Documentation
¶
Index ¶
- type ConcurrencyConfig
- type Config
- type Option
- func WithConcurrencyChanNum(chanNum int) Option
- func WithConcurrencyChanSize(chanSize int) Option
- func WithConcurrencyFn(fn func(ctx context.Context, p define.Packet)) Option
- func WithConcurrencySendChanTimeout(sendChanTimeout time.Duration) Option
- func WithLogger(logger logger.LoggerInterface) Option
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ConcurrencyConfig ¶
type Config ¶
type Config struct { Logger logger.LoggerInterface ConcurrencyFn func(ctx context.Context, p define.Packet) `json:"-"` ConcurrencyConfig *ConcurrencyConfig `json:"concurrency_config"` }
func InitConfig ¶
func NewDefaultConfig ¶
func NewDefaultConfig() *Config
type Option ¶
type Option func(c *Config)
func WithConcurrencyChanNum ¶
func WithConcurrencyChanSize ¶
func WithConcurrencyFn ¶
func WithLogger ¶
func WithLogger(logger logger.LoggerInterface) Option
Click to show internal directories.
Click to hide internal directories.