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 TDataServiceGetDataResult_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 + GetData func(ctx context.Context, key TKey) (r *TDataResult_, err error) + PutData func(ctx context.Context, key TKey, data *TStringValue) (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) GetData(ctx context.Context, key TKey) (r *TDataResult_, err error) + func (p *TDataServiceClient) PutData(ctx context.Context, key TKey, data *TStringValue) (r TErrorCode, err error) + type TDataServiceGetDataArgs struct + Key TKey + func NewTDataServiceGetDataArgs() *TDataServiceGetDataArgs + func (p *TDataServiceGetDataArgs) GetKey() TKey + func (p *TDataServiceGetDataArgs) Read(iprot thrift.TProtocol) error + func (p *TDataServiceGetDataArgs) ReadField1(iprot thrift.TProtocol) error + func (p *TDataServiceGetDataArgs) String() string + func (p *TDataServiceGetDataArgs) Write(oprot thrift.TProtocol) error + type TDataServiceGetDataResult struct + Success *TDataResult_ + func NewTDataServiceGetDataResult() *TDataServiceGetDataResult + func (p *TDataServiceGetDataResult) GetSuccess() *TDataResult_ + func (p *TDataServiceGetDataResult) IsSetSuccess() bool + func (p *TDataServiceGetDataResult) Read(iprot thrift.TProtocol) error + func (p *TDataServiceGetDataResult) ReadField0(iprot thrift.TProtocol) error + func (p *TDataServiceGetDataResult) String() string + func (p *TDataServiceGetDataResult) 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 + Data *TStringValue + Key TKey + func NewTDataServicePutDataArgs() *TDataServicePutDataArgs + func (p *TDataServicePutDataArgs) GetData() *TStringValue + func (p *TDataServicePutDataArgs) GetKey() TKey + func (p *TDataServicePutDataArgs) IsSetData() bool + 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 TI2StringService interface + type TI2StringServiceClient struct + func NewTI2StringServiceClient(c thrift.TClient) *TI2StringServiceClient + func NewTI2StringServiceClientFactory(t thrift.TTransport, f thrift.TProtocolFactory) *TI2StringServiceClient + func NewTI2StringServiceClientProtocol(t thrift.TTransport, iprot thrift.TProtocol, oprot thrift.TProtocol) *TI2StringServiceClient + type TI2StringServiceProcessor struct + func NewTI2StringServiceProcessor(handler TI2StringService) *TI2StringServiceProcessor + type TKey int64 + func TKeyPtr(v TKey) *TKey + type TStringValue struct + Value string + var TDataResult__Data_DEFAULT *TStringValue + var TDataServicePutDataArgs_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