TPostStorageService

package
v0.0.0-...-c5b983b Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jan 16, 2020 License: Apache-2.0 Imports: 7 Imported by: 19

Documentation

Index

Constants

This section is empty.

Variables

View Source
var ActionLink_Href_DEFAULT string
View Source
var ActionLink_Text_DEFAULT string
View Source
var GoUnusedProtection__ int
View Source
var TPostItem_ActionLinks_DEFAULT []*ActionLink
View Source
var TPostItem_Extend_DEFAULT string
View Source
var TPostItem_Idfeeling_DEFAULT string
View Source
var TPostItem_ListMediaItems_DEFAULT []*MediaItem

Functions

This section is empty.

Types

type ActionLink struct {
	Text *string `thrift:"text,1" db:"text" json:"text,omitempty"`
	Href *string `thrift:"href,2" db:"href" json:"href,omitempty"`
}

Attributes:

  • Text
  • Href
func NewActionLink() *ActionLink

func (*ActionLink) GetHref

func (p *ActionLink) GetHref() string

func (*ActionLink) GetText

func (p *ActionLink) GetText() string

func (*ActionLink) IsSetHref

func (p *ActionLink) IsSetHref() bool

func (*ActionLink) IsSetText

func (p *ActionLink) IsSetText() bool

func (*ActionLink) Read

func (p *ActionLink) Read(iprot thrift.TProtocol) error

func (*ActionLink) ReadField1

func (p *ActionLink) ReadField1(iprot thrift.TProtocol) error

func (*ActionLink) ReadField2

func (p *ActionLink) ReadField2(iprot thrift.TProtocol) error

func (*ActionLink) String

func (p *ActionLink) String() string

func (*ActionLink) Write

func (p *ActionLink) Write(oprot thrift.TProtocol) error

type MediaItem

type MediaItem 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

func NewMediaItem

func NewMediaItem() *MediaItem

func (*MediaItem) GetExtend

func (p *MediaItem) GetExtend() string

func (*MediaItem) GetIdmedia

func (p *MediaItem) GetIdmedia() int64

func (*MediaItem) GetIdpost

func (p *MediaItem) GetIdpost() int64

func (*MediaItem) GetMapExtend

func (p *MediaItem) GetMapExtend() map[string]string

func (*MediaItem) GetMediaType

func (p *MediaItem) GetMediaType() int64

func (*MediaItem) GetName

func (p *MediaItem) GetName() string

func (*MediaItem) GetTimestamps

func (p *MediaItem) GetTimestamps() int64

func (*MediaItem) GetURL

func (p *MediaItem) GetURL() string

func (*MediaItem) Read

func (p *MediaItem) Read(iprot thrift.TProtocol) error

func (*MediaItem) ReadField1

func (p *MediaItem) ReadField1(iprot thrift.TProtocol) error

func (*MediaItem) ReadField2

func (p *MediaItem) ReadField2(iprot thrift.TProtocol) error

func (*MediaItem) ReadField3

func (p *MediaItem) ReadField3(iprot thrift.TProtocol) error

func (*MediaItem) ReadField4

func (p *MediaItem) ReadField4(iprot thrift.TProtocol) error

func (*MediaItem) ReadField5

func (p *MediaItem) ReadField5(iprot thrift.TProtocol) error

func (*MediaItem) ReadField6

func (p *MediaItem) ReadField6(iprot thrift.TProtocol) error

func (*MediaItem) ReadField7

func (p *MediaItem) ReadField7(iprot thrift.TProtocol) error

func (*MediaItem) ReadField8

func (p *MediaItem) ReadField8(iprot thrift.TProtocol) error

func (*MediaItem) String

func (p *MediaItem) String() string

func (*MediaItem) Write

func (p *MediaItem) Write(oprot thrift.TProtocol) error

type OwnerData

type OwnerData struct {
	Pubkey      string `thrift:"pubkey,1" db:"pubkey" json:"pubkey"`
	DisplayName string `thrift:"displayName,2" db:"displayName" json:"displayName"`
	Avatar      string `thrift:"avatar,3" db:"avatar" json:"avatar"`
}

Attributes:

  • Pubkey
  • DisplayName
  • Avatar
var TPostItem_OwnerInfo_DEFAULT *OwnerData

func NewOwnerData

func NewOwnerData() *OwnerData

func (*OwnerData) GetAvatar

func (p *OwnerData) GetAvatar() string

func (*OwnerData) GetDisplayName

func (p *OwnerData) GetDisplayName() string

func (*OwnerData) GetPubkey

func (p *OwnerData) GetPubkey() string

func (*OwnerData) Read

func (p *OwnerData) Read(iprot thrift.TProtocol) error

func (*OwnerData) ReadField1

func (p *OwnerData) ReadField1(iprot thrift.TProtocol) error

func (*OwnerData) ReadField2

func (p *OwnerData) ReadField2(iprot thrift.TProtocol) error

func (*OwnerData) ReadField3

func (p *OwnerData) ReadField3(iprot thrift.TProtocol) error

func (*OwnerData) String

func (p *OwnerData) String() string

func (*OwnerData) Write

func (p *OwnerData) Write(oprot thrift.TProtocol) error

type TData

type TData *TPostItem

func TDataPtr

func TDataPtr(v TData) *TData

type TDataResult_

type TDataResult_ struct {
	ErrorCode TErrorCode `thrift:"errorCode,1" db:"errorCode" json:"errorCode"`
	Data      *TPostItem `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() *TPostItem

func (*TDataResult_) GetErrorCode

func (p *TDataResult_) GetErrorCode() TErrorCode

func (*TDataResult_) IsSetData

func (p *TDataResult_) IsSetData() bool

func (*TDataResult_) Read

func (p *TDataResult_) Read(iprot thrift.TProtocol) error

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

func (*TDataResult_) Write

func (p *TDataResult_) Write(oprot thrift.TProtocol) error

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 *TPostItem) (r TErrorCode, err error)
	// Parameters:
	//  - Key
	RemoveData(ctx context.Context, key TKey) (r TErrorCode, err error)
	// Parameters:
	//  - Listkey
	GetListDatas(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 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) GetListDatas

func (p *TDataServiceClient) GetListDatas(ctx context.Context, listkey []TKey) (r *TListDataResult_, err error)

Parameters:

  • Listkey

func (*TDataServiceClient) PutData

func (p *TDataServiceClient) PutData(ctx context.Context, key TKey, data *TPostItem) (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 (*TDataServiceGetDataArgs) ReadField1

func (p *TDataServiceGetDataArgs) ReadField1(iprot thrift.TProtocol) error

func (*TDataServiceGetDataArgs) String

func (p *TDataServiceGetDataArgs) String() string

func (*TDataServiceGetDataArgs) Write

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 (*TDataServiceGetDataResult) ReadField0

func (p *TDataServiceGetDataResult) ReadField0(iprot thrift.TProtocol) error

func (*TDataServiceGetDataResult) String

func (p *TDataServiceGetDataResult) String() string

func (*TDataServiceGetDataResult) Write

type TDataServiceGetListDatasArgs

type TDataServiceGetListDatasArgs struct {
	Listkey []TKey `thrift:"listkey,1" db:"listkey" json:"listkey"`
}

Attributes:

  • Listkey

func NewTDataServiceGetListDatasArgs

func NewTDataServiceGetListDatasArgs() *TDataServiceGetListDatasArgs

func (*TDataServiceGetListDatasArgs) GetListkey

func (p *TDataServiceGetListDatasArgs) GetListkey() []TKey

func (*TDataServiceGetListDatasArgs) Read

func (*TDataServiceGetListDatasArgs) ReadField1

func (p *TDataServiceGetListDatasArgs) ReadField1(iprot thrift.TProtocol) error

func (*TDataServiceGetListDatasArgs) String

func (*TDataServiceGetListDatasArgs) Write

type TDataServiceGetListDatasResult

type TDataServiceGetListDatasResult struct {
	Success *TListDataResult_ `thrift:"success,0" db:"success" json:"success,omitempty"`
}

Attributes:

  • Success

func NewTDataServiceGetListDatasResult

func NewTDataServiceGetListDatasResult() *TDataServiceGetListDatasResult

func (*TDataServiceGetListDatasResult) GetSuccess

func (*TDataServiceGetListDatasResult) IsSetSuccess

func (p *TDataServiceGetListDatasResult) IsSetSuccess() bool

func (*TDataServiceGetListDatasResult) Read

func (*TDataServiceGetListDatasResult) ReadField0

func (*TDataServiceGetListDatasResult) String

func (*TDataServiceGetListDatasResult) Write

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 *TPostItem `thrift:"data,2" db:"data" json:"data"`
}

Attributes:

  • Key
  • Data

func NewTDataServicePutDataArgs

func NewTDataServicePutDataArgs() *TDataServicePutDataArgs

func (*TDataServicePutDataArgs) GetData

func (p *TDataServicePutDataArgs) GetData() *TPostItem

func (*TDataServicePutDataArgs) GetKey

func (p *TDataServicePutDataArgs) GetKey() TKey

func (*TDataServicePutDataArgs) IsSetData

func (p *TDataServicePutDataArgs) IsSetData() bool

func (*TDataServicePutDataArgs) Read

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

func (*TDataServicePutDataArgs) Write

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 (*TDataServicePutDataResult) ReadField0

func (p *TDataServicePutDataResult) ReadField0(iprot thrift.TProtocol) error

func (*TDataServicePutDataResult) String

func (p *TDataServicePutDataResult) String() string

func (*TDataServicePutDataResult) Write

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 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 (*TDataServiceRGetDataArgs) ReadField1

func (p *TDataServiceRGetDataArgs) ReadField1(iprot thrift.TProtocol) error

func (*TDataServiceRGetDataArgs) String

func (p *TDataServiceRGetDataArgs) String() string

func (*TDataServiceRGetDataArgs) Write

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 (*TDataServiceRGetDataResult) ReadField0

func (p *TDataServiceRGetDataResult) ReadField0(iprot thrift.TProtocol) error

func (*TDataServiceRGetDataResult) String

func (p *TDataServiceRGetDataResult) String() string

func (*TDataServiceRGetDataResult) Write

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

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 (*TDataServiceRemoveDataArgs) ReadField1

func (p *TDataServiceRemoveDataArgs) ReadField1(iprot thrift.TProtocol) error

func (*TDataServiceRemoveDataArgs) String

func (p *TDataServiceRemoveDataArgs) String() string

func (*TDataServiceRemoveDataArgs) Write

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 (*TDataServiceRemoveDataResult) ReadField0

func (p *TDataServiceRemoveDataResult) ReadField0(iprot thrift.TProtocol) error

func (*TDataServiceRemoveDataResult) String

func (*TDataServiceRemoveDataResult) Write

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

func (*TErrorCode) Value

func (p *TErrorCode) Value() (driver.Value, error)

type TKey

type TKey int64

func TKeyPtr

func TKeyPtr(v TKey) *TKey

type TListDataResult_

type TListDataResult_ struct {
	ErrorCode TErrorCode   `thrift:"errorCode,1" db:"errorCode" json:"errorCode"`
	ListDatas []*TPostItem `thrift:"listDatas,2" db:"listDatas" json:"listDatas"`
}

Attributes:

  • ErrorCode
  • ListDatas
var TDataServiceGetListDatasResult_Success_DEFAULT *TListDataResult_

func NewTListDataResult_

func NewTListDataResult_() *TListDataResult_

func (*TListDataResult_) GetErrorCode

func (p *TListDataResult_) GetErrorCode() TErrorCode

func (*TListDataResult_) GetListDatas

func (p *TListDataResult_) GetListDatas() []*TPostItem

func (*TListDataResult_) Read

func (p *TListDataResult_) Read(iprot thrift.TProtocol) error

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

func (*TListDataResult_) Write

func (p *TListDataResult_) Write(oprot thrift.TProtocol) error

type TPostItem

type TPostItem struct {
	Idpost         TKey         `thrift:"idpost,1" db:"idpost" json:"idpost"`
	UID            int64        `thrift:"uid,2" db:"uid" json:"uid"`
	Content        string       `thrift:"content,3" db:"content" json:"content"`
	ListMediaItems []*MediaItem `thrift:"listMediaItems,4" db:"listMediaItems" json:"listMediaItems,omitempty"`
	// unused field # 5
	Idfeeling *string `thrift:"idfeeling,6" db:"idfeeling" json:"idfeeling,omitempty"`
	Privacy   int64   `thrift:"privacy,7" db:"privacy" json:"privacy"`
	// unused fields # 8 to 11
	Timestamps int64  `thrift:"timestamps,12" db:"timestamps" json:"timestamps"`
	Pubkey     string `thrift:"pubkey,13" db:"pubkey" json:"pubkey"`
	// unused fields # 14 to 16
	ActionLinks []*ActionLink `thrift:"actionLinks,17" db:"actionLinks" json:"actionLinks,omitempty"`
	// unused fields # 18 to 20
	Extend        *string           `thrift:"extend,21" db:"extend" json:"extend,omitempty"`
	TotalReaction int64             `thrift:"totalReaction,22" db:"totalReaction" json:"totalReaction"`
	TotalComment  int64             `thrift:"totalComment,23" db:"totalComment" json:"totalComment"`
	TotalShare    int64             `thrift:"totalShare,24" db:"totalShare" json:"totalShare"`
	OriginPostID  int64             `thrift:"originPostID,25" db:"originPostID" json:"originPostID"`
	OwnerInfo     *OwnerData        `thrift:"ownerInfo,26" db:"ownerInfo" json:"ownerInfo"`
	MapExtend     map[string]string `thrift:"mapExtend,27" db:"mapExtend" json:"mapExtend"`
}

Attributes:

  • Idpost
  • UID
  • Content
  • ListMediaItems
  • Idfeeling
  • Privacy
  • Timestamps
  • Pubkey
  • ActionLinks
  • Extend
  • TotalReaction
  • TotalComment
  • TotalShare
  • OriginPostID
  • OwnerInfo
  • MapExtend
var TDataResult__Data_DEFAULT *TPostItem
var TDataServicePutDataArgs_Data_DEFAULT *TPostItem

func NewTPostItem

func NewTPostItem() *TPostItem
func (p *TPostItem) GetActionLinks() []*ActionLink

func (*TPostItem) GetContent

func (p *TPostItem) GetContent() string

func (*TPostItem) GetExtend

func (p *TPostItem) GetExtend() string

func (*TPostItem) GetIdfeeling

func (p *TPostItem) GetIdfeeling() string

func (*TPostItem) GetIdpost

func (p *TPostItem) GetIdpost() TKey

func (*TPostItem) GetListMediaItems

func (p *TPostItem) GetListMediaItems() []*MediaItem

func (*TPostItem) GetMapExtend

func (p *TPostItem) GetMapExtend() map[string]string

func (*TPostItem) GetOriginPostID

func (p *TPostItem) GetOriginPostID() int64

func (*TPostItem) GetOwnerInfo

func (p *TPostItem) GetOwnerInfo() *OwnerData

func (*TPostItem) GetPrivacy

func (p *TPostItem) GetPrivacy() int64

func (*TPostItem) GetPubkey

func (p *TPostItem) GetPubkey() string

func (*TPostItem) GetTimestamps

func (p *TPostItem) GetTimestamps() int64

func (*TPostItem) GetTotalComment

func (p *TPostItem) GetTotalComment() int64

func (*TPostItem) GetTotalReaction

func (p *TPostItem) GetTotalReaction() int64

func (*TPostItem) GetTotalShare

func (p *TPostItem) GetTotalShare() int64

func (*TPostItem) GetUID

func (p *TPostItem) GetUID() int64
func (p *TPostItem) IsSetActionLinks() bool

func (*TPostItem) IsSetExtend

func (p *TPostItem) IsSetExtend() bool

func (*TPostItem) IsSetIdfeeling

func (p *TPostItem) IsSetIdfeeling() bool

func (*TPostItem) IsSetListMediaItems

func (p *TPostItem) IsSetListMediaItems() bool

func (*TPostItem) IsSetOwnerInfo

func (p *TPostItem) IsSetOwnerInfo() bool

func (*TPostItem) Read

func (p *TPostItem) Read(iprot thrift.TProtocol) error

func (*TPostItem) ReadField1

func (p *TPostItem) ReadField1(iprot thrift.TProtocol) error

func (*TPostItem) ReadField12

func (p *TPostItem) ReadField12(iprot thrift.TProtocol) error

func (*TPostItem) ReadField13

func (p *TPostItem) ReadField13(iprot thrift.TProtocol) error

func (*TPostItem) ReadField17

func (p *TPostItem) ReadField17(iprot thrift.TProtocol) error

func (*TPostItem) ReadField2

func (p *TPostItem) ReadField2(iprot thrift.TProtocol) error

func (*TPostItem) ReadField21

func (p *TPostItem) ReadField21(iprot thrift.TProtocol) error

func (*TPostItem) ReadField22

func (p *TPostItem) ReadField22(iprot thrift.TProtocol) error

func (*TPostItem) ReadField23

func (p *TPostItem) ReadField23(iprot thrift.TProtocol) error

func (*TPostItem) ReadField24

func (p *TPostItem) ReadField24(iprot thrift.TProtocol) error

func (*TPostItem) ReadField25

func (p *TPostItem) ReadField25(iprot thrift.TProtocol) error

func (*TPostItem) ReadField26

func (p *TPostItem) ReadField26(iprot thrift.TProtocol) error

func (*TPostItem) ReadField27

func (p *TPostItem) ReadField27(iprot thrift.TProtocol) error

func (*TPostItem) ReadField3

func (p *TPostItem) ReadField3(iprot thrift.TProtocol) error

func (*TPostItem) ReadField4

func (p *TPostItem) ReadField4(iprot thrift.TProtocol) error

func (*TPostItem) ReadField6

func (p *TPostItem) ReadField6(iprot thrift.TProtocol) error

func (*TPostItem) ReadField7

func (p *TPostItem) ReadField7(iprot thrift.TProtocol) error

func (*TPostItem) String

func (p *TPostItem) String() string

func (*TPostItem) Write

func (p *TPostItem) Write(oprot thrift.TProtocol) error

type TPostStorageService

type TPostStorageService interface {
	TDataService
}

type TPostStorageServiceClient

type TPostStorageServiceClient struct {
	*TDataServiceClient
}

func NewTPostStorageServiceClient

func NewTPostStorageServiceClient(c thrift.TClient) *TPostStorageServiceClient

func NewTPostStorageServiceClientProtocol

func NewTPostStorageServiceClientProtocol(t thrift.TTransport, iprot thrift.TProtocol, oprot thrift.TProtocol) *TPostStorageServiceClient

type TPostStorageServiceProcessor

type TPostStorageServiceProcessor struct {
	*TDataServiceProcessor
}

func NewTPostStorageServiceProcessor

func NewTPostStorageServiceProcessor(handler TPostStorageService) *TPostStorageServiceProcessor

type TPrivacy

type TPrivacy int64
const (
	TPrivacy_Public          TPrivacy = 0
	TPrivacy_Friends         TPrivacy = 1
	TPrivacy_FriendsExcept   TPrivacy = 2
	TPrivacy_Onlyme          TPrivacy = 3
	TPrivacy_SpecificFriends TPrivacy = 4
)

func TPrivacyFromString

func TPrivacyFromString(s string) (TPrivacy, error)

func TPrivacyPtr

func TPrivacyPtr(v TPrivacy) *TPrivacy

func (TPrivacy) MarshalText

func (p TPrivacy) MarshalText() ([]byte, error)

func (*TPrivacy) Scan

func (p *TPrivacy) Scan(value interface{}) error

func (TPrivacy) String

func (p TPrivacy) String() string

func (*TPrivacy) UnmarshalText

func (p *TPrivacy) UnmarshalText(text []byte) error

func (*TPrivacy) Value

func (p *TPrivacy) Value() (driver.Value, error)

Directories

Path Synopsis

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL