Versions in this module Expand all Collapse all v0 v0.1.1 Nov 7, 2020 v0.1.0 Nov 7, 2020 Changes in this version + var GoUnusedProtection__ int + type TData *TStringValue + func TDataPtr(v TData) *TData + type TDataResult_ struct + Data *TStringValue + ErrorCode TErrorCode + var TDataServiceGetPubkeyByTokenResult_Success_DEFAULT *TDataResult_ + var TDataServiceGetTokenByPubkeyResult_Success_DEFAULT *TDataResult_ + var TDataServiceRGetDataResult_Success_DEFAULT *TDataResult_ + func NewTDataResult_() *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 interface + GetPubkeyByToken func(ctx context.Context, token string) (r *TDataResult_, err error) + GetTokenByPubkey func(ctx context.Context, pubkey string) (r *TDataResult_, err error) + PutData func(ctx context.Context, pubkey string, token string) (r TErrorCode, err error) + type TDataServiceClient struct + func NewTDataServiceClient(c thrift.TClient) *TDataServiceClient + func NewTDataServiceClientFactory(t thrift.TTransport, f thrift.TProtocolFactory) *TDataServiceClient + func NewTDataServiceClientProtocol(t thrift.TTransport, iprot thrift.TProtocol, oprot thrift.TProtocol) *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 struct + Token string + func NewTDataServiceGetPubkeyByTokenArgs() *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 struct + Success *TDataResult_ + func NewTDataServiceGetPubkeyByTokenResult() *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 struct + Pubkey string + func NewTDataServiceGetTokenByPubkeyArgs() *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 struct + Success *TDataResult_ + func NewTDataServiceGetTokenByPubkeyResult() *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 struct + func NewTDataServiceProcessor(handler TDataService) *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 struct + Pubkey string + Token string + func NewTDataServicePutDataArgs() *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 struct + Success *TErrorCode + func NewTDataServicePutDataResult() *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 interface + GetData func(ctx context.Context, key TKey) (r *TDataResult_, err error) + type TDataServiceRClient struct + func NewTDataServiceRClient(c thrift.TClient) *TDataServiceRClient + func NewTDataServiceRClientFactory(t thrift.TTransport, f thrift.TProtocolFactory) *TDataServiceRClient + func NewTDataServiceRClientProtocol(t thrift.TTransport, iprot thrift.TProtocol, oprot thrift.TProtocol) *TDataServiceRClient + func (p *TDataServiceRClient) Client_() thrift.TClient + func (p *TDataServiceRClient) GetData(ctx context.Context, key TKey) (r *TDataResult_, err error) + type TDataServiceRGetDataArgs struct + Key TKey + func NewTDataServiceRGetDataArgs() *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 struct + Success *TDataResult_ + func NewTDataServiceRGetDataResult() *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 struct + func NewTDataServiceRProcessor(handler TDataServiceR) *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 int64 + const TErrorCode_EDataExisted + const TErrorCode_EGood + const TErrorCode_ENotFound + const TErrorCode_EUnknown + var TDataServicePutDataResult_Success_DEFAULT TErrorCode + func TErrorCodeFromString(s string) (TErrorCode, error) + func TErrorCodePtr(v TErrorCode) *TErrorCode + func (p *TErrorCode) Scan(value interface{}) error + func (p *TErrorCode) UnmarshalText(text []byte) error + func (p *TErrorCode) Value() (driver.Value, error) + func (p TErrorCode) MarshalText() ([]byte, error) + func (p TErrorCode) String() string + type TKey string + func TKeyPtr(v TKey) *TKey + type TMapNotifyKVService interface + type TMapNotifyKVServiceClient struct + 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 struct + func NewTMapNotifyKVServiceProcessor(handler TMapNotifyKVService) *TMapNotifyKVServiceProcessor + type TStringValue struct + Value string + var TDataResult__Data_DEFAULT *TStringValue + func NewTStringValue() *TStringValue + func (p *TStringValue) GetValue() string + func (p *TStringValue) Read(iprot thrift.TProtocol) error + func (p *TStringValue) ReadField1(iprot thrift.TProtocol) error + func (p *TStringValue) String() string + func (p *TStringValue) Write(oprot thrift.TProtocol) error