Documentation ¶
Overview ¶
Package mock is just for test only.
Index ¶
- type Context
- func (c *Context) ClearValue(key fmt.Stringer)
- func (c *Context) FinishTxn(rollback bool) error
- func (c *Context) GetGlobalSysVar(ctx context.Context, name string) (string, error)
- func (c *Context) GetTxn(forceNew bool) (kv.Transaction, error)
- func (c *Context) SetGlobalSysVar(ctx context.Context, name string, value string) error
- func (c *Context) SetValue(key fmt.Stringer, value interface{})
- func (c *Context) Value(key fmt.Stringer) interface{}
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Context ¶
Context represents mocked context.Context.
func (*Context) ClearValue ¶
ClearValue implements context.Context ClearValue interface.
func (*Context) GetGlobalSysVar ¶
GetGlobalSysVar implements GlobalVarAccessor GetGlobalSysVar interface.
func (*Context) GetTxn ¶
func (c *Context) GetTxn(forceNew bool) (kv.Transaction, error)
GetTxn implements context.Context GetTxn interface.
func (*Context) SetGlobalSysVar ¶
SetGlobalSysVar implements GlobalVarAccessor SetGlobalSysVar interface.
Click to show internal directories.
Click to hide internal directories.