nosql

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Jan 3, 2020 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Redis

type Redis struct {
	Network  string `json:"network,omitempty" desc:"enum: tcp|unix, default: tcp" validate:"-"`
	Addr     string `json:"addr" desc:"redis address" validate:"required"`
	Password string `json:"password" desc:"redis password" validate:"-"`
	DB       int    `json:"db" desc:"database index" validate:"gte=0"`
	PoolSize int    `json:"pool_size,omitempty" desc:"maximum number of socket connections, default: 10 * num_cpu" validate:"gte=0"`
	// contains filtered or unexported fields
}

func (Redis) Build

func (r Redis) Build() (pipeline.Handler, error)

func (Redis) Handle

func (r Redis) Handle(ctx context.Context, reqRes *pipeline.HandleRes) (respRes *pipeline.HandleRes, err error)

Jump to

Keyboard shortcuts

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