Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( // GCommands global db operation command map definition GCommands = &commands{cmds: nil} )
Functions ¶
This section is empty.
Types ¶
type ContextParams ¶
type ContextParams struct { context.Context Session mongodb.Session ListenIP string Header types.MsgHeader }
ContextParams the logic function params
func (ContextParams) Deadline ¶
func (c ContextParams) Deadline() (deadline time.Time, ok bool)
Deadline overwrite Context Deadline methods
func (ContextParams) Done ¶
func (c ContextParams) Done() <-chan struct{}
Done overwrite Context Done methods
func (ContextParams) Value ¶
func (c ContextParams) Value(key interface{}) interface{}
Value overwrite Context Value methods
type Core ¶
type Core interface { ExecuteCommand(ctx ContextParams, input rpc.Request) (*types.OPReply, error) Subscribe(chan *types.Transaction) UnSubscribe(chan<- *types.Transaction) }
Core core operation methods
type SetDBProxy ¶
SetDBProxy set db proxy
type SetTransaction ¶
type SetTransaction interface {
SetTxn(txn *transaction.Manager)
}
SetTransaction set txc method interface
Click to show internal directories.
Click to hide internal directories.