Documentation ¶
Index ¶
- Variables
- func NewPipeToggleMatchers(request *trace_pb.TogglePipeTracesRequest) (*PipeToggleMatchers, *ToggleResult)
- type Channel2PeekHandler
- func (handler *Channel2PeekHandler) Close(ch channel2.Channel)
- func (*Channel2PeekHandler) Connect(ch channel2.Channel, remoteAddress string)
- func (handler *Channel2PeekHandler) DisableTracing(sourceType SourceType, matcher SourceMatcher, ...)
- func (handler *Channel2PeekHandler) EnableTracing(sourceType SourceType, matcher SourceMatcher, ...)
- func (handler *Channel2PeekHandler) IsEnabled() bool
- func (handler *Channel2PeekHandler) Rx(msg *channel2.Message, ch channel2.Channel)
- func (handler *Channel2PeekHandler) ToggleTracing(sourceType SourceType, matcher SourceMatcher, enable bool, ...)
- func (handler *Channel2PeekHandler) Tx(msg *channel2.Message, ch channel2.Channel)
- type ChannelPeekHandler
- func (handler *ChannelPeekHandler) Close(ch channel.Channel)
- func (*ChannelPeekHandler) Connect(ch channel.Channel, remoteAddress string)
- func (handler *ChannelPeekHandler) DisableTracing(sourceType SourceType, matcher SourceMatcher, ...)
- func (handler *ChannelPeekHandler) EnableTracing(sourceType SourceType, matcher SourceMatcher, ...)
- func (handler *ChannelPeekHandler) IsEnabled() bool
- func (handler *ChannelPeekHandler) Rx(msg *channel.Message, ch channel.Channel)
- func (handler *ChannelPeekHandler) ToggleTracing(sourceType SourceType, matcher SourceMatcher, enable bool, ...)
- func (handler *ChannelPeekHandler) Tx(msg *channel.Message, ch channel.Channel)
- type Controller
- type DispatchWrapper
- type EventHandler
- type Filter
- type PipeToggleMatchers
- type Source
- type SourceMatcher
- type SourceType
- type ToggleApplyResult
- type ToggleApplyResultImpl
- type ToggleResult
- type ToggleVerbosity
- type XgressPeekHandler
- func (handler *XgressPeekHandler) Close(x *xgress.Xgress)
- func (handler *XgressPeekHandler) DisableTracing(sourceType SourceType, matcher SourceMatcher, ...)
- func (handler *XgressPeekHandler) EnableTracing(sourceType SourceType, matcher SourceMatcher, ...)
- func (handler *XgressPeekHandler) IsEnabled() bool
- func (handler *XgressPeekHandler) Rx(x *xgress.Xgress, payload *xgress.Payload)
- func (handler *XgressPeekHandler) ToggleTracing(sourceType SourceType, matcher SourceMatcher, enable bool, ...)
- func (handler *XgressPeekHandler) Tx(x *xgress.Xgress, payload *xgress.Payload)
Constants ¶
This section is empty.
Variables ¶
View Source
var EventHandlerRegistry = cowslice.NewCowSlice(make([]EventHandler, 0))
Functions ¶
func NewPipeToggleMatchers ¶
func NewPipeToggleMatchers(request *trace_pb.TogglePipeTracesRequest) (*PipeToggleMatchers, *ToggleResult)
Types ¶
type Channel2PeekHandler ¶ added in v0.17.18
type Channel2PeekHandler struct {
// contains filtered or unexported fields
}
func NewChannel2PeekHandler ¶ added in v0.17.18
func NewChannel2PeekHandler(appId string, ch channel2.Channel, controller Controller, eventSink EventHandler) *Channel2PeekHandler
func (*Channel2PeekHandler) Close ¶ added in v0.17.18
func (handler *Channel2PeekHandler) Close(ch channel2.Channel)
func (*Channel2PeekHandler) Connect ¶ added in v0.17.18
func (*Channel2PeekHandler) Connect(ch channel2.Channel, remoteAddress string)
func (*Channel2PeekHandler) DisableTracing ¶ added in v0.17.18
func (handler *Channel2PeekHandler) DisableTracing(sourceType SourceType, matcher SourceMatcher, resultChan chan<- ToggleApplyResult)
func (*Channel2PeekHandler) EnableTracing ¶ added in v0.17.18
func (handler *Channel2PeekHandler) EnableTracing(sourceType SourceType, matcher SourceMatcher, resultChan chan<- ToggleApplyResult)
func (*Channel2PeekHandler) IsEnabled ¶ added in v0.17.18
func (handler *Channel2PeekHandler) IsEnabled() bool
func (*Channel2PeekHandler) Rx ¶ added in v0.17.18
func (handler *Channel2PeekHandler) Rx(msg *channel2.Message, ch channel2.Channel)
func (*Channel2PeekHandler) ToggleTracing ¶ added in v0.17.18
func (handler *Channel2PeekHandler) ToggleTracing(sourceType SourceType, matcher SourceMatcher, enable bool, resultChan chan<- ToggleApplyResult)
type ChannelPeekHandler ¶
type ChannelPeekHandler struct {
// contains filtered or unexported fields
}
func NewChannelPeekHandler ¶
func NewChannelPeekHandler(appId string, ch channel.Channel, controller Controller, eventSink EventHandler) *ChannelPeekHandler
func (*ChannelPeekHandler) Close ¶
func (handler *ChannelPeekHandler) Close(ch channel.Channel)
func (*ChannelPeekHandler) Connect ¶
func (*ChannelPeekHandler) Connect(ch channel.Channel, remoteAddress string)
func (*ChannelPeekHandler) DisableTracing ¶
func (handler *ChannelPeekHandler) DisableTracing(sourceType SourceType, matcher SourceMatcher, resultChan chan<- ToggleApplyResult)
func (*ChannelPeekHandler) EnableTracing ¶
func (handler *ChannelPeekHandler) EnableTracing(sourceType SourceType, matcher SourceMatcher, resultChan chan<- ToggleApplyResult)
func (*ChannelPeekHandler) IsEnabled ¶
func (handler *ChannelPeekHandler) IsEnabled() bool
func (*ChannelPeekHandler) Rx ¶
func (handler *ChannelPeekHandler) Rx(msg *channel.Message, ch channel.Channel)
func (*ChannelPeekHandler) ToggleTracing ¶
func (handler *ChannelPeekHandler) ToggleTracing(sourceType SourceType, matcher SourceMatcher, enable bool, resultChan chan<- ToggleApplyResult)
type Controller ¶
type Controller interface { EnableTracing(sourceType SourceType, matcher SourceMatcher, resultChan chan<- ToggleApplyResult) DisableTracing(sourceType SourceType, matcher SourceMatcher, resultChan chan<- ToggleApplyResult) AddSource(source Source) RemoveSource(source Source) }
func NewController ¶
func NewController(closeNotify <-chan struct{}) Controller
type DispatchWrapper ¶ added in v0.12.1
type DispatchWrapper struct {
// contains filtered or unexported fields
}
func (*DispatchWrapper) Accept ¶ added in v0.12.1
func (dispatchWrapper *DispatchWrapper) Accept(event *trace_pb.ChannelMessage)
type EventHandler ¶
type EventHandler interface {
Accept(event *trace_pb.ChannelMessage)
}
EventHandler is for types wishing to receive trace messages
func NewChannel2Sink ¶ added in v0.17.18
func NewChannel2Sink(ch channel2.Channel) EventHandler
func NewChannelSink ¶
func NewChannelSink(ch channel.Channel) EventHandler
func NewDispatchWrapper ¶ added in v0.12.1
func NewDispatchWrapper(delegate func(event event.Event)) EventHandler
type Filter ¶
type Filter interface {
Accept(event *tracepb.ChannelMessage) bool
}
func NewAllowAllFilter ¶
func NewAllowAllFilter() Filter
func NewExcludeFilter ¶
func NewIncludeFilter ¶
type PipeToggleMatchers ¶
type PipeToggleMatchers struct { AppMatcher SourceMatcher PipeMatcher SourceMatcher }
type Source ¶
type Source interface { EnableTracing(sourceType SourceType, matcher SourceMatcher, resultChan chan<- ToggleApplyResult) DisableTracing(sourceType SourceType, matcher SourceMatcher, resultChan chan<- ToggleApplyResult) }
type SourceMatcher ¶
func NewSourceMatcher ¶
func NewSourceMatcher(regex *regexp.Regexp) SourceMatcher
type ToggleApplyResult ¶
type ToggleApplyResult interface { IsMatched() bool GetMessage() string Append(result *ToggleResult, verbosity ToggleVerbosity) }
type ToggleApplyResultImpl ¶
func (*ToggleApplyResultImpl) Append ¶
func (applyResult *ToggleApplyResultImpl) Append(result *ToggleResult, verbosity ToggleVerbosity)
func (*ToggleApplyResultImpl) GetMessage ¶
func (applyResult *ToggleApplyResultImpl) GetMessage() string
func (*ToggleApplyResultImpl) IsMatched ¶
func (applyResult *ToggleApplyResultImpl) IsMatched() bool
type ToggleResult ¶
func (*ToggleResult) Append ¶
func (result *ToggleResult) Append(msg string)
type ToggleVerbosity ¶
type ToggleVerbosity int
const ( ToggleVerbosityNone ToggleVerbosity = iota ToggleVerbosityMatches ToggleVerbosityMisses ToggleVerbosityAll )
func GetVerbosity ¶
func GetVerbosity(verbosity trace_pb.TraceToggleVerbosity) ToggleVerbosity
func (ToggleVerbosity) Show ¶
func (val ToggleVerbosity) Show(matched bool) bool
type XgressPeekHandler ¶
type XgressPeekHandler struct {
// contains filtered or unexported fields
}
func NewXgressPeekHandler ¶
func NewXgressPeekHandler(appId *identity.TokenId, controller Controller, eventSink EventHandler) *XgressPeekHandler
func (*XgressPeekHandler) Close ¶
func (handler *XgressPeekHandler) Close(x *xgress.Xgress)
func (*XgressPeekHandler) DisableTracing ¶
func (handler *XgressPeekHandler) DisableTracing(sourceType SourceType, matcher SourceMatcher, resultChan chan<- ToggleApplyResult)
func (*XgressPeekHandler) EnableTracing ¶
func (handler *XgressPeekHandler) EnableTracing(sourceType SourceType, matcher SourceMatcher, resultChan chan<- ToggleApplyResult)
func (*XgressPeekHandler) IsEnabled ¶
func (handler *XgressPeekHandler) IsEnabled() bool
func (*XgressPeekHandler) Rx ¶
func (handler *XgressPeekHandler) Rx(x *xgress.Xgress, payload *xgress.Payload)
func (*XgressPeekHandler) ToggleTracing ¶
func (handler *XgressPeekHandler) ToggleTracing(sourceType SourceType, matcher SourceMatcher, enable bool, resultChan chan<- ToggleApplyResult)
Click to show internal directories.
Click to hide internal directories.