config

package
v0.1.2 Latest Latest
Warning

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

Go to latest
Published: Jan 6, 2022 License: Apache-2.0 Imports: 1 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 {
	Host          string // Specify redis host.
	Password      string // Specify redis password.
	Database      int    // Specify the Redis database to use.
	PoolSize      int    // Specify work pool size.
	ProcessUnique string // Process unique id, use can specify hostname.
}

Config sidekip config structure.

func NewConfigDefault

func NewConfigDefault(ops ...Option) *Config

NewConfigDefault initialize sidekip default configure information instance.

type Option

type Option interface {
	// contains filtered or unexported methods
}

func WithHost

func WithHost(host string) Option

func WithPassword

func WithPassword(password string) Option

func WithPoolSize

func WithPoolSize(poolSize int) Option

func WithProcessUnique

func WithProcessUnique(processUnique string) Option

func WithSelectDatabase

func WithSelectDatabase(database int) Option

Jump to

Keyboard shortcuts

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