Documentation
¶
Index ¶
- Variables
- type ActionRelationRequest
- func (p *ActionRelationRequest) GetActionType() (v ActionTypeRelation)
- func (p *ActionRelationRequest) GetToUserID() (v string)
- func (p *ActionRelationRequest) InitDefault()
- func (p *ActionRelationRequest) Read(iprot thrift.TProtocol) (err error)
- func (p *ActionRelationRequest) ReadField1(iprot thrift.TProtocol) error
- func (p *ActionRelationRequest) ReadField2(iprot thrift.TProtocol) error
- func (p *ActionRelationRequest) String() string
- func (p *ActionRelationRequest) Write(oprot thrift.TProtocol) (err error)
- type ActionRelationResponse
- func (p *ActionRelationResponse) GetBase() (v *common.BaseResponse)
- func (p *ActionRelationResponse) InitDefault()
- func (p *ActionRelationResponse) IsSetBase() bool
- func (p *ActionRelationResponse) Read(iprot thrift.TProtocol) (err error)
- func (p *ActionRelationResponse) ReadField1(iprot thrift.TProtocol) error
- func (p *ActionRelationResponse) String() string
- func (p *ActionRelationResponse) Write(oprot thrift.TProtocol) (err error)
- type ActionTypeRelation
- type ListFollowerRequest
- func (p *ListFollowerRequest) GetPageNum() (v int64)
- func (p *ListFollowerRequest) GetPageSize() (v int64)
- func (p *ListFollowerRequest) GetUserID() (v string)
- func (p *ListFollowerRequest) InitDefault()
- func (p *ListFollowerRequest) IsSetPageNum() bool
- func (p *ListFollowerRequest) IsSetPageSize() bool
- func (p *ListFollowerRequest) Read(iprot thrift.TProtocol) (err error)
- func (p *ListFollowerRequest) ReadField1(iprot thrift.TProtocol) error
- func (p *ListFollowerRequest) ReadField2(iprot thrift.TProtocol) error
- func (p *ListFollowerRequest) ReadField3(iprot thrift.TProtocol) error
- func (p *ListFollowerRequest) String() string
- func (p *ListFollowerRequest) Write(oprot thrift.TProtocol) (err error)
- type ListFollowingRequest
- func (p *ListFollowingRequest) GetPageNum() (v int64)
- func (p *ListFollowingRequest) GetPageSize() (v int64)
- func (p *ListFollowingRequest) GetUserID() (v string)
- func (p *ListFollowingRequest) InitDefault()
- func (p *ListFollowingRequest) IsSetPageNum() bool
- func (p *ListFollowingRequest) IsSetPageSize() bool
- func (p *ListFollowingRequest) Read(iprot thrift.TProtocol) (err error)
- func (p *ListFollowingRequest) ReadField1(iprot thrift.TProtocol) error
- func (p *ListFollowingRequest) ReadField2(iprot thrift.TProtocol) error
- func (p *ListFollowingRequest) ReadField3(iprot thrift.TProtocol) error
- func (p *ListFollowingRequest) String() string
- func (p *ListFollowingRequest) Write(oprot thrift.TProtocol) (err error)
- type ListFriendsRequest
- func (p *ListFriendsRequest) GetPageNum() (v int64)
- func (p *ListFriendsRequest) GetPageSize() (v int64)
- func (p *ListFriendsRequest) InitDefault()
- func (p *ListFriendsRequest) IsSetPageNum() bool
- func (p *ListFriendsRequest) IsSetPageSize() bool
- func (p *ListFriendsRequest) Read(iprot thrift.TProtocol) (err error)
- func (p *ListFriendsRequest) ReadField1(iprot thrift.TProtocol) error
- func (p *ListFriendsRequest) ReadField2(iprot thrift.TProtocol) error
- func (p *ListFriendsRequest) String() string
- func (p *ListFriendsRequest) Write(oprot thrift.TProtocol) (err error)
- type SocialResponse
- func (p *SocialResponse) GetBase() (v *common.BaseResponse)
- func (p *SocialResponse) GetData() (v *common.SocialDataForListResponse)
- func (p *SocialResponse) InitDefault()
- func (p *SocialResponse) IsSetBase() bool
- func (p *SocialResponse) IsSetData() bool
- func (p *SocialResponse) Read(iprot thrift.TProtocol) (err error)
- func (p *SocialResponse) ReadField1(iprot thrift.TProtocol) error
- func (p *SocialResponse) ReadField2(iprot thrift.TProtocol) error
- func (p *SocialResponse) String() string
- func (p *SocialResponse) Write(oprot thrift.TProtocol) (err error)
- type SocialService
- type SocialServiceActionRelationArgs
- func (p *SocialServiceActionRelationArgs) GetReq() (v *ActionRelationRequest)
- func (p *SocialServiceActionRelationArgs) InitDefault()
- func (p *SocialServiceActionRelationArgs) IsSetReq() bool
- func (p *SocialServiceActionRelationArgs) Read(iprot thrift.TProtocol) (err error)
- func (p *SocialServiceActionRelationArgs) ReadField1(iprot thrift.TProtocol) error
- func (p *SocialServiceActionRelationArgs) String() string
- func (p *SocialServiceActionRelationArgs) Write(oprot thrift.TProtocol) (err error)
- type SocialServiceActionRelationResult
- func (p *SocialServiceActionRelationResult) GetSuccess() (v *ActionRelationResponse)
- func (p *SocialServiceActionRelationResult) InitDefault()
- func (p *SocialServiceActionRelationResult) IsSetSuccess() bool
- func (p *SocialServiceActionRelationResult) Read(iprot thrift.TProtocol) (err error)
- func (p *SocialServiceActionRelationResult) ReadField0(iprot thrift.TProtocol) error
- func (p *SocialServiceActionRelationResult) String() string
- func (p *SocialServiceActionRelationResult) Write(oprot thrift.TProtocol) (err error)
- type SocialServiceClient
- func (p *SocialServiceClient) ActionRelation(ctx context.Context, req *ActionRelationRequest) (r *ActionRelationResponse, err error)
- func (p *SocialServiceClient) Client_() thrift.TClient
- func (p *SocialServiceClient) ListFollower(ctx context.Context, req *ListFollowerRequest) (r *SocialResponse, err error)
- func (p *SocialServiceClient) ListFollowing(ctx context.Context, req *ListFollowingRequest) (r *SocialResponse, err error)
- func (p *SocialServiceClient) ListFriends(ctx context.Context, req *ListFriendsRequest) (r *SocialResponse, err error)
- type SocialServiceListFollowerArgs
- func (p *SocialServiceListFollowerArgs) GetReq() (v *ListFollowerRequest)
- func (p *SocialServiceListFollowerArgs) InitDefault()
- func (p *SocialServiceListFollowerArgs) IsSetReq() bool
- func (p *SocialServiceListFollowerArgs) Read(iprot thrift.TProtocol) (err error)
- func (p *SocialServiceListFollowerArgs) ReadField1(iprot thrift.TProtocol) error
- func (p *SocialServiceListFollowerArgs) String() string
- func (p *SocialServiceListFollowerArgs) Write(oprot thrift.TProtocol) (err error)
- type SocialServiceListFollowerResult
- func (p *SocialServiceListFollowerResult) GetSuccess() (v *SocialResponse)
- func (p *SocialServiceListFollowerResult) InitDefault()
- func (p *SocialServiceListFollowerResult) IsSetSuccess() bool
- func (p *SocialServiceListFollowerResult) Read(iprot thrift.TProtocol) (err error)
- func (p *SocialServiceListFollowerResult) ReadField0(iprot thrift.TProtocol) error
- func (p *SocialServiceListFollowerResult) String() string
- func (p *SocialServiceListFollowerResult) Write(oprot thrift.TProtocol) (err error)
- type SocialServiceListFollowingArgs
- func (p *SocialServiceListFollowingArgs) GetReq() (v *ListFollowingRequest)
- func (p *SocialServiceListFollowingArgs) InitDefault()
- func (p *SocialServiceListFollowingArgs) IsSetReq() bool
- func (p *SocialServiceListFollowingArgs) Read(iprot thrift.TProtocol) (err error)
- func (p *SocialServiceListFollowingArgs) ReadField1(iprot thrift.TProtocol) error
- func (p *SocialServiceListFollowingArgs) String() string
- func (p *SocialServiceListFollowingArgs) Write(oprot thrift.TProtocol) (err error)
- type SocialServiceListFollowingResult
- func (p *SocialServiceListFollowingResult) GetSuccess() (v *SocialResponse)
- func (p *SocialServiceListFollowingResult) InitDefault()
- func (p *SocialServiceListFollowingResult) IsSetSuccess() bool
- func (p *SocialServiceListFollowingResult) Read(iprot thrift.TProtocol) (err error)
- func (p *SocialServiceListFollowingResult) ReadField0(iprot thrift.TProtocol) error
- func (p *SocialServiceListFollowingResult) String() string
- func (p *SocialServiceListFollowingResult) Write(oprot thrift.TProtocol) (err error)
- type SocialServiceListFriendsArgs
- func (p *SocialServiceListFriendsArgs) GetReq() (v *ListFriendsRequest)
- func (p *SocialServiceListFriendsArgs) InitDefault()
- func (p *SocialServiceListFriendsArgs) IsSetReq() bool
- func (p *SocialServiceListFriendsArgs) Read(iprot thrift.TProtocol) (err error)
- func (p *SocialServiceListFriendsArgs) ReadField1(iprot thrift.TProtocol) error
- func (p *SocialServiceListFriendsArgs) String() string
- func (p *SocialServiceListFriendsArgs) Write(oprot thrift.TProtocol) (err error)
- type SocialServiceListFriendsResult
- func (p *SocialServiceListFriendsResult) GetSuccess() (v *SocialResponse)
- func (p *SocialServiceListFriendsResult) InitDefault()
- func (p *SocialServiceListFriendsResult) IsSetSuccess() bool
- func (p *SocialServiceListFriendsResult) Read(iprot thrift.TProtocol) (err error)
- func (p *SocialServiceListFriendsResult) ReadField0(iprot thrift.TProtocol) error
- func (p *SocialServiceListFriendsResult) String() string
- func (p *SocialServiceListFriendsResult) Write(oprot thrift.TProtocol) (err error)
- type SocialServiceProcessor
- func (p *SocialServiceProcessor) AddToProcessorMap(key string, processor thrift.TProcessorFunction)
- func (p *SocialServiceProcessor) GetProcessorFunction(key string) (processor thrift.TProcessorFunction, ok bool)
- func (p *SocialServiceProcessor) Process(ctx context.Context, iprot, oprot thrift.TProtocol) (success bool, err thrift.TException)
- func (p *SocialServiceProcessor) ProcessorMap() map[string]thrift.TProcessorFunction
Constants ¶
This section is empty.
Variables ¶
View Source
var ActionRelationResponse_Base_DEFAULT *common.BaseResponse
View Source
var ListFollowerRequest_PageNum_DEFAULT int64
View Source
var ListFollowerRequest_PageSize_DEFAULT int64
View Source
var ListFollowingRequest_PageNum_DEFAULT int64
View Source
var ListFollowingRequest_PageSize_DEFAULT int64
View Source
var ListFriendsRequest_PageNum_DEFAULT int64
View Source
var ListFriendsRequest_PageSize_DEFAULT int64
View Source
var SocialResponse_Base_DEFAULT *common.BaseResponse
View Source
var SocialResponse_Data_DEFAULT *common.SocialDataForListResponse
Functions ¶
This section is empty.
Types ¶
type ActionRelationRequest ¶
type ActionRelationRequest struct {
ToUserID string `thrift:"to_user_id,1" form:"to_user_id" json:"to_user_id" vd:"len($) > 0 && len($) < 100"`
ActionType ActionTypeRelation `thrift:"action_type,2,default,ActionTypeRelation" form:"action_type" json:"action_type" vd:"$==0 || $==1"`
}
关注操作
var SocialServiceActionRelationArgs_Req_DEFAULT *ActionRelationRequest
func NewActionRelationRequest ¶
func NewActionRelationRequest() *ActionRelationRequest
func (*ActionRelationRequest) GetActionType ¶
func (p *ActionRelationRequest) GetActionType() (v ActionTypeRelation)
func (*ActionRelationRequest) GetToUserID ¶
func (p *ActionRelationRequest) GetToUserID() (v string)
func (*ActionRelationRequest) InitDefault ¶
func (p *ActionRelationRequest) InitDefault()
func (*ActionRelationRequest) Read ¶
func (p *ActionRelationRequest) Read(iprot thrift.TProtocol) (err error)
func (*ActionRelationRequest) ReadField1 ¶
func (p *ActionRelationRequest) ReadField1(iprot thrift.TProtocol) error
func (*ActionRelationRequest) ReadField2 ¶
func (p *ActionRelationRequest) ReadField2(iprot thrift.TProtocol) error
func (*ActionRelationRequest) String ¶
func (p *ActionRelationRequest) String() string
type ActionRelationResponse ¶
type ActionRelationResponse struct {
Base *common.BaseResponse `thrift:"base,1" form:"base" json:"base" query:"base"`
}
var SocialServiceActionRelationResult_Success_DEFAULT *ActionRelationResponse
func NewActionRelationResponse ¶
func NewActionRelationResponse() *ActionRelationResponse
func (*ActionRelationResponse) GetBase ¶
func (p *ActionRelationResponse) GetBase() (v *common.BaseResponse)
func (*ActionRelationResponse) InitDefault ¶
func (p *ActionRelationResponse) InitDefault()
func (*ActionRelationResponse) IsSetBase ¶
func (p *ActionRelationResponse) IsSetBase() bool
func (*ActionRelationResponse) Read ¶
func (p *ActionRelationResponse) Read(iprot thrift.TProtocol) (err error)
func (*ActionRelationResponse) ReadField1 ¶
func (p *ActionRelationResponse) ReadField1(iprot thrift.TProtocol) error
func (*ActionRelationResponse) String ¶
func (p *ActionRelationResponse) String() string
type ActionTypeRelation ¶
type ActionTypeRelation int64
关注操作 关注是0,取消关注是1
const ( ActionTypeRelation_FOLLOW ActionTypeRelation = 0 ActionTypeRelation_UNFOLLOW ActionTypeRelation = 1 )
func ActionTypeRelationFromString ¶
func ActionTypeRelationFromString(s string) (ActionTypeRelation, error)
func ActionTypeRelationPtr ¶
func ActionTypeRelationPtr(v ActionTypeRelation) *ActionTypeRelation
func (*ActionTypeRelation) Scan ¶
func (p *ActionTypeRelation) Scan(value interface{}) (err error)
func (ActionTypeRelation) String ¶
func (p ActionTypeRelation) String() string
type ListFollowerRequest ¶
type ListFollowerRequest struct {
UserID string `thrift:"user_id,1" json:"user_id" query:"user_id" vd:"(len($) > 0 && len($) < 100)"`
PageNum *int64 `thrift:"page_num,2,optional" json:"page_num,omitempty" query:"page_num" vd:"(len($) == 0) || ($>=0)"`
PageSize *int64 `thrift:"page_size,3,optional" json:"page_size,omitempty" query:"page_size" vd:"(len($) == 0) || ($>=0)"`
}
粉丝列表
var SocialServiceListFollowerArgs_Req_DEFAULT *ListFollowerRequest
func NewListFollowerRequest ¶
func NewListFollowerRequest() *ListFollowerRequest
func (*ListFollowerRequest) GetPageNum ¶
func (p *ListFollowerRequest) GetPageNum() (v int64)
func (*ListFollowerRequest) GetPageSize ¶
func (p *ListFollowerRequest) GetPageSize() (v int64)
func (*ListFollowerRequest) GetUserID ¶
func (p *ListFollowerRequest) GetUserID() (v string)
func (*ListFollowerRequest) InitDefault ¶
func (p *ListFollowerRequest) InitDefault()
func (*ListFollowerRequest) IsSetPageNum ¶
func (p *ListFollowerRequest) IsSetPageNum() bool
func (*ListFollowerRequest) IsSetPageSize ¶
func (p *ListFollowerRequest) IsSetPageSize() bool
func (*ListFollowerRequest) Read ¶
func (p *ListFollowerRequest) Read(iprot thrift.TProtocol) (err error)
func (*ListFollowerRequest) ReadField1 ¶
func (p *ListFollowerRequest) ReadField1(iprot thrift.TProtocol) error
func (*ListFollowerRequest) ReadField2 ¶
func (p *ListFollowerRequest) ReadField2(iprot thrift.TProtocol) error
func (*ListFollowerRequest) ReadField3 ¶
func (p *ListFollowerRequest) ReadField3(iprot thrift.TProtocol) error
func (*ListFollowerRequest) String ¶
func (p *ListFollowerRequest) String() string
type ListFollowingRequest ¶
type ListFollowingRequest struct {
UserID string `thrift:"user_id,1" json:"user_id" query:"user_id" vd:"(len($) > 0 && len($) < 100)"`
PageNum *int64 `thrift:"page_num,2,optional" json:"page_num,omitempty" query:"page_num" vd:"(len($) == 0) || ($>=0)"`
PageSize *int64 `thrift:"page_size,3,optional" json:"page_size,omitempty" query:"page_size" vd:"(len($) == 0) || ($>=0)"`
}
关注列表
var SocialServiceListFollowingArgs_Req_DEFAULT *ListFollowingRequest
func NewListFollowingRequest ¶
func NewListFollowingRequest() *ListFollowingRequest
func (*ListFollowingRequest) GetPageNum ¶
func (p *ListFollowingRequest) GetPageNum() (v int64)
func (*ListFollowingRequest) GetPageSize ¶
func (p *ListFollowingRequest) GetPageSize() (v int64)
func (*ListFollowingRequest) GetUserID ¶
func (p *ListFollowingRequest) GetUserID() (v string)
func (*ListFollowingRequest) InitDefault ¶
func (p *ListFollowingRequest) InitDefault()
func (*ListFollowingRequest) IsSetPageNum ¶
func (p *ListFollowingRequest) IsSetPageNum() bool
func (*ListFollowingRequest) IsSetPageSize ¶
func (p *ListFollowingRequest) IsSetPageSize() bool
func (*ListFollowingRequest) Read ¶
func (p *ListFollowingRequest) Read(iprot thrift.TProtocol) (err error)
func (*ListFollowingRequest) ReadField1 ¶
func (p *ListFollowingRequest) ReadField1(iprot thrift.TProtocol) error
func (*ListFollowingRequest) ReadField2 ¶
func (p *ListFollowingRequest) ReadField2(iprot thrift.TProtocol) error
func (*ListFollowingRequest) ReadField3 ¶
func (p *ListFollowingRequest) ReadField3(iprot thrift.TProtocol) error
func (*ListFollowingRequest) String ¶
func (p *ListFollowingRequest) String() string
type ListFriendsRequest ¶
type ListFriendsRequest struct {
PageNum *int64 `thrift:"page_num,1,optional" json:"page_num,omitempty" query:"page_num" vd:"(len($) == 0) || ($>=0)"`
PageSize *int64 `thrift:"page_size,2,optional" json:"page_size,omitempty" query:"page_size" vd:"(len($) == 0) || ($>=0)"`
}
好友列表
var SocialServiceListFriendsArgs_Req_DEFAULT *ListFriendsRequest
func NewListFriendsRequest ¶
func NewListFriendsRequest() *ListFriendsRequest
func (*ListFriendsRequest) GetPageNum ¶
func (p *ListFriendsRequest) GetPageNum() (v int64)
func (*ListFriendsRequest) GetPageSize ¶
func (p *ListFriendsRequest) GetPageSize() (v int64)
func (*ListFriendsRequest) InitDefault ¶
func (p *ListFriendsRequest) InitDefault()
func (*ListFriendsRequest) IsSetPageNum ¶
func (p *ListFriendsRequest) IsSetPageNum() bool
func (*ListFriendsRequest) IsSetPageSize ¶
func (p *ListFriendsRequest) IsSetPageSize() bool
func (*ListFriendsRequest) Read ¶
func (p *ListFriendsRequest) Read(iprot thrift.TProtocol) (err error)
func (*ListFriendsRequest) ReadField1 ¶
func (p *ListFriendsRequest) ReadField1(iprot thrift.TProtocol) error
func (*ListFriendsRequest) ReadField2 ¶
func (p *ListFriendsRequest) ReadField2(iprot thrift.TProtocol) error
func (*ListFriendsRequest) String ¶
func (p *ListFriendsRequest) String() string
type SocialResponse ¶
type SocialResponse struct {
Base *common.BaseResponse `thrift:"base,1" form:"base" json:"base" query:"base"`
Data *common.SocialDataForListResponse `thrift:"data,2" form:"data" json:"data" query:"data"`
}
var SocialServiceListFollowerResult_Success_DEFAULT *SocialResponse
var SocialServiceListFollowingResult_Success_DEFAULT *SocialResponse
var SocialServiceListFriendsResult_Success_DEFAULT *SocialResponse
func NewSocialResponse ¶
func NewSocialResponse() *SocialResponse
func (*SocialResponse) GetBase ¶
func (p *SocialResponse) GetBase() (v *common.BaseResponse)
func (*SocialResponse) GetData ¶
func (p *SocialResponse) GetData() (v *common.SocialDataForListResponse)
func (*SocialResponse) InitDefault ¶
func (p *SocialResponse) InitDefault()
func (*SocialResponse) IsSetBase ¶
func (p *SocialResponse) IsSetBase() bool
func (*SocialResponse) IsSetData ¶
func (p *SocialResponse) IsSetData() bool
func (*SocialResponse) ReadField1 ¶
func (p *SocialResponse) ReadField1(iprot thrift.TProtocol) error
func (*SocialResponse) ReadField2 ¶
func (p *SocialResponse) ReadField2(iprot thrift.TProtocol) error
func (*SocialResponse) String ¶
func (p *SocialResponse) String() string
type SocialService ¶
type SocialService interface {
ActionRelation(ctx context.Context, req *ActionRelationRequest) (r *ActionRelationResponse, err error)
ListFollowing(ctx context.Context, req *ListFollowingRequest) (r *SocialResponse, err error)
ListFollower(ctx context.Context, req *ListFollowerRequest) (r *SocialResponse, err error)
ListFriends(ctx context.Context, req *ListFriendsRequest) (r *SocialResponse, err error)
}
type SocialServiceActionRelationArgs ¶
type SocialServiceActionRelationArgs struct {
Req *ActionRelationRequest `thrift:"req,1"`
}
func NewSocialServiceActionRelationArgs ¶
func NewSocialServiceActionRelationArgs() *SocialServiceActionRelationArgs
func (*SocialServiceActionRelationArgs) GetReq ¶
func (p *SocialServiceActionRelationArgs) GetReq() (v *ActionRelationRequest)
func (*SocialServiceActionRelationArgs) InitDefault ¶
func (p *SocialServiceActionRelationArgs) InitDefault()
func (*SocialServiceActionRelationArgs) IsSetReq ¶
func (p *SocialServiceActionRelationArgs) IsSetReq() bool
func (*SocialServiceActionRelationArgs) Read ¶
func (p *SocialServiceActionRelationArgs) Read(iprot thrift.TProtocol) (err error)
func (*SocialServiceActionRelationArgs) ReadField1 ¶
func (p *SocialServiceActionRelationArgs) ReadField1(iprot thrift.TProtocol) error
func (*SocialServiceActionRelationArgs) String ¶
func (p *SocialServiceActionRelationArgs) String() string
type SocialServiceActionRelationResult ¶
type SocialServiceActionRelationResult struct {
Success *ActionRelationResponse `thrift:"success,0,optional"`
}
func NewSocialServiceActionRelationResult ¶
func NewSocialServiceActionRelationResult() *SocialServiceActionRelationResult
func (*SocialServiceActionRelationResult) GetSuccess ¶
func (p *SocialServiceActionRelationResult) GetSuccess() (v *ActionRelationResponse)
func (*SocialServiceActionRelationResult) InitDefault ¶
func (p *SocialServiceActionRelationResult) InitDefault()
func (*SocialServiceActionRelationResult) IsSetSuccess ¶
func (p *SocialServiceActionRelationResult) IsSetSuccess() bool
func (*SocialServiceActionRelationResult) Read ¶
func (p *SocialServiceActionRelationResult) Read(iprot thrift.TProtocol) (err error)
func (*SocialServiceActionRelationResult) ReadField0 ¶
func (p *SocialServiceActionRelationResult) ReadField0(iprot thrift.TProtocol) error
func (*SocialServiceActionRelationResult) String ¶
func (p *SocialServiceActionRelationResult) String() string
type SocialServiceClient ¶
type SocialServiceClient struct {
// contains filtered or unexported fields
}
func NewSocialServiceClient ¶
func NewSocialServiceClient(c thrift.TClient) *SocialServiceClient
func NewSocialServiceClientFactory ¶
func NewSocialServiceClientFactory(t thrift.TTransport, f thrift.TProtocolFactory) *SocialServiceClient
func NewSocialServiceClientProtocol ¶
func NewSocialServiceClientProtocol(t thrift.TTransport, iprot thrift.TProtocol, oprot thrift.TProtocol) *SocialServiceClient
func (*SocialServiceClient) ActionRelation ¶
func (p *SocialServiceClient) ActionRelation(ctx context.Context, req *ActionRelationRequest) (r *ActionRelationResponse, err error)
func (*SocialServiceClient) Client_ ¶
func (p *SocialServiceClient) Client_() thrift.TClient
func (*SocialServiceClient) ListFollower ¶
func (p *SocialServiceClient) ListFollower(ctx context.Context, req *ListFollowerRequest) (r *SocialResponse, err error)
func (*SocialServiceClient) ListFollowing ¶
func (p *SocialServiceClient) ListFollowing(ctx context.Context, req *ListFollowingRequest) (r *SocialResponse, err error)
func (*SocialServiceClient) ListFriends ¶
func (p *SocialServiceClient) ListFriends(ctx context.Context, req *ListFriendsRequest) (r *SocialResponse, err error)
type SocialServiceListFollowerArgs ¶
type SocialServiceListFollowerArgs struct {
Req *ListFollowerRequest `thrift:"req,1"`
}
func NewSocialServiceListFollowerArgs ¶
func NewSocialServiceListFollowerArgs() *SocialServiceListFollowerArgs
func (*SocialServiceListFollowerArgs) GetReq ¶
func (p *SocialServiceListFollowerArgs) GetReq() (v *ListFollowerRequest)
func (*SocialServiceListFollowerArgs) InitDefault ¶
func (p *SocialServiceListFollowerArgs) InitDefault()
func (*SocialServiceListFollowerArgs) IsSetReq ¶
func (p *SocialServiceListFollowerArgs) IsSetReq() bool
func (*SocialServiceListFollowerArgs) Read ¶
func (p *SocialServiceListFollowerArgs) Read(iprot thrift.TProtocol) (err error)
func (*SocialServiceListFollowerArgs) ReadField1 ¶
func (p *SocialServiceListFollowerArgs) ReadField1(iprot thrift.TProtocol) error
func (*SocialServiceListFollowerArgs) String ¶
func (p *SocialServiceListFollowerArgs) String() string
type SocialServiceListFollowerResult ¶
type SocialServiceListFollowerResult struct {
Success *SocialResponse `thrift:"success,0,optional"`
}
func NewSocialServiceListFollowerResult ¶
func NewSocialServiceListFollowerResult() *SocialServiceListFollowerResult
func (*SocialServiceListFollowerResult) GetSuccess ¶
func (p *SocialServiceListFollowerResult) GetSuccess() (v *SocialResponse)
func (*SocialServiceListFollowerResult) InitDefault ¶
func (p *SocialServiceListFollowerResult) InitDefault()
func (*SocialServiceListFollowerResult) IsSetSuccess ¶
func (p *SocialServiceListFollowerResult) IsSetSuccess() bool
func (*SocialServiceListFollowerResult) Read ¶
func (p *SocialServiceListFollowerResult) Read(iprot thrift.TProtocol) (err error)
func (*SocialServiceListFollowerResult) ReadField0 ¶
func (p *SocialServiceListFollowerResult) ReadField0(iprot thrift.TProtocol) error
func (*SocialServiceListFollowerResult) String ¶
func (p *SocialServiceListFollowerResult) String() string
type SocialServiceListFollowingArgs ¶
type SocialServiceListFollowingArgs struct {
Req *ListFollowingRequest `thrift:"req,1"`
}
func NewSocialServiceListFollowingArgs ¶
func NewSocialServiceListFollowingArgs() *SocialServiceListFollowingArgs
func (*SocialServiceListFollowingArgs) GetReq ¶
func (p *SocialServiceListFollowingArgs) GetReq() (v *ListFollowingRequest)
func (*SocialServiceListFollowingArgs) InitDefault ¶
func (p *SocialServiceListFollowingArgs) InitDefault()
func (*SocialServiceListFollowingArgs) IsSetReq ¶
func (p *SocialServiceListFollowingArgs) IsSetReq() bool
func (*SocialServiceListFollowingArgs) Read ¶
func (p *SocialServiceListFollowingArgs) Read(iprot thrift.TProtocol) (err error)
func (*SocialServiceListFollowingArgs) ReadField1 ¶
func (p *SocialServiceListFollowingArgs) ReadField1(iprot thrift.TProtocol) error
func (*SocialServiceListFollowingArgs) String ¶
func (p *SocialServiceListFollowingArgs) String() string
type SocialServiceListFollowingResult ¶
type SocialServiceListFollowingResult struct {
Success *SocialResponse `thrift:"success,0,optional"`
}
func NewSocialServiceListFollowingResult ¶
func NewSocialServiceListFollowingResult() *SocialServiceListFollowingResult
func (*SocialServiceListFollowingResult) GetSuccess ¶
func (p *SocialServiceListFollowingResult) GetSuccess() (v *SocialResponse)
func (*SocialServiceListFollowingResult) InitDefault ¶
func (p *SocialServiceListFollowingResult) InitDefault()
func (*SocialServiceListFollowingResult) IsSetSuccess ¶
func (p *SocialServiceListFollowingResult) IsSetSuccess() bool
func (*SocialServiceListFollowingResult) Read ¶
func (p *SocialServiceListFollowingResult) Read(iprot thrift.TProtocol) (err error)
func (*SocialServiceListFollowingResult) ReadField0 ¶
func (p *SocialServiceListFollowingResult) ReadField0(iprot thrift.TProtocol) error
func (*SocialServiceListFollowingResult) String ¶
func (p *SocialServiceListFollowingResult) String() string
type SocialServiceListFriendsArgs ¶
type SocialServiceListFriendsArgs struct {
Req *ListFriendsRequest `thrift:"req,1"`
}
func NewSocialServiceListFriendsArgs ¶
func NewSocialServiceListFriendsArgs() *SocialServiceListFriendsArgs
func (*SocialServiceListFriendsArgs) GetReq ¶
func (p *SocialServiceListFriendsArgs) GetReq() (v *ListFriendsRequest)
func (*SocialServiceListFriendsArgs) InitDefault ¶
func (p *SocialServiceListFriendsArgs) InitDefault()
func (*SocialServiceListFriendsArgs) IsSetReq ¶
func (p *SocialServiceListFriendsArgs) IsSetReq() bool
func (*SocialServiceListFriendsArgs) Read ¶
func (p *SocialServiceListFriendsArgs) Read(iprot thrift.TProtocol) (err error)
func (*SocialServiceListFriendsArgs) ReadField1 ¶
func (p *SocialServiceListFriendsArgs) ReadField1(iprot thrift.TProtocol) error
func (*SocialServiceListFriendsArgs) String ¶
func (p *SocialServiceListFriendsArgs) String() string
type SocialServiceListFriendsResult ¶
type SocialServiceListFriendsResult struct {
Success *SocialResponse `thrift:"success,0,optional"`
}
func NewSocialServiceListFriendsResult ¶
func NewSocialServiceListFriendsResult() *SocialServiceListFriendsResult
func (*SocialServiceListFriendsResult) GetSuccess ¶
func (p *SocialServiceListFriendsResult) GetSuccess() (v *SocialResponse)
func (*SocialServiceListFriendsResult) InitDefault ¶
func (p *SocialServiceListFriendsResult) InitDefault()
func (*SocialServiceListFriendsResult) IsSetSuccess ¶
func (p *SocialServiceListFriendsResult) IsSetSuccess() bool
func (*SocialServiceListFriendsResult) Read ¶
func (p *SocialServiceListFriendsResult) Read(iprot thrift.TProtocol) (err error)
func (*SocialServiceListFriendsResult) ReadField0 ¶
func (p *SocialServiceListFriendsResult) ReadField0(iprot thrift.TProtocol) error
func (*SocialServiceListFriendsResult) String ¶
func (p *SocialServiceListFriendsResult) String() string
type SocialServiceProcessor ¶
type SocialServiceProcessor struct {
// contains filtered or unexported fields
}
func NewSocialServiceProcessor ¶
func NewSocialServiceProcessor(handler SocialService) *SocialServiceProcessor
func (*SocialServiceProcessor) AddToProcessorMap ¶
func (p *SocialServiceProcessor) AddToProcessorMap(key string, processor thrift.TProcessorFunction)
func (*SocialServiceProcessor) GetProcessorFunction ¶
func (p *SocialServiceProcessor) GetProcessorFunction(key string) (processor thrift.TProcessorFunction, ok bool)
func (*SocialServiceProcessor) Process ¶
func (p *SocialServiceProcessor) Process(ctx context.Context, iprot, oprot thrift.TProtocol) (success bool, err thrift.TException)
func (*SocialServiceProcessor) ProcessorMap ¶
func (p *SocialServiceProcessor) ProcessorMap() map[string]thrift.TProcessorFunction
Click to show internal directories.
Click to hide internal directories.