Documentation
      ¶
    
    
  
    
  
    Index ¶
- Constants
 - type Author
 - type AuthorType
 - type Context
 - func (self *Context) AddToContext(ctx context.Context) context.Context
 - func (self *Context) GetAuthor() *Author
 - func (self *Context) GetContext() context.Context
 - func (self *Context) GetSource() *Source
 - func (self *Context) NewMutateContext() boltz.MutateContext
 - func (self *Context) PopulateMetadata(meta map[string]any)
 - func (self *Context) SetChangeAuthorId(val string) *Context
 - func (self *Context) SetChangeAuthorName(val string) *Context
 - func (self *Context) SetChangeAuthorType(val AuthorType) *Context
 - func (self *Context) SetSourceAuth(val string) *Context
 - func (self *Context) SetSourceLocal(val string) *Context
 - func (self *Context) SetSourceMethod(val string) *Context
 - func (self *Context) SetSourceRemote(val string) *Context
 - func (self *Context) SetSourceType(val string) *Context
 - func (self *Context) SetTraceId(val string) *Context
 - func (self *Context) ToProtoBuf() *cmd_pb.ChangeContext
 
- type ContextKeyType
 - type Source
 
Constants ¶
      View Source
      
  
    const ( ContextKey ContextKeyType = "changeContext" AuthorIdKey = "authorId" AuthorNameKey = "authorName" AuthorTypeKey = "authorType" TraceIdKey = "traceId" SourceType = "src.type" SourceAuth = "src.auth" SourceMethod = "src.method" SourceLocal = "src.local" SourceRemote = "src.remote" )
      View Source
      
  
    const ( AuthorTypeCert = "cert" AuthorTypeIdentity = "identity" AuthorTypeRouter = "router" AuthorTypeController = "controller" AuthorTypeUnattributed = "unattributed" )
      View Source
      
  
const ( SourceTypeControlChannel = "ctrl.channel" SourceTypeRest = "rest" SourceTypeXt = "xt" )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AuthorType ¶ added in v0.23.1
type AuthorType string
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) PopulateMetadata ¶ added in v0.23.1
func (*Context) SetChangeAuthorId ¶
func (*Context) SetChangeAuthorName ¶
func (*Context) SetChangeAuthorType ¶
func (self *Context) SetChangeAuthorType(val AuthorType) *Context
func (*Context) SetSourceAuth ¶ added in v0.23.1
func (*Context) SetSourceLocal ¶ added in v0.23.1
func (*Context) SetSourceMethod ¶ added in v0.23.1
func (*Context) SetSourceRemote ¶ added in v0.23.1
func (*Context) SetSourceType ¶ added in v0.23.1
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.