Documentation ¶
Overview ¶
Package meta is generated code used to make or handle TChannel calls using Thrift.
Index ¶
- Variables
- func NewTChanMetaInheritedClient(thriftService string, client thrift.TChanClient) *tchanMetaClient
- func NewTChanMetaServer(handler TChanMeta) thrift.TChanServer
- type HealthStatus
- func (p *HealthStatus) GetMessage() string
- func (p *HealthStatus) GetOk() bool
- func (p *HealthStatus) IsSetMessage() bool
- func (p *HealthStatus) Read(iprot thrift.TProtocol) error
- func (p *HealthStatus) ReadField1(iprot thrift.TProtocol) error
- func (p *HealthStatus) ReadField2(iprot thrift.TProtocol) error
- func (p *HealthStatus) String() string
- func (p *HealthStatus) Write(oprot thrift.TProtocol) error
- type Meta
- type MetaClient
- type MetaHealthArgs
- type MetaHealthResult
- func (p *MetaHealthResult) GetSuccess() *HealthStatus
- func (p *MetaHealthResult) IsSetSuccess() bool
- func (p *MetaHealthResult) Read(iprot thrift.TProtocol) error
- func (p *MetaHealthResult) ReadField0(iprot thrift.TProtocol) error
- func (p *MetaHealthResult) String() string
- func (p *MetaHealthResult) Write(oprot thrift.TProtocol) error
- type MetaProcessor
- func (p *MetaProcessor) AddToProcessorMap(key string, processor thrift.TProcessorFunction)
- func (p *MetaProcessor) GetProcessorFunction(key string) (processor thrift.TProcessorFunction, ok bool)
- func (p *MetaProcessor) Process(iprot, oprot thrift.TProtocol) (success bool, err thrift.TException)
- func (p *MetaProcessor) ProcessorMap() map[string]thrift.TProcessorFunction
- type MetaThriftIDLArgs
- type MetaThriftIDLResult
- func (p *MetaThriftIDLResult) GetSuccess() string
- func (p *MetaThriftIDLResult) IsSetSuccess() bool
- func (p *MetaThriftIDLResult) Read(iprot thrift.TProtocol) error
- func (p *MetaThriftIDLResult) ReadField0(iprot thrift.TProtocol) error
- func (p *MetaThriftIDLResult) String() string
- func (p *MetaThriftIDLResult) Write(oprot thrift.TProtocol) error
- type TChanMeta
Constants ¶
This section is empty.
Variables ¶
View Source
var GoUnusedProtection__ int
View Source
var HealthStatus_Message_DEFAULT string
View Source
var MetaThriftIDLResult_Success_DEFAULT string
Functions ¶
func NewTChanMetaInheritedClient ¶
func NewTChanMetaInheritedClient(thriftService string, client thrift.TChanClient) *tchanMetaClient
func NewTChanMetaServer ¶
func NewTChanMetaServer(handler TChanMeta) thrift.TChanServer
NewTChanMetaServer wraps a handler for TChanMeta so it can be registered with a thrift.Server.
Types ¶
type HealthStatus ¶
type HealthStatus struct { Ok bool `thrift:"ok,1,required" db:"ok" json:"ok"` Message *string `thrift:"message,2" db:"message" json:"message,omitempty"` }
Attributes:
- Ok
- Message
var MetaHealthResult_Success_DEFAULT *HealthStatus
func NewHealthStatus ¶
func NewHealthStatus() *HealthStatus
func (*HealthStatus) GetMessage ¶
func (p *HealthStatus) GetMessage() string
func (*HealthStatus) GetOk ¶
func (p *HealthStatus) GetOk() bool
func (*HealthStatus) IsSetMessage ¶
func (p *HealthStatus) IsSetMessage() bool
func (*HealthStatus) ReadField1 ¶
func (p *HealthStatus) ReadField1(iprot thrift.TProtocol) error
func (*HealthStatus) ReadField2 ¶
func (p *HealthStatus) ReadField2(iprot thrift.TProtocol) error
func (*HealthStatus) String ¶
func (p *HealthStatus) String() string
type Meta ¶
type Meta interface { Health() (r *HealthStatus, err error) ThriftIDL() (r string, err error) }
type MetaClient ¶
type MetaClient struct { Transport thrift.TTransport ProtocolFactory thrift.TProtocolFactory InputProtocol thrift.TProtocol OutputProtocol thrift.TProtocol SeqId int32 }
func NewMetaClientFactory ¶
func NewMetaClientFactory(t thrift.TTransport, f thrift.TProtocolFactory) *MetaClient
func NewMetaClientProtocol ¶
func NewMetaClientProtocol(t thrift.TTransport, iprot thrift.TProtocol, oprot thrift.TProtocol) *MetaClient
func (*MetaClient) Health ¶
func (p *MetaClient) Health() (r *HealthStatus, err error)
func (*MetaClient) ThriftIDL ¶
func (p *MetaClient) ThriftIDL() (r string, err error)
type MetaHealthArgs ¶
type MetaHealthArgs struct { }
func NewMetaHealthArgs ¶
func NewMetaHealthArgs() *MetaHealthArgs
func (*MetaHealthArgs) String ¶
func (p *MetaHealthArgs) String() string
type MetaHealthResult ¶
type MetaHealthResult struct {
Success *HealthStatus `thrift:"success,0" db:"success" json:"success,omitempty"`
}
Attributes:
- Success
func NewMetaHealthResult ¶
func NewMetaHealthResult() *MetaHealthResult
func (*MetaHealthResult) GetSuccess ¶
func (p *MetaHealthResult) GetSuccess() *HealthStatus
func (*MetaHealthResult) IsSetSuccess ¶
func (p *MetaHealthResult) IsSetSuccess() bool
func (*MetaHealthResult) ReadField0 ¶
func (p *MetaHealthResult) ReadField0(iprot thrift.TProtocol) error
func (*MetaHealthResult) String ¶
func (p *MetaHealthResult) String() string
type MetaProcessor ¶
type MetaProcessor struct {
// contains filtered or unexported fields
}
func NewMetaProcessor ¶
func NewMetaProcessor(handler Meta) *MetaProcessor
func (*MetaProcessor) AddToProcessorMap ¶
func (p *MetaProcessor) AddToProcessorMap(key string, processor thrift.TProcessorFunction)
func (*MetaProcessor) GetProcessorFunction ¶
func (p *MetaProcessor) GetProcessorFunction(key string) (processor thrift.TProcessorFunction, ok bool)
func (*MetaProcessor) Process ¶
func (p *MetaProcessor) Process(iprot, oprot thrift.TProtocol) (success bool, err thrift.TException)
func (*MetaProcessor) ProcessorMap ¶
func (p *MetaProcessor) ProcessorMap() map[string]thrift.TProcessorFunction
type MetaThriftIDLArgs ¶
type MetaThriftIDLArgs struct { }
func NewMetaThriftIDLArgs ¶
func NewMetaThriftIDLArgs() *MetaThriftIDLArgs
func (*MetaThriftIDLArgs) String ¶
func (p *MetaThriftIDLArgs) String() string
type MetaThriftIDLResult ¶
type MetaThriftIDLResult struct {
Success *string `thrift:"success,0" db:"success" json:"success,omitempty"`
}
Attributes:
- Success
func NewMetaThriftIDLResult ¶
func NewMetaThriftIDLResult() *MetaThriftIDLResult
func (*MetaThriftIDLResult) GetSuccess ¶
func (p *MetaThriftIDLResult) GetSuccess() string
func (*MetaThriftIDLResult) IsSetSuccess ¶
func (p *MetaThriftIDLResult) IsSetSuccess() bool
func (*MetaThriftIDLResult) ReadField0 ¶
func (p *MetaThriftIDLResult) ReadField0(iprot thrift.TProtocol) error
func (*MetaThriftIDLResult) String ¶
func (p *MetaThriftIDLResult) String() string
type TChanMeta ¶
type TChanMeta interface { Health(ctx thrift.Context) (*HealthStatus, error) ThriftIDL(ctx thrift.Context) (string, error) }
TChanMeta is the interface that defines the server handler and client interface.
func NewTChanMetaClient ¶
func NewTChanMetaClient(client thrift.TChanClient) TChanMeta
NewTChanMetaClient creates a client that can be used to make remote calls.
Click to show internal directories.
Click to hide internal directories.