Documentation ¶
Index ¶
- Constants
- type Guard
- type Handler
- func (h *Handler) DefaultWeight() *float32
- func (h *Handler) FailOpen(ctx context.Context)
- func (h *Handler) FeatureName() *string
- func (h *Handler) Guard(ctx context.Context, span trace.Span, tokens []string) *Guard
- func (h *Handler) GuardName() string
- func (h *Handler) NewGuard(ctx context.Context, span trace.Span, attr []attribute.KeyValue, err error) *Guard
- func (h *Handler) OTELEnabled() bool
- func (h *Handler) PriorityBoost() *int32
- func (h *Handler) Propagator() propagation.TextMapPropagator
- func (h *Handler) SentinelEnabled() bool
- func (h *Handler) Tags() *map[string]string
- func (h *Handler) Tracer() trace.Tracer
- type InboundHandler
- type OutboundHandler
Constants ¶
View Source
const ( GuardUnknown = iota GuardSuccess GuardFailure )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Handler ¶
type Handler struct {
// contains filtered or unexported fields
}
func NewHandler ¶
func (*Handler) DefaultWeight ¶
func (*Handler) FeatureName ¶
func (*Handler) PriorityBoost ¶
func (*Handler) Propagator ¶
func (h *Handler) Propagator() propagation.TextMapPropagator
func (*Handler) SentinelEnabled ¶
type InboundHandler ¶
type InboundHandler struct {
*Handler
}
func NewInboundHandler ¶
func NewInboundHandler(gn string, fn *string, pb *int32, dw *float32, kv *map[string]string) (*InboundHandler, error)
NewInboundHandler returns a new InboundHandler
Click to show internal directories.
Click to hide internal directories.