redis

package
v0.0.0-...-c3f54fb Latest Latest
Warning

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

Go to latest
Published: Oct 13, 2024 License: Apache-2.0 Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Handler

type Handler interface {
	Handle(ctx context.Context, conn net.Conn)
	Close() error
}

type RedisHandler

type RedisHandler struct {
	// contains filtered or unexported fields
}

func NewRedisHandler

func NewRedisHandler() *RedisHandler

func (*RedisHandler) Close

func (h *RedisHandler) Close() error

func (*RedisHandler) Handle

func (h *RedisHandler) Handle(ctx context.Context, conn net.Conn)

该方法是不同的conn复用的方法,要做的事情就是从conn中读取出符合RESP格式的数据; 然后针对消息格式,进行不同的业务处理

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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