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 ActionLink_Href_DEFAULT string + var ActionLink_Text_DEFAULT string + var GoUnusedProtection__ int + var TCommentItem_Actionlinks_DEFAULT []*ActionLink + var TCommentItem_Parentcommentid_DEFAULT int64 + var TCommentItem_PubkeyTags_DEFAULT []string + var TCommentItem_UidTags_DEFAULT []string + type ActionLink struct + Href *string + Text *string + func NewActionLink() *ActionLink + func (p *ActionLink) GetHref() string + func (p *ActionLink) GetText() string + func (p *ActionLink) IsSetHref() bool + func (p *ActionLink) IsSetText() bool + func (p *ActionLink) Read(iprot thrift.TProtocol) error + func (p *ActionLink) ReadField1(iprot thrift.TProtocol) error + func (p *ActionLink) ReadField2(iprot thrift.TProtocol) error + func (p *ActionLink) String() string + func (p *ActionLink) Write(oprot thrift.TProtocol) error + type MediaItem struct + MediaType int64 + Name string + URL string + var TCommentItem_Mediaitem_DEFAULT *MediaItem + func NewMediaItem() *MediaItem + func (p *MediaItem) GetMediaType() int64 + func (p *MediaItem) GetName() string + func (p *MediaItem) GetURL() string + func (p *MediaItem) Read(iprot thrift.TProtocol) error + func (p *MediaItem) ReadField1(iprot thrift.TProtocol) error + func (p *MediaItem) ReadField2(iprot thrift.TProtocol) error + func (p *MediaItem) ReadField3(iprot thrift.TProtocol) error + func (p *MediaItem) String() string + func (p *MediaItem) Write(oprot thrift.TProtocol) error + type TCommentItem struct + Actionlinks []*ActionLink + Content string + Idcomment TKey + Idpost int64 + MapExtend map[string]string + Mediaitem *MediaItem + Parentcommentid *int64 + Pubkey string + PubkeyTags []string + Timestamps int64 + UID int64 + UidTags []string + var TDataResult__Data_DEFAULT *TCommentItem + var TDataServicePutDataArgs_Data_DEFAULT *TCommentItem + func NewTCommentItem() *TCommentItem + func (p *TCommentItem) GetActionlinks() []*ActionLink + func (p *TCommentItem) GetContent() string + func (p *TCommentItem) GetIdcomment() TKey + func (p *TCommentItem) GetIdpost() int64 + func (p *TCommentItem) GetMapExtend() map[string]string + func (p *TCommentItem) GetMediaitem() *MediaItem + func (p *TCommentItem) GetParentcommentid() int64 + func (p *TCommentItem) GetPubkey() string + func (p *TCommentItem) GetPubkeyTags() []string + func (p *TCommentItem) GetTimestamps() int64 + func (p *TCommentItem) GetUID() int64 + func (p *TCommentItem) GetUidTags() []string + func (p *TCommentItem) IsSetActionlinks() bool + func (p *TCommentItem) IsSetMediaitem() bool + func (p *TCommentItem) IsSetParentcommentid() bool + func (p *TCommentItem) IsSetPubkeyTags() bool + func (p *TCommentItem) IsSetUidTags() bool + func (p *TCommentItem) Read(iprot thrift.TProtocol) error + func (p *TCommentItem) ReadField1(iprot thrift.TProtocol) error + func (p *TCommentItem) ReadField10(iprot thrift.TProtocol) error + func (p *TCommentItem) ReadField11(iprot thrift.TProtocol) error + func (p *TCommentItem) ReadField12(iprot thrift.TProtocol) error + func (p *TCommentItem) ReadField2(iprot thrift.TProtocol) error + func (p *TCommentItem) ReadField3(iprot thrift.TProtocol) error + func (p *TCommentItem) ReadField4(iprot thrift.TProtocol) error + func (p *TCommentItem) ReadField5(iprot thrift.TProtocol) error + func (p *TCommentItem) ReadField6(iprot thrift.TProtocol) error + func (p *TCommentItem) ReadField7(iprot thrift.TProtocol) error + func (p *TCommentItem) ReadField8(iprot thrift.TProtocol) error + func (p *TCommentItem) ReadField9(iprot thrift.TProtocol) error + func (p *TCommentItem) String() string + func (p *TCommentItem) Write(oprot thrift.TProtocol) error + type TCommentStorageService interface + type TCommentStorageServiceClient struct + func NewTCommentStorageServiceClient(c thrift.TClient) *TCommentStorageServiceClient + func NewTCommentStorageServiceClientFactory(t thrift.TTransport, f thrift.TProtocolFactory) *TCommentStorageServiceClient + func NewTCommentStorageServiceClientProtocol(t thrift.TTransport, iprot thrift.TProtocol, oprot thrift.TProtocol) *TCommentStorageServiceClient + type TCommentStorageServiceProcessor struct + func NewTCommentStorageServiceProcessor(handler TCommentStorageService) *TCommentStorageServiceProcessor + type TData *TCommentItem + func TDataPtr(v TData) *TData + type TDataResult_ struct + Data *TCommentItem + ErrorCode TErrorCode + var TDataServiceGetDataResult_Success_DEFAULT *TDataResult_ + var TDataServiceRGetDataResult_Success_DEFAULT *TDataResult_ + func NewTDataResult_() *TDataResult_ + func (p *TDataResult_) GetData() *TCommentItem + 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) + GetListData func(ctx context.Context, listKey []TKey) (r *TListDataResult_, err error) + PutData func(ctx context.Context, key TKey, data *TCommentItem) (r TErrorCode, err error) + RemoveData func(ctx context.Context, key TKey) (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) GetListData(ctx context.Context, listKey []TKey) (r *TListDataResult_, err error) + func (p *TDataServiceClient) PutData(ctx context.Context, key TKey, data *TCommentItem) (r TErrorCode, err error) + func (p *TDataServiceClient) RemoveData(ctx context.Context, key TKey) (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 TDataServiceGetListDataArgs struct + ListKey []TKey + func NewTDataServiceGetListDataArgs() *TDataServiceGetListDataArgs + func (p *TDataServiceGetListDataArgs) GetListKey() []TKey + func (p *TDataServiceGetListDataArgs) Read(iprot thrift.TProtocol) error + func (p *TDataServiceGetListDataArgs) ReadField1(iprot thrift.TProtocol) error + func (p *TDataServiceGetListDataArgs) String() string + func (p *TDataServiceGetListDataArgs) Write(oprot thrift.TProtocol) error + type TDataServiceGetListDataResult struct + Success *TListDataResult_ + func NewTDataServiceGetListDataResult() *TDataServiceGetListDataResult + func (p *TDataServiceGetListDataResult) GetSuccess() *TListDataResult_ + func (p *TDataServiceGetListDataResult) IsSetSuccess() bool + func (p *TDataServiceGetListDataResult) Read(iprot thrift.TProtocol) error + func (p *TDataServiceGetListDataResult) ReadField0(iprot thrift.TProtocol) error + func (p *TDataServiceGetListDataResult) String() string + func (p *TDataServiceGetListDataResult) 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 *TCommentItem + Key TKey + func NewTDataServicePutDataArgs() *TDataServicePutDataArgs + func (p *TDataServicePutDataArgs) GetData() *TCommentItem + 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 TDataServiceRemoveDataArgs struct + Key TKey + func NewTDataServiceRemoveDataArgs() *TDataServiceRemoveDataArgs + func (p *TDataServiceRemoveDataArgs) GetKey() TKey + func (p *TDataServiceRemoveDataArgs) Read(iprot thrift.TProtocol) error + func (p *TDataServiceRemoveDataArgs) ReadField1(iprot thrift.TProtocol) error + func (p *TDataServiceRemoveDataArgs) String() string + func (p *TDataServiceRemoveDataArgs) Write(oprot thrift.TProtocol) error + type TDataServiceRemoveDataResult struct + Success *TErrorCode + func NewTDataServiceRemoveDataResult() *TDataServiceRemoveDataResult + func (p *TDataServiceRemoveDataResult) GetSuccess() TErrorCode + func (p *TDataServiceRemoveDataResult) IsSetSuccess() bool + func (p *TDataServiceRemoveDataResult) Read(iprot thrift.TProtocol) error + func (p *TDataServiceRemoveDataResult) ReadField0(iprot thrift.TProtocol) error + func (p *TDataServiceRemoveDataResult) String() string + func (p *TDataServiceRemoveDataResult) Write(oprot thrift.TProtocol) error + type TErrorCode int64 + const TErrorCode_EDataExisted + const TErrorCode_EGood + const TErrorCode_ENotFound + const TErrorCode_EUnknown + var TDataServicePutDataResult_Success_DEFAULT TErrorCode + var TDataServiceRemoveDataResult_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 int64 + func TKeyPtr(v TKey) *TKey + type TListDataResult_ struct + ErrorCode TErrorCode + ListDatas []*TCommentItem + var TDataServiceGetListDataResult_Success_DEFAULT *TListDataResult_ + func NewTListDataResult_() *TListDataResult_ + func (p *TListDataResult_) GetErrorCode() TErrorCode + func (p *TListDataResult_) GetListDatas() []*TCommentItem + func (p *TListDataResult_) Read(iprot thrift.TProtocol) error + func (p *TListDataResult_) ReadField1(iprot thrift.TProtocol) error + func (p *TListDataResult_) ReadField2(iprot thrift.TProtocol) error + func (p *TListDataResult_) String() string + func (p *TListDataResult_) Write(oprot thrift.TProtocol) error