Documentation
¶
Index ¶
- type Option
- func WithAddr(addr string) Option
- func WithBlockTime(m time.Duration) Option
- func WithCluster() Option
- func WithConnectionString(connectionString string) Option
- func WithConsumer(name string) Option
- func WithDB(db int) Option
- func WithGroup(name string) Option
- func WithLogger(l queue.Logger) Option
- func WithMaxLength(m int64) Option
- func WithPassword(passwd string) Option
- func WithRunFunc(fn func(context.Context, core.TaskMessage) error) Option
- func WithSkipTLSVerify() Option
- func WithStreamName(name string) Option
- func WithTLS() Option
- func WithUsername(username string) Option
- type Worker
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Option ¶
type Option func(*options)
Option for queue system
func WithBlockTime ¶ added in v0.0.3
WithBlockTime setup the block time for publish messages we use the block command to make sure if no entry is found we wait until an entry is found
func WithConnectionString ¶
WithConnectionString redis connection string
func WithMaxLength ¶ added in v0.0.3
WithMaxLength setup the max length for publish messages
func WithRunFunc ¶
WithRunFunc setup the run func of queue
func WithSkipTLSVerify ¶ added in v0.1.0
func WithSkipTLSVerify() Option
WithSkipTLSVerify returns an Option that configures the TLS settings to skip verification of the server's certificate. This is useful for connecting to servers with self-signed certificates or when certificate verification is not required. Use this option with caution as it makes the connection susceptible to man-in-the-middle attacks.
func WithTLS ¶ added in v0.1.0
func WithTLS() Option
WithTLS returns an Option that configures the use of TLS for the connection. It sets the minimum TLS version to TLS 1.2.
func WithUsername ¶ added in v0.1.0
WithUsername redis username This is only used for redis cluster