baggage

package
v2.21.0+incompatible Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Dec 20, 2019 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var BaggageRestrictionManagerGetBaggageRestrictionsResult_Success_DEFAULT []*BaggageRestriction
View Source
var GoUnusedProtection__ int

Functions

This section is empty.

Types

type BaggageRestriction

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

Attributes:

  • BaggageKey
  • MaxValueLength

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) 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(serviceName string) (r []*BaggageRestriction, err error)
}

type BaggageRestrictionManagerClient

type BaggageRestrictionManagerClient struct {
	Transport       thrift.TTransport
	ProtocolFactory thrift.TProtocolFactory
	InputProtocol   thrift.TProtocol
	OutputProtocol  thrift.TProtocol
	SeqId           int32
}

func NewBaggageRestrictionManagerClientProtocol

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

func (*BaggageRestrictionManagerClient) GetBaggageRestrictions

func (p *BaggageRestrictionManagerClient) GetBaggageRestrictions(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:

  • ServiceName

type BaggageRestrictionManagerGetBaggageRestrictionsArgs

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

Attributes:

  • ServiceName

func NewBaggageRestrictionManagerGetBaggageRestrictionsArgs

func NewBaggageRestrictionManagerGetBaggageRestrictionsArgs() *BaggageRestrictionManagerGetBaggageRestrictionsArgs

func (*BaggageRestrictionManagerGetBaggageRestrictionsArgs) GetServiceName

func (*BaggageRestrictionManagerGetBaggageRestrictionsArgs) Read

func (*BaggageRestrictionManagerGetBaggageRestrictionsArgs) String

func (*BaggageRestrictionManagerGetBaggageRestrictionsArgs) Write

type BaggageRestrictionManagerGetBaggageRestrictionsResult

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

Attributes:

  • Success

func NewBaggageRestrictionManagerGetBaggageRestrictionsResult

func NewBaggageRestrictionManagerGetBaggageRestrictionsResult() *BaggageRestrictionManagerGetBaggageRestrictionsResult

func (*BaggageRestrictionManagerGetBaggageRestrictionsResult) GetSuccess

func (*BaggageRestrictionManagerGetBaggageRestrictionsResult) IsSetSuccess

func (*BaggageRestrictionManagerGetBaggageRestrictionsResult) Read

func (*BaggageRestrictionManagerGetBaggageRestrictionsResult) String

func (*BaggageRestrictionManagerGetBaggageRestrictionsResult) Write

type BaggageRestrictionManagerProcessor

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

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(iprot, oprot thrift.TProtocol) (success bool, err thrift.TException)

func (*BaggageRestrictionManagerProcessor) ProcessorMap

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL