Documentation ¶
Index ¶
- Constants
- Variables
- func CheckUlimit(min int)
- func GetEventPath(evt interface{}) string
- func GetOriginError(err *errors.Err) error
- func StringsContain(s []string, key string) bool
- func WriteMigrateKeyCmd(w io.Writer, addr string, timeoutMs int, key []byte) error
- type BufioDeadlineReadWriter
- type Conf
- type DeadlineReadWriter
- type MulOp
- type MultiOperator
- type OnSuicideFun
- type Server
- type Slot
Constants ¶
View Source
const ( HASHTAG_START = '{' HASHTAG_END = '}' )
Variables ¶
View Source
var (
OK_BYTES = []byte("+OK\r\n")
)
Functions ¶
func CheckUlimit ¶
func CheckUlimit(min int)
func GetEventPath ¶
func GetEventPath(evt interface{}) string
func GetOriginError ¶
func StringsContain ¶
Types ¶
type BufioDeadlineReadWriter ¶
type BufioDeadlineReadWriter interface { DeadlineReadWriter BufioReader() *bufio.Reader }
type DeadlineReadWriter ¶
type MultiOperator ¶
type MultiOperator struct {
// contains filtered or unexported fields
}
func NewMultiOperator ¶
func NewMultiOperator(server string) *MultiOperator
type OnSuicideFun ¶
type OnSuicideFun func() error
type Server ¶
type Server struct { OnSuicide OnSuicideFun // contains filtered or unexported fields }
change field not allowed whitout Lock()
func (*Server) OnGroupChange ¶
func (*Server) OnSlotRangeChange ¶
func (s *Server) OnSlotRangeChange(param *models.SlotMultiSetParam)
func (*Server) RegisterAndWait ¶
func (s *Server) RegisterAndWait()
Click to show internal directories.
Click to hide internal directories.