package baggage

import "go.opencensus.io/exporter/jaeger/internal/gen-go/baggage"

Index

Variables

var BaggageRestrictionManagerGetBaggageRestrictionsResult_Success_DEFAULT []*BaggageRestriction
var GoUnusedProtection__ int

Types

type BaggageRestriction

type BaggageRestriction struct {
	BaggageKey     string `thrift:"baggageKey,1,required" db:"baggageKey" json:"baggageKey"`
	MaxValueLength int32  `thrift:"maxValueLength,2,required" db:"maxValueLength" json:"maxValueLength"`
}

Attributes:

func NewBaggageRestriction

func NewBaggageRestriction() *BaggageRestriction

func (*BaggageRestriction) GetBaggageKey

func (p *BaggageRestriction) GetBaggageKey() string

func (*BaggageRestriction) GetMaxValueLength

func (p *BaggageRestriction) GetMaxValueLength() int32

func (*BaggageRestriction) Read

func (p *BaggageRestriction) Read(iprot thrift.TProtocol) error

func (*BaggageRestriction) ReadField1

func (p *BaggageRestriction) ReadField1(iprot thrift.TProtocol) error

func (*BaggageRestriction) ReadField2

func (p *BaggageRestriction) ReadField2(iprot thrift.TProtocol) error

func (*BaggageRestriction) String

func (p *BaggageRestriction) String() string

func (*BaggageRestriction) Write

func (p *BaggageRestriction) Write(oprot thrift.TProtocol) error

type BaggageRestrictionManager

type BaggageRestrictionManager interface {
	// getBaggageRestrictions retrieves the baggage restrictions for a specific service.
	// Usually, baggageRestrictions apply to all services however there may be situations
	// where a baggageKey might only be allowed to be set by a specific service.
	//
	// Parameters:
	//  - ServiceName
	GetBaggageRestrictions(ctx context.Context, serviceName string) (r []*BaggageRestriction, err error)
}

type BaggageRestrictionManagerClient

type BaggageRestrictionManagerClient struct {
	// contains filtered or unexported fields
}

func NewBaggageRestrictionManagerClient

func NewBaggageRestrictionManagerClient(c thrift.TClient) *BaggageRestrictionManagerClient

func NewBaggageRestrictionManagerClientFactory

func NewBaggageRestrictionManagerClientFactory(t thrift.TTransport, f thrift.TProtocolFactory) *BaggageRestrictionManagerClient

Deprecated: Use NewBaggageRestrictionManager instead

func NewBaggageRestrictionManagerClientProtocol

func NewBaggageRestrictionManagerClientProtocol(t thrift.TTransport, iprot thrift.TProtocol, oprot thrift.TProtocol) *BaggageRestrictionManagerClient

Deprecated: Use NewBaggageRestrictionManager instead

func (*BaggageRestrictionManagerClient) GetBaggageRestrictions

func (p *BaggageRestrictionManagerClient) GetBaggageRestrictions(ctx context.Context, serviceName string) (r []*BaggageRestriction, err error)

getBaggageRestrictions retrieves the baggage restrictions for a specific service. Usually, baggageRestrictions apply to all services however there may be situations where a baggageKey might only be allowed to be set by a specific service.

Parameters:

type BaggageRestrictionManagerGetBaggageRestrictionsArgs

type BaggageRestrictionManagerGetBaggageRestrictionsArgs struct {
	ServiceName string `thrift:"serviceName,1" db:"serviceName" json:"serviceName"`
}

Attributes:

func NewBaggageRestrictionManagerGetBaggageRestrictionsArgs

func NewBaggageRestrictionManagerGetBaggageRestrictionsArgs() *BaggageRestrictionManagerGetBaggageRestrictionsArgs

func (*BaggageRestrictionManagerGetBaggageRestrictionsArgs) GetServiceName

func (*BaggageRestrictionManagerGetBaggageRestrictionsArgs) Read

func (*BaggageRestrictionManagerGetBaggageRestrictionsArgs) ReadField1

func (*BaggageRestrictionManagerGetBaggageRestrictionsArgs) String

func (*BaggageRestrictionManagerGetBaggageRestrictionsArgs) Write

type BaggageRestrictionManagerGetBaggageRestrictionsResult

type BaggageRestrictionManagerGetBaggageRestrictionsResult struct {
	Success []*BaggageRestriction `thrift:"success,0" db:"success" json:"success,omitempty"`
}

Attributes:

func NewBaggageRestrictionManagerGetBaggageRestrictionsResult

func NewBaggageRestrictionManagerGetBaggageRestrictionsResult() *BaggageRestrictionManagerGetBaggageRestrictionsResult

func (*BaggageRestrictionManagerGetBaggageRestrictionsResult) GetSuccess

func (*BaggageRestrictionManagerGetBaggageRestrictionsResult) IsSetSuccess

func (*BaggageRestrictionManagerGetBaggageRestrictionsResult) Read

func (*BaggageRestrictionManagerGetBaggageRestrictionsResult) ReadField0

func (*BaggageRestrictionManagerGetBaggageRestrictionsResult) String

func (*BaggageRestrictionManagerGetBaggageRestrictionsResult) Write

type BaggageRestrictionManagerProcessor

type BaggageRestrictionManagerProcessor struct {
	// contains filtered or unexported fields
}

func NewBaggageRestrictionManagerProcessor

func NewBaggageRestrictionManagerProcessor(handler BaggageRestrictionManager) *BaggageRestrictionManagerProcessor

func (*BaggageRestrictionManagerProcessor) AddToProcessorMap

func (p *BaggageRestrictionManagerProcessor) AddToProcessorMap(key string, processor thrift.TProcessorFunction)

func (*BaggageRestrictionManagerProcessor) GetProcessorFunction

func (p *BaggageRestrictionManagerProcessor) GetProcessorFunction(key string) (processor thrift.TProcessorFunction, ok bool)

func (*BaggageRestrictionManagerProcessor) Process

func (p *BaggageRestrictionManagerProcessor) Process(ctx context.Context, iprot, oprot thrift.TProtocol) (success bool, err thrift.TException)

func (*BaggageRestrictionManagerProcessor) ProcessorMap

Source Files

GoUnusedProtection__.go baggage-consts.go baggage.go

Directories

PathSynopsis
exporter/jaeger/internal/gen-go/baggage/baggage_restriction_manager-remote
Version
v0.2.0
Published
Jan 30, 2018
Platform
js/wasm
Imports
5 packages
Last checked
21 seconds ago

Tools for package owners.