Documentation ¶
Index ¶
- Variables
- type TData
- type TDataResult_
- func (p *TDataResult_) GetData() *TMediaItem
- 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) 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 *TMediaItem) (r TErrorCode, err error)
- func (p *TDataServiceClient) RemoveData(ctx context.Context, key TKey) (r TErrorCode, err error)
- type 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
- 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
- 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
- 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
- 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) GetData() *TMediaItem
- 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
- 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 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
- 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
- type TKey
- type TListDataResult_
- func (p *TListDataResult_) GetErrorCode() TErrorCode
- func (p *TListDataResult_) GetListDatas() []*TMediaItem
- 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
- type TMediaItem
- func (p *TMediaItem) GetExtend() string
- func (p *TMediaItem) GetIdmedia() int64
- func (p *TMediaItem) GetIdpost() int64
- func (p *TMediaItem) GetMapExtend() map[string]string
- func (p *TMediaItem) GetMediaType() int64
- func (p *TMediaItem) GetName() string
- func (p *TMediaItem) GetTimestamps() int64
- func (p *TMediaItem) GetURL() string
- func (p *TMediaItem) Read(iprot thrift.TProtocol) error
- func (p *TMediaItem) ReadField1(iprot thrift.TProtocol) error
- func (p *TMediaItem) ReadField2(iprot thrift.TProtocol) error
- func (p *TMediaItem) ReadField3(iprot thrift.TProtocol) error
- func (p *TMediaItem) ReadField4(iprot thrift.TProtocol) error
- func (p *TMediaItem) ReadField5(iprot thrift.TProtocol) error
- func (p *TMediaItem) ReadField6(iprot thrift.TProtocol) error
- func (p *TMediaItem) ReadField7(iprot thrift.TProtocol) error
- func (p *TMediaItem) ReadField8(iprot thrift.TProtocol) error
- func (p *TMediaItem) String() string
- func (p *TMediaItem) Write(oprot thrift.TProtocol) error
- type TMediaStorageService
- type TMediaStorageServiceClient
- func NewTMediaStorageServiceClient(c thrift.TClient) *TMediaStorageServiceClient
- func NewTMediaStorageServiceClientFactory(t thrift.TTransport, f thrift.TProtocolFactory) *TMediaStorageServiceClient
- func NewTMediaStorageServiceClientProtocol(t thrift.TTransport, iprot thrift.TProtocol, oprot thrift.TProtocol) *TMediaStorageServiceClient
- type TMediaStorageServiceProcessor
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 *TMediaItem `thrift:"data,2" db:"data" json:"data,omitempty"` }
Attributes:
- ErrorCode
- Data
var TDataServiceGetDataResult_Success_DEFAULT *TDataResult_
var TDataServiceRGetDataResult_Success_DEFAULT *TDataResult_
func NewTDataResult_ ¶
func NewTDataResult_() *TDataResult_
func (*TDataResult_) GetData ¶
func (p *TDataResult_) GetData() *TMediaItem
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: // - Key GetData(ctx context.Context, key TKey) (r *TDataResult_, err error) // Parameters: // - Key // - Data PutData(ctx context.Context, key TKey, data *TMediaItem) (r TErrorCode, err error) // Parameters: // - Key RemoveData(ctx context.Context, key TKey) (r TErrorCode, err error) // Parameters: // - Listkey GetListData(ctx context.Context, listkey []TKey) (r *TListDataResult_, 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) GetData ¶
func (p *TDataServiceClient) GetData(ctx context.Context, key TKey) (r *TDataResult_, err error)
Parameters:
- Key
func (*TDataServiceClient) GetListData ¶
func (p *TDataServiceClient) GetListData(ctx context.Context, listkey []TKey) (r *TListDataResult_, err error)
Parameters:
- Listkey
func (*TDataServiceClient) PutData ¶
func (p *TDataServiceClient) PutData(ctx context.Context, key TKey, data *TMediaItem) (r TErrorCode, err error)
Parameters:
- Key
- Data
func (*TDataServiceClient) RemoveData ¶
func (p *TDataServiceClient) RemoveData(ctx context.Context, key TKey) (r TErrorCode, err error)
Parameters:
- Key
type TDataServiceGetDataArgs ¶
type TDataServiceGetDataArgs struct {
Key TKey `thrift:"key,1" db:"key" json:"key"`
}
Attributes:
- Key
func NewTDataServiceGetDataArgs ¶
func NewTDataServiceGetDataArgs() *TDataServiceGetDataArgs
func (*TDataServiceGetDataArgs) GetKey ¶
func (p *TDataServiceGetDataArgs) GetKey() TKey
func (*TDataServiceGetDataArgs) Read ¶
func (p *TDataServiceGetDataArgs) Read(iprot thrift.TProtocol) error
func (*TDataServiceGetDataArgs) ReadField1 ¶
func (p *TDataServiceGetDataArgs) ReadField1(iprot thrift.TProtocol) error
func (*TDataServiceGetDataArgs) String ¶
func (p *TDataServiceGetDataArgs) String() string
type TDataServiceGetDataResult ¶
type TDataServiceGetDataResult struct {
Success *TDataResult_ `thrift:"success,0" db:"success" json:"success,omitempty"`
}
Attributes:
- Success
func NewTDataServiceGetDataResult ¶
func NewTDataServiceGetDataResult() *TDataServiceGetDataResult
func (*TDataServiceGetDataResult) GetSuccess ¶
func (p *TDataServiceGetDataResult) GetSuccess() *TDataResult_
func (*TDataServiceGetDataResult) IsSetSuccess ¶
func (p *TDataServiceGetDataResult) IsSetSuccess() bool
func (*TDataServiceGetDataResult) Read ¶
func (p *TDataServiceGetDataResult) Read(iprot thrift.TProtocol) error
func (*TDataServiceGetDataResult) ReadField0 ¶
func (p *TDataServiceGetDataResult) ReadField0(iprot thrift.TProtocol) error
func (*TDataServiceGetDataResult) String ¶
func (p *TDataServiceGetDataResult) String() string
type TDataServiceGetListDataArgs ¶
type TDataServiceGetListDataArgs struct {
Listkey []TKey `thrift:"listkey,1" db:"listkey" json:"listkey"`
}
Attributes:
- Listkey
func NewTDataServiceGetListDataArgs ¶
func NewTDataServiceGetListDataArgs() *TDataServiceGetListDataArgs
func (*TDataServiceGetListDataArgs) GetListkey ¶
func (p *TDataServiceGetListDataArgs) GetListkey() []TKey
func (*TDataServiceGetListDataArgs) Read ¶
func (p *TDataServiceGetListDataArgs) Read(iprot thrift.TProtocol) error
func (*TDataServiceGetListDataArgs) ReadField1 ¶
func (p *TDataServiceGetListDataArgs) ReadField1(iprot thrift.TProtocol) error
func (*TDataServiceGetListDataArgs) String ¶
func (p *TDataServiceGetListDataArgs) String() string
type TDataServiceGetListDataResult ¶
type TDataServiceGetListDataResult struct {
Success *TListDataResult_ `thrift:"success,0" db:"success" json:"success,omitempty"`
}
Attributes:
- Success
func NewTDataServiceGetListDataResult ¶
func NewTDataServiceGetListDataResult() *TDataServiceGetListDataResult
func (*TDataServiceGetListDataResult) GetSuccess ¶
func (p *TDataServiceGetListDataResult) GetSuccess() *TListDataResult_
func (*TDataServiceGetListDataResult) IsSetSuccess ¶
func (p *TDataServiceGetListDataResult) IsSetSuccess() bool
func (*TDataServiceGetListDataResult) Read ¶
func (p *TDataServiceGetListDataResult) Read(iprot thrift.TProtocol) error
func (*TDataServiceGetListDataResult) ReadField0 ¶
func (p *TDataServiceGetListDataResult) ReadField0(iprot thrift.TProtocol) error
func (*TDataServiceGetListDataResult) String ¶
func (p *TDataServiceGetListDataResult) 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 { Key TKey `thrift:"key,1" db:"key" json:"key"` Data *TMediaItem `thrift:"data,2" db:"data" json:"data"` }
Attributes:
- Key
- Data
func NewTDataServicePutDataArgs ¶
func NewTDataServicePutDataArgs() *TDataServicePutDataArgs
func (*TDataServicePutDataArgs) GetData ¶
func (p *TDataServicePutDataArgs) GetData() *TMediaItem
func (*TDataServicePutDataArgs) GetKey ¶
func (p *TDataServicePutDataArgs) GetKey() TKey
func (*TDataServicePutDataArgs) IsSetData ¶
func (p *TDataServicePutDataArgs) IsSetData() bool
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 TDataServiceRemoveDataArgs ¶
type TDataServiceRemoveDataArgs struct {
Key TKey `thrift:"key,1" db:"key" json:"key"`
}
Attributes:
- Key
func NewTDataServiceRemoveDataArgs ¶
func NewTDataServiceRemoveDataArgs() *TDataServiceRemoveDataArgs
func (*TDataServiceRemoveDataArgs) GetKey ¶
func (p *TDataServiceRemoveDataArgs) GetKey() TKey
func (*TDataServiceRemoveDataArgs) Read ¶
func (p *TDataServiceRemoveDataArgs) Read(iprot thrift.TProtocol) error
func (*TDataServiceRemoveDataArgs) ReadField1 ¶
func (p *TDataServiceRemoveDataArgs) ReadField1(iprot thrift.TProtocol) error
func (*TDataServiceRemoveDataArgs) String ¶
func (p *TDataServiceRemoveDataArgs) String() string
type TDataServiceRemoveDataResult ¶
type TDataServiceRemoveDataResult struct {
Success *TErrorCode `thrift:"success,0" db:"success" json:"success,omitempty"`
}
Attributes:
- Success
func NewTDataServiceRemoveDataResult ¶
func NewTDataServiceRemoveDataResult() *TDataServiceRemoveDataResult
func (*TDataServiceRemoveDataResult) GetSuccess ¶
func (p *TDataServiceRemoveDataResult) GetSuccess() TErrorCode
func (*TDataServiceRemoveDataResult) IsSetSuccess ¶
func (p *TDataServiceRemoveDataResult) IsSetSuccess() bool
func (*TDataServiceRemoveDataResult) Read ¶
func (p *TDataServiceRemoveDataResult) Read(iprot thrift.TProtocol) error
func (*TDataServiceRemoveDataResult) ReadField0 ¶
func (p *TDataServiceRemoveDataResult) ReadField0(iprot thrift.TProtocol) error
func (*TDataServiceRemoveDataResult) String ¶
func (p *TDataServiceRemoveDataResult) String() string
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
var TDataServiceRemoveDataResult_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 TListDataResult_ ¶
type TListDataResult_ struct { ErrorCode TErrorCode `thrift:"errorCode,1" db:"errorCode" json:"errorCode"` ListDatas []*TMediaItem `thrift:"listDatas,2" db:"listDatas" json:"listDatas"` }
Attributes:
- ErrorCode
- ListDatas
var TDataServiceGetListDataResult_Success_DEFAULT *TListDataResult_
func NewTListDataResult_ ¶
func NewTListDataResult_() *TListDataResult_
func (*TListDataResult_) GetErrorCode ¶
func (p *TListDataResult_) GetErrorCode() TErrorCode
func (*TListDataResult_) GetListDatas ¶
func (p *TListDataResult_) GetListDatas() []*TMediaItem
func (*TListDataResult_) ReadField1 ¶
func (p *TListDataResult_) ReadField1(iprot thrift.TProtocol) error
func (*TListDataResult_) ReadField2 ¶
func (p *TListDataResult_) ReadField2(iprot thrift.TProtocol) error
func (*TListDataResult_) String ¶
func (p *TListDataResult_) String() string
type TMediaItem ¶
type TMediaItem struct { Name string `thrift:"name,1" db:"name" json:"name"` MediaType int64 `thrift:"mediaType,2" db:"mediaType" json:"mediaType"` URL string `thrift:"url,3" db:"url" json:"url"` Idmedia int64 `thrift:"idmedia,4" db:"idmedia" json:"idmedia"` Idpost int64 `thrift:"idpost,5" db:"idpost" json:"idpost"` Timestamps int64 `thrift:"timestamps,6" db:"timestamps" json:"timestamps"` Extend string `thrift:"extend,7" db:"extend" json:"extend"` MapExtend map[string]string `thrift:"mapExtend,8" db:"mapExtend" json:"mapExtend"` }
Attributes:
- Name
- MediaType
- URL
- Idmedia
- Idpost
- Timestamps
- Extend
- MapExtend
var TDataResult__Data_DEFAULT *TMediaItem
var TDataServicePutDataArgs_Data_DEFAULT *TMediaItem
func NewTMediaItem ¶
func NewTMediaItem() *TMediaItem
func (*TMediaItem) GetExtend ¶
func (p *TMediaItem) GetExtend() string
func (*TMediaItem) GetIdmedia ¶
func (p *TMediaItem) GetIdmedia() int64
func (*TMediaItem) GetIdpost ¶
func (p *TMediaItem) GetIdpost() int64
func (*TMediaItem) GetMapExtend ¶
func (p *TMediaItem) GetMapExtend() map[string]string
func (*TMediaItem) GetMediaType ¶
func (p *TMediaItem) GetMediaType() int64
func (*TMediaItem) GetName ¶
func (p *TMediaItem) GetName() string
func (*TMediaItem) GetTimestamps ¶
func (p *TMediaItem) GetTimestamps() int64
func (*TMediaItem) GetURL ¶
func (p *TMediaItem) GetURL() string
func (*TMediaItem) ReadField1 ¶
func (p *TMediaItem) ReadField1(iprot thrift.TProtocol) error
func (*TMediaItem) ReadField2 ¶
func (p *TMediaItem) ReadField2(iprot thrift.TProtocol) error
func (*TMediaItem) ReadField3 ¶
func (p *TMediaItem) ReadField3(iprot thrift.TProtocol) error
func (*TMediaItem) ReadField4 ¶
func (p *TMediaItem) ReadField4(iprot thrift.TProtocol) error
func (*TMediaItem) ReadField5 ¶
func (p *TMediaItem) ReadField5(iprot thrift.TProtocol) error
func (*TMediaItem) ReadField6 ¶
func (p *TMediaItem) ReadField6(iprot thrift.TProtocol) error
func (*TMediaItem) ReadField7 ¶
func (p *TMediaItem) ReadField7(iprot thrift.TProtocol) error
func (*TMediaItem) ReadField8 ¶
func (p *TMediaItem) ReadField8(iprot thrift.TProtocol) error
func (*TMediaItem) String ¶
func (p *TMediaItem) String() string
type TMediaStorageService ¶
type TMediaStorageService interface { TDataService }
type TMediaStorageServiceClient ¶
type TMediaStorageServiceClient struct {
*TDataServiceClient
}
func NewTMediaStorageServiceClient ¶
func NewTMediaStorageServiceClient(c thrift.TClient) *TMediaStorageServiceClient
func NewTMediaStorageServiceClientFactory ¶
func NewTMediaStorageServiceClientFactory(t thrift.TTransport, f thrift.TProtocolFactory) *TMediaStorageServiceClient
func NewTMediaStorageServiceClientProtocol ¶
func NewTMediaStorageServiceClientProtocol(t thrift.TTransport, iprot thrift.TProtocol, oprot thrift.TProtocol) *TMediaStorageServiceClient
type TMediaStorageServiceProcessor ¶
type TMediaStorageServiceProcessor struct {
*TDataServiceProcessor
}
func NewTMediaStorageServiceProcessor ¶
func NewTMediaStorageServiceProcessor(handler TMediaStorageService) *TMediaStorageServiceProcessor
Source Files ¶
Click to show internal directories.
Click to hide internal directories.