Documentation ¶
Index ¶
- Variables
- func PutMsgs(msgs []*Message)
- type CacheType
- type Forwarder
- type Message
- func (m *Message) Add()
- func (m *Message) Batch() []*Message
- func (m *Message) Done()
- func (m *Message) Err() error
- func (m *Message) IsBatch() bool
- func (m *Message) MarkEnd()
- func (m *Message) MarkRead()
- func (m *Message) MarkStart()
- func (m *Message) MarkWrite()
- func (m *Message) NextReq() (req Request)
- func (m *Message) RemoteDur() time.Duration
- func (m *Message) Request() Request
- func (m *Message) Requests() []Request
- func (m *Message) Reset()
- func (m *Message) ResetSubs()
- func (m *Message) TotalDur() time.Duration
- func (m *Message) WithError(err error)
- func (m *Message) WithRequest(req Request)
- func (m *Message) WithWaitGroup(wg *sync.WaitGroup)
- type NodeConn
- type NodeConnPipe
- type Pinger
- type ProxyConn
- type Request
Constants ¶
This section is empty.
Variables ¶
View Source
var (
ErrNoSupportCacheType = errs.New("unsupported cache type")
)
errors
Functions ¶
Types ¶
type Forwarder ¶ added in v1.5.0
Forwarder is the interface for backend run and process the messages.
type Message ¶
type Message struct { Type CacheType // contains filtered or unexported fields }
Message read from client.
func NewMessage ¶
func NewMessage() *Message
NewMessage will create new message object. this will be used be sub msg req.
func (*Message) MarkEnd ¶
func (m *Message) MarkEnd()
MarkEnd will set the end time of the command to now.
func (*Message) MarkRead ¶
func (m *Message) MarkRead()
MarkRead will set the read time of the command to now.
func (*Message) MarkStart ¶
func (m *Message) MarkStart()
MarkStart will set the start time of the command to now.
func (*Message) MarkWrite ¶
func (m *Message) MarkWrite()
MarkWrite will set the write time of the command to now.
func (*Message) ResetSubs ¶
func (m *Message) ResetSubs()
ResetSubs will return the Msg data to flush and reset
func (*Message) WithRequest ¶
WithRequest with proto request.
func (*Message) WithWaitGroup ¶ added in v1.5.0
WithWaitGroup with wait group.
type NodeConnPipe ¶ added in v1.5.0
type NodeConnPipe struct {
// contains filtered or unexported fields
}
NodeConnPipe multi MsgPipe for node conns.
func NewNodeConnPipe ¶ added in v1.5.0
func NewNodeConnPipe(conns int32, newNc func() NodeConn) (ncp *NodeConnPipe)
NewNodeConnPipe new NodeConnPipe.
func (*NodeConnPipe) ErrorEvent ¶ added in v1.5.0
func (ncp *NodeConnPipe) ErrorEvent() <-chan error
ErrorEvent return error chan.
func (*NodeConnPipe) Push ¶ added in v1.5.0
func (ncp *NodeConnPipe) Push(m *Message)
Push push message into input chan.
Click to show internal directories.
Click to hide internal directories.