Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GenerateTraceID ¶
func GenerateTraceID() string
GenerateTraceID grenerates a traceid for once a request
func GetClientID ¶
func GetClientID() func() int64
GetClientID starts with 1 and allocates clientID incrementally
Types ¶
type Server ¶
type Server struct {
// contains filtered or unexported fields
}
Server implements the redis prototol server
func (*Server) GracefulStop ¶
GracefulStop the server, TODO close clients connections first
func (*Server) ListenAndServe ¶
ListenAndServe serves on a specified address
Click to show internal directories.
Click to hide internal directories.