Documentation ¶
Overview ¶
Package baggage is generated code used to make or handle TChannel calls using Thrift.
Index ¶
- Variables
- func NewTChanBaggageRestrictionManagerInheritedClient(thriftService string, client thrift.TChanClient) *tchanBaggageRestrictionManagerClient
- func NewTChanBaggageRestrictionManagerServer(handler TChanBaggageRestrictionManager) thrift.TChanServer
- type BaggageRestriction
- type BaggageRestrictionManager
- type BaggageRestrictionManagerClient
- type BaggageRestrictionManagerGetBaggageRestrictionsArgs
- func (p *BaggageRestrictionManagerGetBaggageRestrictionsArgs) GetServiceName() string
- func (p *BaggageRestrictionManagerGetBaggageRestrictionsArgs) Read(iprot thrift.TProtocol) error
- func (p *BaggageRestrictionManagerGetBaggageRestrictionsArgs) String() string
- func (p *BaggageRestrictionManagerGetBaggageRestrictionsArgs) Write(oprot thrift.TProtocol) error
- type BaggageRestrictionManagerGetBaggageRestrictionsResult
- func (p *BaggageRestrictionManagerGetBaggageRestrictionsResult) GetSuccess() []*BaggageRestriction
- func (p *BaggageRestrictionManagerGetBaggageRestrictionsResult) IsSetSuccess() bool
- func (p *BaggageRestrictionManagerGetBaggageRestrictionsResult) Read(iprot thrift.TProtocol) error
- func (p *BaggageRestrictionManagerGetBaggageRestrictionsResult) String() string
- func (p *BaggageRestrictionManagerGetBaggageRestrictionsResult) Write(oprot thrift.TProtocol) error
- type BaggageRestrictionManagerProcessor
- func (p *BaggageRestrictionManagerProcessor) AddToProcessorMap(key string, processor thrift.TProcessorFunction)
- func (p *BaggageRestrictionManagerProcessor) GetProcessorFunction(key string) (processor thrift.TProcessorFunction, ok bool)
- func (p *BaggageRestrictionManagerProcessor) Process(iprot, oprot thrift.TProtocol) (success bool, err thrift.TException)
- func (p *BaggageRestrictionManagerProcessor) ProcessorMap() map[string]thrift.TProcessorFunction
- type TChanBaggageRestrictionManager
Constants ¶
This section is empty.
Variables ¶
var BaggageRestrictionManagerGetBaggageRestrictionsResult_Success_DEFAULT []*BaggageRestriction
var GoUnusedProtection__ int
Functions ¶
func NewTChanBaggageRestrictionManagerInheritedClient ¶
func NewTChanBaggageRestrictionManagerInheritedClient(thriftService string, client thrift.TChanClient) *tchanBaggageRestrictionManagerClient
func NewTChanBaggageRestrictionManagerServer ¶
func NewTChanBaggageRestrictionManagerServer(handler TChanBaggageRestrictionManager) thrift.TChanServer
NewTChanBaggageRestrictionManagerServer wraps a handler for TChanBaggageRestrictionManager so it can be registered with a thrift.Server.
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) String ¶
func (p *BaggageRestriction) String() string
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 NewBaggageRestrictionManagerClientFactory ¶
func NewBaggageRestrictionManagerClientFactory(t thrift.TTransport, f thrift.TProtocolFactory) *BaggageRestrictionManagerClient
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 (p *BaggageRestrictionManagerGetBaggageRestrictionsArgs) GetServiceName() string
func (*BaggageRestrictionManagerGetBaggageRestrictionsArgs) Read ¶
func (p *BaggageRestrictionManagerGetBaggageRestrictionsArgs) Read(iprot thrift.TProtocol) error
func (*BaggageRestrictionManagerGetBaggageRestrictionsArgs) String ¶
func (p *BaggageRestrictionManagerGetBaggageRestrictionsArgs) String() string
type BaggageRestrictionManagerGetBaggageRestrictionsResult ¶
type BaggageRestrictionManagerGetBaggageRestrictionsResult struct {
Success []*BaggageRestriction `thrift:"success,0" json:"success,omitempty"`
}
Attributes:
- Success
func NewBaggageRestrictionManagerGetBaggageRestrictionsResult ¶
func NewBaggageRestrictionManagerGetBaggageRestrictionsResult() *BaggageRestrictionManagerGetBaggageRestrictionsResult
func (*BaggageRestrictionManagerGetBaggageRestrictionsResult) GetSuccess ¶
func (p *BaggageRestrictionManagerGetBaggageRestrictionsResult) GetSuccess() []*BaggageRestriction
func (*BaggageRestrictionManagerGetBaggageRestrictionsResult) IsSetSuccess ¶
func (p *BaggageRestrictionManagerGetBaggageRestrictionsResult) IsSetSuccess() bool
func (*BaggageRestrictionManagerGetBaggageRestrictionsResult) Read ¶
func (p *BaggageRestrictionManagerGetBaggageRestrictionsResult) Read(iprot thrift.TProtocol) error
func (*BaggageRestrictionManagerGetBaggageRestrictionsResult) String ¶
func (p *BaggageRestrictionManagerGetBaggageRestrictionsResult) String() string
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(iprot, oprot thrift.TProtocol) (success bool, err thrift.TException)
func (*BaggageRestrictionManagerProcessor) ProcessorMap ¶
func (p *BaggageRestrictionManagerProcessor) ProcessorMap() map[string]thrift.TProcessorFunction
type TChanBaggageRestrictionManager ¶
type TChanBaggageRestrictionManager interface {
GetBaggageRestrictions(ctx thrift.Context, serviceName string) ([]*BaggageRestriction, error)
}
TChanBaggageRestrictionManager is the interface that defines the server handler and client interface.
func NewTChanBaggageRestrictionManagerClient ¶
func NewTChanBaggageRestrictionManagerClient(client thrift.TChanClient) TChanBaggageRestrictionManager
NewTChanBaggageRestrictionManagerClient creates a client that can be used to make remote calls.