Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ClientCounter int32
ClientCounter Record the number of clients in the current Godis server
Functions ¶
func ListenAndServe ¶
ListenAndServe binds port and handle requests, blocking until close
Types ¶
type Config ¶
type Config struct {
Address string `yaml:"address"`
MaxConnect uint32 `yaml:"max-connect"`
Timeout time.Duration `yaml:"timeout"`
}
Config stores tcp server properties
type EchoClient ¶
EchoClient is client for EchoHandler, using for test
type EchoHandler ¶
type EchoHandler struct {
// contains filtered or unexported fields
}
EchoHandler echos received line to client, using for test
Click to show internal directories.
Click to hide internal directories.