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 TAddress2UidResult_ struct + Address string + ErrorCode TErrorCode + UID int64 + var TString2StringServiceGetAddress2UidResult_Success_DEFAULT *TAddress2UidResult_ + func NewTAddress2UidResult_() *TAddress2UidResult_ + func (p *TAddress2UidResult_) GetAddress() string + func (p *TAddress2UidResult_) GetErrorCode() TErrorCode + func (p *TAddress2UidResult_) GetUID() int64 + func (p *TAddress2UidResult_) Read(iprot thrift.TProtocol) error + func (p *TAddress2UidResult_) ReadField1(iprot thrift.TProtocol) error + func (p *TAddress2UidResult_) ReadField2(iprot thrift.TProtocol) error + func (p *TAddress2UidResult_) ReadField3(iprot thrift.TProtocol) error + func (p *TAddress2UidResult_) String() string + func (p *TAddress2UidResult_) Write(oprot thrift.TProtocol) error + type TData *TStringValue + func TDataPtr(v TData) *TData + type TDataResult_ struct + Data *TStringValue + ErrorCode TErrorCode + 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 + 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 + 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 TDataServiceR interface + 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 + 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 TString2StringServicePutAddress2UidResult_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 TPubkey2UidResult_ struct + ErrorCode TErrorCode + Pubkey string + UID int64 + var TString2StringServiceGetPubkey2UidResult_Success_DEFAULT *TPubkey2UidResult_ + var TString2StringServiceGetUid2PubkeyResult_Success_DEFAULT *TPubkey2UidResult_ + var TString2StringServicePutPubkey2UidResult_Success_DEFAULT *TPubkey2UidResult_ + func NewTPubkey2UidResult_() *TPubkey2UidResult_ + func (p *TPubkey2UidResult_) GetErrorCode() TErrorCode + func (p *TPubkey2UidResult_) GetPubkey() string + func (p *TPubkey2UidResult_) GetUID() int64 + func (p *TPubkey2UidResult_) Read(iprot thrift.TProtocol) error + func (p *TPubkey2UidResult_) ReadField1(iprot thrift.TProtocol) error + func (p *TPubkey2UidResult_) ReadField2(iprot thrift.TProtocol) error + func (p *TPubkey2UidResult_) ReadField3(iprot thrift.TProtocol) error + func (p *TPubkey2UidResult_) String() string + func (p *TPubkey2UidResult_) Write(oprot thrift.TProtocol) error + type TString2StringService interface + GetAddress2Uid func(ctx context.Context, address TKey) (r *TAddress2UidResult_, err error) + GetPubkey2Uid func(ctx context.Context, pubkey TKey) (r *TPubkey2UidResult_, err error) + GetUid2Pubkey func(ctx context.Context, uid int64) (r *TPubkey2UidResult_, err error) + PutAddress2Uid func(ctx context.Context, address TKey, uid int64) (r TErrorCode, err error) + PutPubkey2Uid func(ctx context.Context, pubkey TKey) (r *TPubkey2UidResult_, err error) + type TString2StringServiceClient struct + func NewTString2StringServiceClient(c thrift.TClient) *TString2StringServiceClient + func NewTString2StringServiceClientFactory(t thrift.TTransport, f thrift.TProtocolFactory) *TString2StringServiceClient + func NewTString2StringServiceClientProtocol(t thrift.TTransport, iprot thrift.TProtocol, oprot thrift.TProtocol) *TString2StringServiceClient + func (p *TString2StringServiceClient) GetAddress2Uid(ctx context.Context, address TKey) (r *TAddress2UidResult_, err error) + func (p *TString2StringServiceClient) GetPubkey2Uid(ctx context.Context, pubkey TKey) (r *TPubkey2UidResult_, err error) + func (p *TString2StringServiceClient) GetUid2Pubkey(ctx context.Context, uid int64) (r *TPubkey2UidResult_, err error) + func (p *TString2StringServiceClient) PutAddress2Uid(ctx context.Context, address TKey, uid int64) (r TErrorCode, err error) + func (p *TString2StringServiceClient) PutPubkey2Uid(ctx context.Context, pubkey TKey) (r *TPubkey2UidResult_, err error) + type TString2StringServiceGetAddress2UidArgs struct + Address TKey + func NewTString2StringServiceGetAddress2UidArgs() *TString2StringServiceGetAddress2UidArgs + func (p *TString2StringServiceGetAddress2UidArgs) GetAddress() TKey + func (p *TString2StringServiceGetAddress2UidArgs) Read(iprot thrift.TProtocol) error + func (p *TString2StringServiceGetAddress2UidArgs) ReadField1(iprot thrift.TProtocol) error + func (p *TString2StringServiceGetAddress2UidArgs) String() string + func (p *TString2StringServiceGetAddress2UidArgs) Write(oprot thrift.TProtocol) error + type TString2StringServiceGetAddress2UidResult struct + Success *TAddress2UidResult_ + func NewTString2StringServiceGetAddress2UidResult() *TString2StringServiceGetAddress2UidResult + func (p *TString2StringServiceGetAddress2UidResult) GetSuccess() *TAddress2UidResult_ + func (p *TString2StringServiceGetAddress2UidResult) IsSetSuccess() bool + func (p *TString2StringServiceGetAddress2UidResult) Read(iprot thrift.TProtocol) error + func (p *TString2StringServiceGetAddress2UidResult) ReadField0(iprot thrift.TProtocol) error + func (p *TString2StringServiceGetAddress2UidResult) String() string + func (p *TString2StringServiceGetAddress2UidResult) Write(oprot thrift.TProtocol) error + type TString2StringServiceGetPubkey2UidArgs struct + Pubkey TKey + func NewTString2StringServiceGetPubkey2UidArgs() *TString2StringServiceGetPubkey2UidArgs + func (p *TString2StringServiceGetPubkey2UidArgs) GetPubkey() TKey + func (p *TString2StringServiceGetPubkey2UidArgs) Read(iprot thrift.TProtocol) error + func (p *TString2StringServiceGetPubkey2UidArgs) ReadField1(iprot thrift.TProtocol) error + func (p *TString2StringServiceGetPubkey2UidArgs) String() string + func (p *TString2StringServiceGetPubkey2UidArgs) Write(oprot thrift.TProtocol) error + type TString2StringServiceGetPubkey2UidResult struct + Success *TPubkey2UidResult_ + func NewTString2StringServiceGetPubkey2UidResult() *TString2StringServiceGetPubkey2UidResult + func (p *TString2StringServiceGetPubkey2UidResult) GetSuccess() *TPubkey2UidResult_ + func (p *TString2StringServiceGetPubkey2UidResult) IsSetSuccess() bool + func (p *TString2StringServiceGetPubkey2UidResult) Read(iprot thrift.TProtocol) error + func (p *TString2StringServiceGetPubkey2UidResult) ReadField0(iprot thrift.TProtocol) error + func (p *TString2StringServiceGetPubkey2UidResult) String() string + func (p *TString2StringServiceGetPubkey2UidResult) Write(oprot thrift.TProtocol) error + type TString2StringServiceGetUid2PubkeyArgs struct + UID int64 + func NewTString2StringServiceGetUid2PubkeyArgs() *TString2StringServiceGetUid2PubkeyArgs + func (p *TString2StringServiceGetUid2PubkeyArgs) GetUID() int64 + func (p *TString2StringServiceGetUid2PubkeyArgs) Read(iprot thrift.TProtocol) error + func (p *TString2StringServiceGetUid2PubkeyArgs) ReadField1(iprot thrift.TProtocol) error + func (p *TString2StringServiceGetUid2PubkeyArgs) String() string + func (p *TString2StringServiceGetUid2PubkeyArgs) Write(oprot thrift.TProtocol) error + type TString2StringServiceGetUid2PubkeyResult struct + Success *TPubkey2UidResult_ + func NewTString2StringServiceGetUid2PubkeyResult() *TString2StringServiceGetUid2PubkeyResult + func (p *TString2StringServiceGetUid2PubkeyResult) GetSuccess() *TPubkey2UidResult_ + func (p *TString2StringServiceGetUid2PubkeyResult) IsSetSuccess() bool + func (p *TString2StringServiceGetUid2PubkeyResult) Read(iprot thrift.TProtocol) error + func (p *TString2StringServiceGetUid2PubkeyResult) ReadField0(iprot thrift.TProtocol) error + func (p *TString2StringServiceGetUid2PubkeyResult) String() string + func (p *TString2StringServiceGetUid2PubkeyResult) Write(oprot thrift.TProtocol) error + type TString2StringServiceProcessor struct + func NewTString2StringServiceProcessor(handler TString2StringService) *TString2StringServiceProcessor + type TString2StringServicePutAddress2UidArgs struct + Address TKey + UID int64 + func NewTString2StringServicePutAddress2UidArgs() *TString2StringServicePutAddress2UidArgs + func (p *TString2StringServicePutAddress2UidArgs) GetAddress() TKey + func (p *TString2StringServicePutAddress2UidArgs) GetUID() int64 + func (p *TString2StringServicePutAddress2UidArgs) Read(iprot thrift.TProtocol) error + func (p *TString2StringServicePutAddress2UidArgs) ReadField1(iprot thrift.TProtocol) error + func (p *TString2StringServicePutAddress2UidArgs) ReadField2(iprot thrift.TProtocol) error + func (p *TString2StringServicePutAddress2UidArgs) String() string + func (p *TString2StringServicePutAddress2UidArgs) Write(oprot thrift.TProtocol) error + type TString2StringServicePutAddress2UidResult struct + Success *TErrorCode + func NewTString2StringServicePutAddress2UidResult() *TString2StringServicePutAddress2UidResult + func (p *TString2StringServicePutAddress2UidResult) GetSuccess() TErrorCode + func (p *TString2StringServicePutAddress2UidResult) IsSetSuccess() bool + func (p *TString2StringServicePutAddress2UidResult) Read(iprot thrift.TProtocol) error + func (p *TString2StringServicePutAddress2UidResult) ReadField0(iprot thrift.TProtocol) error + func (p *TString2StringServicePutAddress2UidResult) String() string + func (p *TString2StringServicePutAddress2UidResult) Write(oprot thrift.TProtocol) error + type TString2StringServicePutPubkey2UidArgs struct + Pubkey TKey + func NewTString2StringServicePutPubkey2UidArgs() *TString2StringServicePutPubkey2UidArgs + func (p *TString2StringServicePutPubkey2UidArgs) GetPubkey() TKey + func (p *TString2StringServicePutPubkey2UidArgs) Read(iprot thrift.TProtocol) error + func (p *TString2StringServicePutPubkey2UidArgs) ReadField1(iprot thrift.TProtocol) error + func (p *TString2StringServicePutPubkey2UidArgs) String() string + func (p *TString2StringServicePutPubkey2UidArgs) Write(oprot thrift.TProtocol) error + type TString2StringServicePutPubkey2UidResult struct + Success *TPubkey2UidResult_ + func NewTString2StringServicePutPubkey2UidResult() *TString2StringServicePutPubkey2UidResult + func (p *TString2StringServicePutPubkey2UidResult) GetSuccess() *TPubkey2UidResult_ + func (p *TString2StringServicePutPubkey2UidResult) IsSetSuccess() bool + func (p *TString2StringServicePutPubkey2UidResult) Read(iprot thrift.TProtocol) error + func (p *TString2StringServicePutPubkey2UidResult) ReadField0(iprot thrift.TProtocol) error + func (p *TString2StringServicePutPubkey2UidResult) String() string + func (p *TString2StringServicePutPubkey2UidResult) Write(oprot thrift.TProtocol) error + type TStringValue struct + Counter int64 + Key TKey + Value string + var TDataResult__Data_DEFAULT *TStringValue + func NewTStringValue() *TStringValue + func (p *TStringValue) GetCounter() int64 + func (p *TStringValue) GetKey() TKey + func (p *TStringValue) GetValue() string + func (p *TStringValue) Read(iprot thrift.TProtocol) error + func (p *TStringValue) ReadField1(iprot thrift.TProtocol) error + func (p *TStringValue) ReadField2(iprot thrift.TProtocol) error + func (p *TStringValue) ReadField3(iprot thrift.TProtocol) error + func (p *TStringValue) String() string + func (p *TStringValue) Write(oprot thrift.TProtocol) error