Documentation
¶
Index ¶
- Constants
- type Context
- func (self *Context) AddToContext(ctx context.Context) context.Context
- func (self *Context) GetContext() context.Context
- func (self *Context) NewMutateContext() boltz.MutateContext
- func (self *Context) SetChangeAuthorId(val string) *Context
- func (self *Context) SetChangeAuthorName(val string) *Context
- func (self *Context) SetChangeAuthorType(val string) *Context
- func (self *Context) SetSource(val string) *Context
- func (self *Context) SetTraceId(val string) *Context
- func (self *Context) ToProtoBuf() *cmd_pb.ChangeContext
- type ContextKeyType
Constants ¶
View Source
const ( ContextKey ContextKeyType = "changeContext" AuthorIdKey = "authorId" AuthorNameKey = "authorName" AuthorTypeKey = "authorType" TraceIdKey = "traceId" Source = "source" )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Context ¶
func FromContext ¶
func FromProtoBuf ¶
func FromProtoBuf(ctx *cmd_pb.ChangeContext) *Context
func (*Context) AddToContext ¶
func (*Context) GetContext ¶
func (*Context) NewMutateContext ¶
func (self *Context) NewMutateContext() boltz.MutateContext
func (*Context) SetChangeAuthorId ¶
func (*Context) SetChangeAuthorName ¶
func (*Context) SetChangeAuthorType ¶
func (*Context) SetTraceId ¶
func (*Context) ToProtoBuf ¶
func (self *Context) ToProtoBuf() *cmd_pb.ChangeContext
type ContextKeyType ¶
type ContextKeyType string
Click to show internal directories.
Click to hide internal directories.