Documentation
¶
Index ¶
- type Context
- func (c Context) BlockHeight() int64
- func (c Context) CMCtx() cmsdk.Context
- func (c Context) Logger() *logrus.Entry
- func (c Context) MsgType() string
- func (c Context) TxHash() string
- func (c Context) Value(key interface{}) interface{}
- func (c Context) WithBlockHeight(height int64) Context
- func (c Context) WithCMContext(cmctx cmsdk.Context) Context
- func (c Context) WithInt32(key interface{}, value int32) Context
- func (c Context) WithLogger(logger *logrus.Entry) Context
- func (c Context) WithMsgType(msgType string) Context
- func (c Context) WithString(key interface{}, value string) Context
- func (c Context) WithTxHash(txHash string) Context
- func (c Context) WithUint32(key interface{}, value uint32) Context
- func (c Context) WithUint64(key interface{}, value uint64) Context
- func (c Context) WithValue(key interface{}, value interface{}) Context
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Context ¶
func NewGoBContext ¶
create a new context
func (Context) BlockHeight ¶
--------- GET context-------------------
func (Context) Value ¶
func (c Context) Value(key interface{}) interface{}
context value for the provided key
func (Context) WithBlockHeight ¶
--------- SET context-------------------
func (Context) WithMsgType ¶
func (Context) WithString ¶
func (Context) WithTxHash ¶
func (Context) WithUint32 ¶
func (Context) WithUint64 ¶
Click to show internal directories.
Click to hide internal directories.