redisNode

package
v0.0.0-...-3ed29f2 Latest Latest
Warning

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

Go to latest
Published: Aug 4, 2023 License: MIT Imports: 12 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(cli *redis.Pool) *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) Do

func (r *Router) Do(cmd string, args ...interface{}) (reply interface{}, err error)

func (*Router) Handle

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

func (*Router) InitCMD

func (r *Router) InitCMD()

func (*Router) Sync

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