Documentation ¶
Index ¶
- Variables
- type Filename
- type HealthRequest
- func (p *HealthRequest) GetType() HealthRequestType
- func (p *HealthRequest) IsSetType() bool
- func (p *HealthRequest) Read(iprot thrift.TProtocol) error
- func (p *HealthRequest) ReadField1(iprot thrift.TProtocol) error
- func (p *HealthRequest) String() string
- func (p *HealthRequest) Write(oprot thrift.TProtocol) error
- type HealthRequestType
- type HealthState
- type HealthStatus
- func (p *HealthStatus) GetMessage() string
- func (p *HealthStatus) GetOk() bool
- func (p *HealthStatus) GetState() HealthState
- func (p *HealthStatus) IsSetMessage() bool
- func (p *HealthStatus) IsSetState() 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) ReadField3(iprot thrift.TProtocol) error
- func (p *HealthStatus) String() string
- func (p *HealthStatus) Write(oprot thrift.TProtocol) error
- type Meta
- type MetaClient
- type MetaHealthArgs
- func (p *MetaHealthArgs) GetHr() *HealthRequest
- func (p *MetaHealthArgs) IsSetHr() bool
- func (p *MetaHealthArgs) Read(iprot thrift.TProtocol) error
- func (p *MetaHealthArgs) ReadField1(iprot thrift.TProtocol) error
- func (p *MetaHealthArgs) String() string
- func (p *MetaHealthArgs) Write(oprot thrift.TProtocol) error
- 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() *ThriftIDLs
- 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 MetaVersionInfoArgs
- type MetaVersionInfoResult
- func (p *MetaVersionInfoResult) GetSuccess() *VersionInfo
- func (p *MetaVersionInfoResult) IsSetSuccess() bool
- func (p *MetaVersionInfoResult) Read(iprot thrift.TProtocol) error
- func (p *MetaVersionInfoResult) ReadField0(iprot thrift.TProtocol) error
- func (p *MetaVersionInfoResult) String() string
- func (p *MetaVersionInfoResult) Write(oprot thrift.TProtocol) error
- type ThriftIDLs
- func (p *ThriftIDLs) GetEntryPoint() Filename
- func (p *ThriftIDLs) GetIdls() map[Filename]string
- func (p *ThriftIDLs) Read(iprot thrift.TProtocol) error
- func (p *ThriftIDLs) ReadField1(iprot thrift.TProtocol) error
- func (p *ThriftIDLs) ReadField2(iprot thrift.TProtocol) error
- func (p *ThriftIDLs) String() string
- func (p *ThriftIDLs) Write(oprot thrift.TProtocol) error
- type VersionInfo
- func (p *VersionInfo) GetLanguage() string
- func (p *VersionInfo) GetLanguageVersion() string
- func (p *VersionInfo) GetVersion() string
- func (p *VersionInfo) Read(iprot thrift.TProtocol) error
- func (p *VersionInfo) ReadField1(iprot thrift.TProtocol) error
- func (p *VersionInfo) ReadField2(iprot thrift.TProtocol) error
- func (p *VersionInfo) ReadField3(iprot thrift.TProtocol) error
- func (p *VersionInfo) String() string
- func (p *VersionInfo) Write(oprot thrift.TProtocol) error
Constants ¶
This section is empty.
Variables ¶
View Source
var GoUnusedProtection__ int
View Source
var HealthStatus_Message_DEFAULT string
Functions ¶
This section is empty.
Types ¶
type HealthRequest ¶ added in v1.11.0
type HealthRequest struct {
Type *HealthRequestType `thrift:"type,1" db:"type" json:"type,omitempty"`
}
Attributes:
- Type
var MetaHealthArgs_Hr_DEFAULT *HealthRequest
func NewHealthRequest ¶ added in v1.11.0
func NewHealthRequest() *HealthRequest
func (*HealthRequest) GetType ¶ added in v1.11.0
func (p *HealthRequest) GetType() HealthRequestType
func (*HealthRequest) IsSetType ¶ added in v1.11.0
func (p *HealthRequest) IsSetType() bool
func (*HealthRequest) Read ¶ added in v1.11.0
func (p *HealthRequest) Read(iprot thrift.TProtocol) error
func (*HealthRequest) ReadField1 ¶ added in v1.11.0
func (p *HealthRequest) ReadField1(iprot thrift.TProtocol) error
func (*HealthRequest) String ¶ added in v1.11.0
func (p *HealthRequest) String() string
type HealthRequestType ¶ added in v1.11.0
type HealthRequestType int64
const ( HealthRequestType_PROCESS HealthRequestType = 0 HealthRequestType_TRAFFIC HealthRequestType = 1 )
var HealthRequest_Type_DEFAULT HealthRequestType
func HealthRequestTypeFromString ¶ added in v1.11.0
func HealthRequestTypeFromString(s string) (HealthRequestType, error)
func HealthRequestTypePtr ¶ added in v1.11.0
func HealthRequestTypePtr(v HealthRequestType) *HealthRequestType
func (HealthRequestType) MarshalText ¶ added in v1.11.0
func (p HealthRequestType) MarshalText() ([]byte, error)
func (*HealthRequestType) Scan ¶ added in v1.11.0
func (p *HealthRequestType) Scan(value interface{}) error
func (HealthRequestType) String ¶ added in v1.11.0
func (p HealthRequestType) String() string
func (*HealthRequestType) UnmarshalText ¶ added in v1.11.0
func (p *HealthRequestType) UnmarshalText(text []byte) error
type HealthState ¶ added in v1.11.0
type HealthState int64
const ( HealthState_REFUSING HealthState = 0 HealthState_ACCEPTING HealthState = 1 HealthState_STOPPING HealthState = 2 HealthState_STOPPED HealthState = 3 )
var HealthStatus_State_DEFAULT HealthState
func HealthStateFromString ¶ added in v1.11.0
func HealthStateFromString(s string) (HealthState, error)
func HealthStatePtr ¶ added in v1.11.0
func HealthStatePtr(v HealthState) *HealthState
func (HealthState) MarshalText ¶ added in v1.11.0
func (p HealthState) MarshalText() ([]byte, error)
func (*HealthState) Scan ¶ added in v1.11.0
func (p *HealthState) Scan(value interface{}) error
func (HealthState) String ¶ added in v1.11.0
func (p HealthState) String() string
func (*HealthState) UnmarshalText ¶ added in v1.11.0
func (p *HealthState) UnmarshalText(text []byte) error
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"` State *HealthState `thrift:"state,3" db:"state" json:"state,omitempty"` }
Attributes:
- Ok
- Message
- State
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) GetState ¶ added in v1.11.0
func (p *HealthStatus) GetState() HealthState
func (*HealthStatus) IsSetMessage ¶
func (p *HealthStatus) IsSetMessage() bool
func (*HealthStatus) IsSetState ¶ added in v1.11.0
func (p *HealthStatus) IsSetState() bool
func (*HealthStatus) ReadField1 ¶ added in v1.11.0
func (p *HealthStatus) ReadField1(iprot thrift.TProtocol) error
func (*HealthStatus) ReadField2 ¶ added in v1.11.0
func (p *HealthStatus) ReadField2(iprot thrift.TProtocol) error
func (*HealthStatus) ReadField3 ¶ added in v1.11.0
func (p *HealthStatus) ReadField3(iprot thrift.TProtocol) error
func (*HealthStatus) String ¶
func (p *HealthStatus) String() string
type Meta ¶
type Meta interface { // Parameters: // - Hr Health(hr *HealthRequest) (r *HealthStatus, err error) ThriftIDL() (r *ThriftIDLs, err error) VersionInfo() (r *VersionInfo, 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(hr *HealthRequest) (r *HealthStatus, err error)
Parameters:
- Hr
func (*MetaClient) ThriftIDL ¶
func (p *MetaClient) ThriftIDL() (r *ThriftIDLs, err error)
func (*MetaClient) VersionInfo ¶
func (p *MetaClient) VersionInfo() (r *VersionInfo, err error)
type MetaHealthArgs ¶
type MetaHealthArgs struct {
Hr *HealthRequest `thrift:"hr,1" db:"hr" json:"hr"`
}
Attributes:
- Hr
func NewMetaHealthArgs ¶
func NewMetaHealthArgs() *MetaHealthArgs
func (*MetaHealthArgs) GetHr ¶ added in v1.11.0
func (p *MetaHealthArgs) GetHr() *HealthRequest
func (*MetaHealthArgs) IsSetHr ¶ added in v1.11.0
func (p *MetaHealthArgs) IsSetHr() bool
func (*MetaHealthArgs) ReadField1 ¶ added in v1.11.0
func (p *MetaHealthArgs) ReadField1(iprot thrift.TProtocol) error
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 ¶ added in v1.11.0
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 *ThriftIDLs `thrift:"success,0" db:"success" json:"success,omitempty"`
}
Attributes:
- Success
func NewMetaThriftIDLResult ¶
func NewMetaThriftIDLResult() *MetaThriftIDLResult
func (*MetaThriftIDLResult) GetSuccess ¶
func (p *MetaThriftIDLResult) GetSuccess() *ThriftIDLs
func (*MetaThriftIDLResult) IsSetSuccess ¶
func (p *MetaThriftIDLResult) IsSetSuccess() bool
func (*MetaThriftIDLResult) ReadField0 ¶ added in v1.11.0
func (p *MetaThriftIDLResult) ReadField0(iprot thrift.TProtocol) error
func (*MetaThriftIDLResult) String ¶
func (p *MetaThriftIDLResult) String() string
type MetaVersionInfoArgs ¶
type MetaVersionInfoArgs struct { }
func NewMetaVersionInfoArgs ¶
func NewMetaVersionInfoArgs() *MetaVersionInfoArgs
func (*MetaVersionInfoArgs) String ¶
func (p *MetaVersionInfoArgs) String() string
type MetaVersionInfoResult ¶
type MetaVersionInfoResult struct {
Success *VersionInfo `thrift:"success,0" db:"success" json:"success,omitempty"`
}
Attributes:
- Success
func NewMetaVersionInfoResult ¶
func NewMetaVersionInfoResult() *MetaVersionInfoResult
func (*MetaVersionInfoResult) GetSuccess ¶
func (p *MetaVersionInfoResult) GetSuccess() *VersionInfo
func (*MetaVersionInfoResult) IsSetSuccess ¶
func (p *MetaVersionInfoResult) IsSetSuccess() bool
func (*MetaVersionInfoResult) Read ¶
func (p *MetaVersionInfoResult) Read(iprot thrift.TProtocol) error
func (*MetaVersionInfoResult) ReadField0 ¶ added in v1.11.0
func (p *MetaVersionInfoResult) ReadField0(iprot thrift.TProtocol) error
func (*MetaVersionInfoResult) String ¶
func (p *MetaVersionInfoResult) String() string
type ThriftIDLs ¶
type ThriftIDLs struct { Idls map[Filename]string `thrift:"idls,1,required" db:"idls" json:"idls"` EntryPoint Filename `thrift:"entryPoint,2,required" db:"entryPoint" json:"entryPoint"` }
Attributes:
- Idls
- EntryPoint
var MetaThriftIDLResult_Success_DEFAULT *ThriftIDLs
func NewThriftIDLs ¶
func NewThriftIDLs() *ThriftIDLs
func (*ThriftIDLs) GetEntryPoint ¶
func (p *ThriftIDLs) GetEntryPoint() Filename
func (*ThriftIDLs) GetIdls ¶
func (p *ThriftIDLs) GetIdls() map[Filename]string
func (*ThriftIDLs) ReadField1 ¶ added in v1.11.0
func (p *ThriftIDLs) ReadField1(iprot thrift.TProtocol) error
func (*ThriftIDLs) ReadField2 ¶ added in v1.11.0
func (p *ThriftIDLs) ReadField2(iprot thrift.TProtocol) error
func (*ThriftIDLs) String ¶
func (p *ThriftIDLs) String() string
type VersionInfo ¶
type VersionInfo struct { Language string `thrift:"language,1,required" db:"language" json:"language"` LanguageVersion string `thrift:"language_version,2,required" db:"language_version" json:"language_version"` Version string `thrift:"version,3,required" db:"version" json:"version"` }
Attributes:
- Language
- LanguageVersion
- Version
var MetaVersionInfoResult_Success_DEFAULT *VersionInfo
func NewVersionInfo ¶
func NewVersionInfo() *VersionInfo
func (*VersionInfo) GetLanguage ¶
func (p *VersionInfo) GetLanguage() string
func (*VersionInfo) GetLanguageVersion ¶
func (p *VersionInfo) GetLanguageVersion() string
func (*VersionInfo) GetVersion ¶
func (p *VersionInfo) GetVersion() string
func (*VersionInfo) ReadField1 ¶ added in v1.11.0
func (p *VersionInfo) ReadField1(iprot thrift.TProtocol) error
func (*VersionInfo) ReadField2 ¶ added in v1.11.0
func (p *VersionInfo) ReadField2(iprot thrift.TProtocol) error
func (*VersionInfo) ReadField3 ¶ added in v1.11.0
func (p *VersionInfo) ReadField3(iprot thrift.TProtocol) error
func (*VersionInfo) String ¶
func (p *VersionInfo) String() string
Click to show internal directories.
Click to hide internal directories.