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" SourceTypeWebSocket = "websocket" SourceTypeXt = "xt" )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AuthorType ¶
type AuthorType string
type Context ¶
func FromContext ¶
func FromProtoBuf ¶
func FromProtoBuf(ctx *cmd_pb.ChangeContext) *Context
func NewControlChannelChange ¶ added in v0.33.0
func (*Context) AddToContext ¶
func (*Context) GetContext ¶
func (*Context) NewMutateContext ¶
func (self *Context) NewMutateContext() boltz.MutateContext
func (*Context) PopulateMetadata ¶
func (*Context) SetChangeAuthorId ¶
func (*Context) SetChangeAuthorName ¶
func (*Context) SetChangeAuthorType ¶
func (self *Context) SetChangeAuthorType(val AuthorType) *Context
func (*Context) SetSourceAuth ¶
func (*Context) SetSourceLocal ¶
func (*Context) SetSourceMethod ¶
func (*Context) SetSourceRemote ¶
func (*Context) SetSourceType ¶
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.