redisCluster

package
v1.0.3 Latest Latest
Warning

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

Go to latest
Published: Apr 29, 2023 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

View Source
const CMDEXEC = "CMDEXEC"

Variables

This section is empty.

Functions

This section is empty.

Types

type Router

type Router struct {
	MiddleWares router.HandlersChain
	// contains filtered or unexported fields
}

func NewRouter

func NewRouter(cluster rediscluster.Cluster) *Router

*

  • 注册的命令列表

func (*Router) AddCommand

func (r *Router) AddCommand(operation string, handlers ...router.HandlerFunc) router.IRoutes

func (*Router) Close

func (r *Router) Close() error

func (*Router) Handle

func (r *Router) Handle(w *RESPHandle.WriterHandle, args []interface{}) error

func (*Router) InitCMD

func (r *Router) InitCMD()

func (*Router) Sync added in v1.0.1

func (r *Router) Sync(args []interface{}) error

func (*Router) Use

func (r *Router) Use(funcs ...router.HandlerFunc) router.IRoutes

Jump to

Keyboard shortcuts

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