Documentation ¶
Index ¶
- Variables
- func WithMq(ctx context.Context, c *Config) context.Context
- func WithMqContext(c *Config) contextx.WithContext
- type Config
- type StoreType
- func (v StoreType) ConstValues() []enum.IntStringerEnum
- func (v StoreType) Int() int
- func (v StoreType) Label() string
- func (v StoreType) MarshalText() ([]byte, error)
- func (v *StoreType) Scan(src interface{}) error
- func (v StoreType) String() string
- func (v StoreType) TypeName() string
- func (v *StoreType) UnmarshalText(data []byte) error
- func (v StoreType) Value() (driver.Value, error)
Constants ¶
This section is empty.
Variables ¶
View Source
var InvalidStoreType = errors.New("invalid StoreType type")
Functions ¶
func WithMqContext ¶
func WithMqContext(c *Config) contextx.WithContext
Types ¶
type Config ¶
type Config struct { // Channel worker channel name Channel string // Store type in memory Store StoreType // Limit message queue max length Limit int // WorkerCount task worker count (concurrency) WorkerCount int PushQueueTimeout types.Duration *mq.TaskBoard *mq.TaskWorker }
func MustMqFromContext ¶
func (*Config) SetDefault ¶
func (c *Config) SetDefault()
type StoreType ¶
type StoreType uint8
func ParseStoreTypeFromLabel ¶
func (StoreType) ConstValues ¶
func (v StoreType) ConstValues() []enum.IntStringerEnum
func (StoreType) MarshalText ¶
func (*StoreType) UnmarshalText ¶
Click to show internal directories.
Click to hide internal directories.