Documentation ¶
Index ¶
- Variables
- type TData
- type TDataResult_
- func (p *TDataResult_) GetData() *TStringValue
- func (p *TDataResult_) GetErrorCode() TErrorCode
- func (p *TDataResult_) IsSetData() bool
- func (p *TDataResult_) Read(iprot thrift.TProtocol) error
- func (p *TDataResult_) ReadField1(iprot thrift.TProtocol) error
- func (p *TDataResult_) ReadField2(iprot thrift.TProtocol) error
- func (p *TDataResult_) String() string
- func (p *TDataResult_) Write(oprot thrift.TProtocol) error
- type TDataService
- type TDataServiceClient
- func (p *TDataServiceClient) Client_() thrift.TClient
- func (p *TDataServiceClient) GetPubkeyByToken(ctx context.Context, token string) (r *TDataResult_, err error)
- func (p *TDataServiceClient) GetTokenByPubkey(ctx context.Context, pubkey string) (r *TDataResult_, err error)
- func (p *TDataServiceClient) PutData(ctx context.Context, pubkey string, token string) (r TErrorCode, err error)
- type TDataServiceGetPubkeyByTokenArgs
- func (p *TDataServiceGetPubkeyByTokenArgs) GetToken() string
- func (p *TDataServiceGetPubkeyByTokenArgs) Read(iprot thrift.TProtocol) error
- func (p *TDataServiceGetPubkeyByTokenArgs) ReadField1(iprot thrift.TProtocol) error
- func (p *TDataServiceGetPubkeyByTokenArgs) String() string
- func (p *TDataServiceGetPubkeyByTokenArgs) Write(oprot thrift.TProtocol) error
- type TDataServiceGetPubkeyByTokenResult
- func (p *TDataServiceGetPubkeyByTokenResult) GetSuccess() *TDataResult_
- func (p *TDataServiceGetPubkeyByTokenResult) IsSetSuccess() bool
- func (p *TDataServiceGetPubkeyByTokenResult) Read(iprot thrift.TProtocol) error
- func (p *TDataServiceGetPubkeyByTokenResult) ReadField0(iprot thrift.TProtocol) error
- func (p *TDataServiceGetPubkeyByTokenResult) String() string
- func (p *TDataServiceGetPubkeyByTokenResult) Write(oprot thrift.TProtocol) error
- type TDataServiceGetTokenByPubkeyArgs
- func (p *TDataServiceGetTokenByPubkeyArgs) GetPubkey() string
- func (p *TDataServiceGetTokenByPubkeyArgs) Read(iprot thrift.TProtocol) error
- func (p *TDataServiceGetTokenByPubkeyArgs) ReadField1(iprot thrift.TProtocol) error
- func (p *TDataServiceGetTokenByPubkeyArgs) String() string
- func (p *TDataServiceGetTokenByPubkeyArgs) Write(oprot thrift.TProtocol) error
- type TDataServiceGetTokenByPubkeyResult
- func (p *TDataServiceGetTokenByPubkeyResult) GetSuccess() *TDataResult_
- func (p *TDataServiceGetTokenByPubkeyResult) IsSetSuccess() bool
- func (p *TDataServiceGetTokenByPubkeyResult) Read(iprot thrift.TProtocol) error
- func (p *TDataServiceGetTokenByPubkeyResult) ReadField0(iprot thrift.TProtocol) error
- func (p *TDataServiceGetTokenByPubkeyResult) String() string
- func (p *TDataServiceGetTokenByPubkeyResult) Write(oprot thrift.TProtocol) error
- type TDataServiceProcessor
- func (p *TDataServiceProcessor) AddToProcessorMap(key string, processor thrift.TProcessorFunction)
- func (p *TDataServiceProcessor) GetProcessorFunction(key string) (processor thrift.TProcessorFunction, ok bool)
- func (p *TDataServiceProcessor) Process(ctx context.Context, iprot, oprot thrift.TProtocol) (success bool, err thrift.TException)
- func (p *TDataServiceProcessor) ProcessorMap() map[string]thrift.TProcessorFunction
- type TDataServicePutDataArgs
- func (p *TDataServicePutDataArgs) GetPubkey() string
- func (p *TDataServicePutDataArgs) GetToken() string
- func (p *TDataServicePutDataArgs) Read(iprot thrift.TProtocol) error
- func (p *TDataServicePutDataArgs) ReadField1(iprot thrift.TProtocol) error
- func (p *TDataServicePutDataArgs) ReadField2(iprot thrift.TProtocol) error
- func (p *TDataServicePutDataArgs) String() string
- func (p *TDataServicePutDataArgs) Write(oprot thrift.TProtocol) error
- type TDataServicePutDataResult
- func (p *TDataServicePutDataResult) GetSuccess() TErrorCode
- func (p *TDataServicePutDataResult) IsSetSuccess() bool
- func (p *TDataServicePutDataResult) Read(iprot thrift.TProtocol) error
- func (p *TDataServicePutDataResult) ReadField0(iprot thrift.TProtocol) error
- func (p *TDataServicePutDataResult) String() string
- func (p *TDataServicePutDataResult) Write(oprot thrift.TProtocol) error
- type TDataServiceR
- type TDataServiceRClient
- type TDataServiceRGetDataArgs
- func (p *TDataServiceRGetDataArgs) GetKey() TKey
- func (p *TDataServiceRGetDataArgs) Read(iprot thrift.TProtocol) error
- func (p *TDataServiceRGetDataArgs) ReadField1(iprot thrift.TProtocol) error
- func (p *TDataServiceRGetDataArgs) String() string
- func (p *TDataServiceRGetDataArgs) Write(oprot thrift.TProtocol) error
- type TDataServiceRGetDataResult
- func (p *TDataServiceRGetDataResult) GetSuccess() *TDataResult_
- func (p *TDataServiceRGetDataResult) IsSetSuccess() bool
- func (p *TDataServiceRGetDataResult) Read(iprot thrift.TProtocol) error
- func (p *TDataServiceRGetDataResult) ReadField0(iprot thrift.TProtocol) error
- func (p *TDataServiceRGetDataResult) String() string
- func (p *TDataServiceRGetDataResult) Write(oprot thrift.TProtocol) error
- type TDataServiceRProcessor
- func (p *TDataServiceRProcessor) AddToProcessorMap(key string, processor thrift.TProcessorFunction)
- func (p *TDataServiceRProcessor) GetProcessorFunction(key string) (processor thrift.TProcessorFunction, ok bool)
- func (p *TDataServiceRProcessor) Process(ctx context.Context, iprot, oprot thrift.TProtocol) (success bool, err thrift.TException)
- func (p *TDataServiceRProcessor) ProcessorMap() map[string]thrift.TProcessorFunction
- type TErrorCode
- type TKey
- type TMapNotifyKVService
- type TMapNotifyKVServiceClient
- func NewTMapNotifyKVServiceClient(c thrift.TClient) *TMapNotifyKVServiceClient
- func NewTMapNotifyKVServiceClientFactory(t thrift.TTransport, f thrift.TProtocolFactory) *TMapNotifyKVServiceClient
- func NewTMapNotifyKVServiceClientProtocol(t thrift.TTransport, iprot thrift.TProtocol, oprot thrift.TProtocol) *TMapNotifyKVServiceClient
- type TMapNotifyKVServiceProcessor
- type TStringValue
Constants ¶
This section is empty.
Variables ¶
View Source
var GoUnusedProtection__ int
Functions ¶
This section is empty.
Types ¶
type TDataResult_ ¶
type TDataResult_ struct { ErrorCode TErrorCode `thrift:"errorCode,1" db:"errorCode" json:"errorCode"` Data *TStringValue `thrift:"data,2" db:"data" json:"data,omitempty"` }
Attributes:
- ErrorCode
- Data
var TDataServiceGetPubkeyByTokenResult_Success_DEFAULT *TDataResult_
var TDataServiceGetTokenByPubkeyResult_Success_DEFAULT *TDataResult_
var TDataServiceRGetDataResult_Success_DEFAULT *TDataResult_
func NewTDataResult_ ¶
func NewTDataResult_() *TDataResult_
func (*TDataResult_) GetData ¶
func (p *TDataResult_) GetData() *TStringValue
func (*TDataResult_) GetErrorCode ¶
func (p *TDataResult_) GetErrorCode() TErrorCode
func (*TDataResult_) IsSetData ¶
func (p *TDataResult_) IsSetData() bool
func (*TDataResult_) ReadField1 ¶
func (p *TDataResult_) ReadField1(iprot thrift.TProtocol) error
func (*TDataResult_) ReadField2 ¶
func (p *TDataResult_) ReadField2(iprot thrift.TProtocol) error
func (*TDataResult_) String ¶
func (p *TDataResult_) String() string
type TDataService ¶
type TDataService interface { // Parameters: // - Pubkey GetTokenByPubkey(ctx context.Context, pubkey string) (r *TDataResult_, err error) // Parameters: // - Token GetPubkeyByToken(ctx context.Context, token string) (r *TDataResult_, err error) // Parameters: // - Pubkey // - Token PutData(ctx context.Context, pubkey string, token string) (r TErrorCode, err error) }
type TDataServiceClient ¶
type TDataServiceClient struct {
// contains filtered or unexported fields
}
func NewTDataServiceClient ¶
func NewTDataServiceClient(c thrift.TClient) *TDataServiceClient
func NewTDataServiceClientFactory ¶
func NewTDataServiceClientFactory(t thrift.TTransport, f thrift.TProtocolFactory) *TDataServiceClient
func NewTDataServiceClientProtocol ¶
func NewTDataServiceClientProtocol(t thrift.TTransport, iprot thrift.TProtocol, oprot thrift.TProtocol) *TDataServiceClient
func (*TDataServiceClient) Client_ ¶
func (p *TDataServiceClient) Client_() thrift.TClient
func (*TDataServiceClient) GetPubkeyByToken ¶
func (p *TDataServiceClient) GetPubkeyByToken(ctx context.Context, token string) (r *TDataResult_, err error)
Parameters:
- Token
func (*TDataServiceClient) GetTokenByPubkey ¶
func (p *TDataServiceClient) GetTokenByPubkey(ctx context.Context, pubkey string) (r *TDataResult_, err error)
Parameters:
- Pubkey
func (*TDataServiceClient) PutData ¶
func (p *TDataServiceClient) PutData(ctx context.Context, pubkey string, token string) (r TErrorCode, err error)
Parameters:
- Pubkey
- Token
type TDataServiceGetPubkeyByTokenArgs ¶
type TDataServiceGetPubkeyByTokenArgs struct {
Token string `thrift:"token,1" db:"token" json:"token"`
}
Attributes:
- Token
func NewTDataServiceGetPubkeyByTokenArgs ¶
func NewTDataServiceGetPubkeyByTokenArgs() *TDataServiceGetPubkeyByTokenArgs
func (*TDataServiceGetPubkeyByTokenArgs) GetToken ¶
func (p *TDataServiceGetPubkeyByTokenArgs) GetToken() string
func (*TDataServiceGetPubkeyByTokenArgs) Read ¶
func (p *TDataServiceGetPubkeyByTokenArgs) Read(iprot thrift.TProtocol) error
func (*TDataServiceGetPubkeyByTokenArgs) ReadField1 ¶
func (p *TDataServiceGetPubkeyByTokenArgs) ReadField1(iprot thrift.TProtocol) error
func (*TDataServiceGetPubkeyByTokenArgs) String ¶
func (p *TDataServiceGetPubkeyByTokenArgs) String() string
type TDataServiceGetPubkeyByTokenResult ¶
type TDataServiceGetPubkeyByTokenResult struct {
Success *TDataResult_ `thrift:"success,0" db:"success" json:"success,omitempty"`
}
Attributes:
- Success
func NewTDataServiceGetPubkeyByTokenResult ¶
func NewTDataServiceGetPubkeyByTokenResult() *TDataServiceGetPubkeyByTokenResult
func (*TDataServiceGetPubkeyByTokenResult) GetSuccess ¶
func (p *TDataServiceGetPubkeyByTokenResult) GetSuccess() *TDataResult_
func (*TDataServiceGetPubkeyByTokenResult) IsSetSuccess ¶
func (p *TDataServiceGetPubkeyByTokenResult) IsSetSuccess() bool
func (*TDataServiceGetPubkeyByTokenResult) Read ¶
func (p *TDataServiceGetPubkeyByTokenResult) Read(iprot thrift.TProtocol) error
func (*TDataServiceGetPubkeyByTokenResult) ReadField0 ¶
func (p *TDataServiceGetPubkeyByTokenResult) ReadField0(iprot thrift.TProtocol) error
func (*TDataServiceGetPubkeyByTokenResult) String ¶
func (p *TDataServiceGetPubkeyByTokenResult) String() string
type TDataServiceGetTokenByPubkeyArgs ¶
type TDataServiceGetTokenByPubkeyArgs struct {
Pubkey string `thrift:"pubkey,1" db:"pubkey" json:"pubkey"`
}
Attributes:
- Pubkey
func NewTDataServiceGetTokenByPubkeyArgs ¶
func NewTDataServiceGetTokenByPubkeyArgs() *TDataServiceGetTokenByPubkeyArgs
func (*TDataServiceGetTokenByPubkeyArgs) GetPubkey ¶
func (p *TDataServiceGetTokenByPubkeyArgs) GetPubkey() string
func (*TDataServiceGetTokenByPubkeyArgs) Read ¶
func (p *TDataServiceGetTokenByPubkeyArgs) Read(iprot thrift.TProtocol) error
func (*TDataServiceGetTokenByPubkeyArgs) ReadField1 ¶
func (p *TDataServiceGetTokenByPubkeyArgs) ReadField1(iprot thrift.TProtocol) error
func (*TDataServiceGetTokenByPubkeyArgs) String ¶
func (p *TDataServiceGetTokenByPubkeyArgs) String() string
type TDataServiceGetTokenByPubkeyResult ¶
type TDataServiceGetTokenByPubkeyResult struct {
Success *TDataResult_ `thrift:"success,0" db:"success" json:"success,omitempty"`
}
Attributes:
- Success
func NewTDataServiceGetTokenByPubkeyResult ¶
func NewTDataServiceGetTokenByPubkeyResult() *TDataServiceGetTokenByPubkeyResult
func (*TDataServiceGetTokenByPubkeyResult) GetSuccess ¶
func (p *TDataServiceGetTokenByPubkeyResult) GetSuccess() *TDataResult_
func (*TDataServiceGetTokenByPubkeyResult) IsSetSuccess ¶
func (p *TDataServiceGetTokenByPubkeyResult) IsSetSuccess() bool
func (*TDataServiceGetTokenByPubkeyResult) Read ¶
func (p *TDataServiceGetTokenByPubkeyResult) Read(iprot thrift.TProtocol) error
func (*TDataServiceGetTokenByPubkeyResult) ReadField0 ¶
func (p *TDataServiceGetTokenByPubkeyResult) ReadField0(iprot thrift.TProtocol) error
func (*TDataServiceGetTokenByPubkeyResult) String ¶
func (p *TDataServiceGetTokenByPubkeyResult) String() string
type TDataServiceProcessor ¶
type TDataServiceProcessor struct {
// contains filtered or unexported fields
}
func NewTDataServiceProcessor ¶
func NewTDataServiceProcessor(handler TDataService) *TDataServiceProcessor
func (*TDataServiceProcessor) AddToProcessorMap ¶
func (p *TDataServiceProcessor) AddToProcessorMap(key string, processor thrift.TProcessorFunction)
func (*TDataServiceProcessor) GetProcessorFunction ¶
func (p *TDataServiceProcessor) GetProcessorFunction(key string) (processor thrift.TProcessorFunction, ok bool)
func (*TDataServiceProcessor) Process ¶
func (p *TDataServiceProcessor) Process(ctx context.Context, iprot, oprot thrift.TProtocol) (success bool, err thrift.TException)
func (*TDataServiceProcessor) ProcessorMap ¶
func (p *TDataServiceProcessor) ProcessorMap() map[string]thrift.TProcessorFunction
type TDataServicePutDataArgs ¶
type TDataServicePutDataArgs struct { Pubkey string `thrift:"pubkey,1" db:"pubkey" json:"pubkey"` Token string `thrift:"token,2" db:"token" json:"token"` }
Attributes:
- Pubkey
- Token
func NewTDataServicePutDataArgs ¶
func NewTDataServicePutDataArgs() *TDataServicePutDataArgs
func (*TDataServicePutDataArgs) GetPubkey ¶
func (p *TDataServicePutDataArgs) GetPubkey() string
func (*TDataServicePutDataArgs) GetToken ¶
func (p *TDataServicePutDataArgs) GetToken() string
func (*TDataServicePutDataArgs) Read ¶
func (p *TDataServicePutDataArgs) Read(iprot thrift.TProtocol) error
func (*TDataServicePutDataArgs) ReadField1 ¶
func (p *TDataServicePutDataArgs) ReadField1(iprot thrift.TProtocol) error
func (*TDataServicePutDataArgs) ReadField2 ¶
func (p *TDataServicePutDataArgs) ReadField2(iprot thrift.TProtocol) error
func (*TDataServicePutDataArgs) String ¶
func (p *TDataServicePutDataArgs) String() string
type TDataServicePutDataResult ¶
type TDataServicePutDataResult struct {
Success *TErrorCode `thrift:"success,0" db:"success" json:"success,omitempty"`
}
Attributes:
- Success
func NewTDataServicePutDataResult ¶
func NewTDataServicePutDataResult() *TDataServicePutDataResult
func (*TDataServicePutDataResult) GetSuccess ¶
func (p *TDataServicePutDataResult) GetSuccess() TErrorCode
func (*TDataServicePutDataResult) IsSetSuccess ¶
func (p *TDataServicePutDataResult) IsSetSuccess() bool
func (*TDataServicePutDataResult) Read ¶
func (p *TDataServicePutDataResult) Read(iprot thrift.TProtocol) error
func (*TDataServicePutDataResult) ReadField0 ¶
func (p *TDataServicePutDataResult) ReadField0(iprot thrift.TProtocol) error
func (*TDataServicePutDataResult) String ¶
func (p *TDataServicePutDataResult) String() string
type TDataServiceR ¶
type TDataServiceR interface { // Parameters: // - Key GetData(ctx context.Context, key TKey) (r *TDataResult_, err error) }
type TDataServiceRClient ¶
type TDataServiceRClient struct {
// contains filtered or unexported fields
}
func NewTDataServiceRClient ¶
func NewTDataServiceRClient(c thrift.TClient) *TDataServiceRClient
func NewTDataServiceRClientFactory ¶
func NewTDataServiceRClientFactory(t thrift.TTransport, f thrift.TProtocolFactory) *TDataServiceRClient
func NewTDataServiceRClientProtocol ¶
func NewTDataServiceRClientProtocol(t thrift.TTransport, iprot thrift.TProtocol, oprot thrift.TProtocol) *TDataServiceRClient
func (*TDataServiceRClient) Client_ ¶
func (p *TDataServiceRClient) Client_() thrift.TClient
func (*TDataServiceRClient) GetData ¶
func (p *TDataServiceRClient) GetData(ctx context.Context, key TKey) (r *TDataResult_, err error)
Parameters:
- Key
type TDataServiceRGetDataArgs ¶
type TDataServiceRGetDataArgs struct {
Key TKey `thrift:"key,1" db:"key" json:"key"`
}
Attributes:
- Key
func NewTDataServiceRGetDataArgs ¶
func NewTDataServiceRGetDataArgs() *TDataServiceRGetDataArgs
func (*TDataServiceRGetDataArgs) GetKey ¶
func (p *TDataServiceRGetDataArgs) GetKey() TKey
func (*TDataServiceRGetDataArgs) Read ¶
func (p *TDataServiceRGetDataArgs) Read(iprot thrift.TProtocol) error
func (*TDataServiceRGetDataArgs) ReadField1 ¶
func (p *TDataServiceRGetDataArgs) ReadField1(iprot thrift.TProtocol) error
func (*TDataServiceRGetDataArgs) String ¶
func (p *TDataServiceRGetDataArgs) String() string
type TDataServiceRGetDataResult ¶
type TDataServiceRGetDataResult struct {
Success *TDataResult_ `thrift:"success,0" db:"success" json:"success,omitempty"`
}
Attributes:
- Success
func NewTDataServiceRGetDataResult ¶
func NewTDataServiceRGetDataResult() *TDataServiceRGetDataResult
func (*TDataServiceRGetDataResult) GetSuccess ¶
func (p *TDataServiceRGetDataResult) GetSuccess() *TDataResult_
func (*TDataServiceRGetDataResult) IsSetSuccess ¶
func (p *TDataServiceRGetDataResult) IsSetSuccess() bool
func (*TDataServiceRGetDataResult) Read ¶
func (p *TDataServiceRGetDataResult) Read(iprot thrift.TProtocol) error
func (*TDataServiceRGetDataResult) ReadField0 ¶
func (p *TDataServiceRGetDataResult) ReadField0(iprot thrift.TProtocol) error
func (*TDataServiceRGetDataResult) String ¶
func (p *TDataServiceRGetDataResult) String() string
type TDataServiceRProcessor ¶
type TDataServiceRProcessor struct {
// contains filtered or unexported fields
}
func NewTDataServiceRProcessor ¶
func NewTDataServiceRProcessor(handler TDataServiceR) *TDataServiceRProcessor
func (*TDataServiceRProcessor) AddToProcessorMap ¶
func (p *TDataServiceRProcessor) AddToProcessorMap(key string, processor thrift.TProcessorFunction)
func (*TDataServiceRProcessor) GetProcessorFunction ¶
func (p *TDataServiceRProcessor) GetProcessorFunction(key string) (processor thrift.TProcessorFunction, ok bool)
func (*TDataServiceRProcessor) Process ¶
func (p *TDataServiceRProcessor) Process(ctx context.Context, iprot, oprot thrift.TProtocol) (success bool, err thrift.TException)
func (*TDataServiceRProcessor) ProcessorMap ¶
func (p *TDataServiceRProcessor) ProcessorMap() map[string]thrift.TProcessorFunction
type TErrorCode ¶
type TErrorCode int64
const ( TErrorCode_EGood TErrorCode = 0 TErrorCode_ENotFound TErrorCode = -1 TErrorCode_EUnknown TErrorCode = -2 TErrorCode_EDataExisted TErrorCode = -3 )
var TDataServicePutDataResult_Success_DEFAULT TErrorCode
func TErrorCodeFromString ¶
func TErrorCodeFromString(s string) (TErrorCode, error)
func TErrorCodePtr ¶
func TErrorCodePtr(v TErrorCode) *TErrorCode
func (TErrorCode) MarshalText ¶
func (p TErrorCode) MarshalText() ([]byte, error)
func (*TErrorCode) Scan ¶
func (p *TErrorCode) Scan(value interface{}) error
func (TErrorCode) String ¶
func (p TErrorCode) String() string
func (*TErrorCode) UnmarshalText ¶
func (p *TErrorCode) UnmarshalText(text []byte) error
type TMapNotifyKVService ¶
type TMapNotifyKVService interface { TDataService }
type TMapNotifyKVServiceClient ¶
type TMapNotifyKVServiceClient struct {
*TDataServiceClient
}
func NewTMapNotifyKVServiceClient ¶
func NewTMapNotifyKVServiceClient(c thrift.TClient) *TMapNotifyKVServiceClient
func NewTMapNotifyKVServiceClientFactory ¶
func NewTMapNotifyKVServiceClientFactory(t thrift.TTransport, f thrift.TProtocolFactory) *TMapNotifyKVServiceClient
func NewTMapNotifyKVServiceClientProtocol ¶
func NewTMapNotifyKVServiceClientProtocol(t thrift.TTransport, iprot thrift.TProtocol, oprot thrift.TProtocol) *TMapNotifyKVServiceClient
type TMapNotifyKVServiceProcessor ¶
type TMapNotifyKVServiceProcessor struct {
*TDataServiceProcessor
}
func NewTMapNotifyKVServiceProcessor ¶
func NewTMapNotifyKVServiceProcessor(handler TMapNotifyKVService) *TMapNotifyKVServiceProcessor
type TStringValue ¶
type TStringValue struct {
Value string `thrift:"value,1" db:"value" json:"value"`
}
Attributes:
- Value
var TDataResult__Data_DEFAULT *TStringValue
func NewTStringValue ¶
func NewTStringValue() *TStringValue
func (*TStringValue) GetValue ¶
func (p *TStringValue) GetValue() string
func (*TStringValue) ReadField1 ¶
func (p *TStringValue) ReadField1(iprot thrift.TProtocol) error
func (*TStringValue) String ¶
func (p *TStringValue) String() string
Click to show internal directories.
Click to hide internal directories.