Documentation ¶
Index ¶
- Variables
- type Blog
- func (p *Blog) GetBid() int32
- func (p *Blog) GetCcnt() int32
- func (p *Blog) GetCdate() string
- func (p *Blog) GetContent() string
- func (p *Blog) GetIscopy() bool
- func (p *Blog) GetReadcnt() int32
- func (p *Blog) GetTitle() string
- func (p *Blog) GetTname() string
- func (p *Blog) GetUname() string
- func (p *Blog) Read(iprot thrift.TProtocol) error
- func (p *Blog) ReadField1(iprot thrift.TProtocol) error
- func (p *Blog) ReadField10(iprot thrift.TProtocol) error
- func (p *Blog) ReadField11(iprot thrift.TProtocol) error
- func (p *Blog) ReadField12(iprot thrift.TProtocol) error
- func (p *Blog) ReadField13(iprot thrift.TProtocol) error
- func (p *Blog) ReadField14(iprot thrift.TProtocol) error
- func (p *Blog) ReadField2(iprot thrift.TProtocol) error
- func (p *Blog) ReadField3(iprot thrift.TProtocol) error
- func (p *Blog) ReadField4(iprot thrift.TProtocol) error
- func (p *Blog) String() string
- func (p *Blog) Write(oprot thrift.TProtocol) error
- type BlogService
- type BlogServiceClient
- func (p *BlogServiceClient) Client_() thrift.TClient
- func (p *BlogServiceClient) GetBlogById(ctx context.Context, i *Intreq) (r *Blog, err error)
- func (p *BlogServiceClient) GetBlogsByTIDAndUID(ctx context.Context, i *Int2req) (r []*Blog, err error)
- func (p *BlogServiceClient) GetBlogsByUid(ctx context.Context, i *Intreq) (r []*Blog, err error)
- type BlogServiceGetBlogByIdArgs
- func (p *BlogServiceGetBlogByIdArgs) GetI() *Intreq
- func (p *BlogServiceGetBlogByIdArgs) IsSetI() bool
- func (p *BlogServiceGetBlogByIdArgs) Read(iprot thrift.TProtocol) error
- func (p *BlogServiceGetBlogByIdArgs) ReadField1(iprot thrift.TProtocol) error
- func (p *BlogServiceGetBlogByIdArgs) String() string
- func (p *BlogServiceGetBlogByIdArgs) Write(oprot thrift.TProtocol) error
- type BlogServiceGetBlogByIdResult
- func (p *BlogServiceGetBlogByIdResult) GetSuccess() *Blog
- func (p *BlogServiceGetBlogByIdResult) IsSetSuccess() bool
- func (p *BlogServiceGetBlogByIdResult) Read(iprot thrift.TProtocol) error
- func (p *BlogServiceGetBlogByIdResult) ReadField0(iprot thrift.TProtocol) error
- func (p *BlogServiceGetBlogByIdResult) String() string
- func (p *BlogServiceGetBlogByIdResult) Write(oprot thrift.TProtocol) error
- type BlogServiceGetBlogsByTIDAndUIDArgs
- func (p *BlogServiceGetBlogsByTIDAndUIDArgs) GetI() *Int2req
- func (p *BlogServiceGetBlogsByTIDAndUIDArgs) IsSetI() bool
- func (p *BlogServiceGetBlogsByTIDAndUIDArgs) Read(iprot thrift.TProtocol) error
- func (p *BlogServiceGetBlogsByTIDAndUIDArgs) ReadField1(iprot thrift.TProtocol) error
- func (p *BlogServiceGetBlogsByTIDAndUIDArgs) String() string
- func (p *BlogServiceGetBlogsByTIDAndUIDArgs) Write(oprot thrift.TProtocol) error
- type BlogServiceGetBlogsByTIDAndUIDResult
- func (p *BlogServiceGetBlogsByTIDAndUIDResult) GetSuccess() []*Blog
- func (p *BlogServiceGetBlogsByTIDAndUIDResult) IsSetSuccess() bool
- func (p *BlogServiceGetBlogsByTIDAndUIDResult) Read(iprot thrift.TProtocol) error
- func (p *BlogServiceGetBlogsByTIDAndUIDResult) ReadField0(iprot thrift.TProtocol) error
- func (p *BlogServiceGetBlogsByTIDAndUIDResult) String() string
- func (p *BlogServiceGetBlogsByTIDAndUIDResult) Write(oprot thrift.TProtocol) error
- type BlogServiceGetBlogsByUidArgs
- func (p *BlogServiceGetBlogsByUidArgs) GetI() *Intreq
- func (p *BlogServiceGetBlogsByUidArgs) IsSetI() bool
- func (p *BlogServiceGetBlogsByUidArgs) Read(iprot thrift.TProtocol) error
- func (p *BlogServiceGetBlogsByUidArgs) ReadField1(iprot thrift.TProtocol) error
- func (p *BlogServiceGetBlogsByUidArgs) String() string
- func (p *BlogServiceGetBlogsByUidArgs) Write(oprot thrift.TProtocol) error
- type BlogServiceGetBlogsByUidResult
- func (p *BlogServiceGetBlogsByUidResult) GetSuccess() []*Blog
- func (p *BlogServiceGetBlogsByUidResult) IsSetSuccess() bool
- func (p *BlogServiceGetBlogsByUidResult) Read(iprot thrift.TProtocol) error
- func (p *BlogServiceGetBlogsByUidResult) ReadField0(iprot thrift.TProtocol) error
- func (p *BlogServiceGetBlogsByUidResult) String() string
- func (p *BlogServiceGetBlogsByUidResult) Write(oprot thrift.TProtocol) error
- type BlogServiceProcessor
- func (p *BlogServiceProcessor) AddToProcessorMap(key string, processor thrift.TProcessorFunction)
- func (p *BlogServiceProcessor) GetProcessorFunction(key string) (processor thrift.TProcessorFunction, ok bool)
- func (p *BlogServiceProcessor) Process(ctx context.Context, iprot, oprot thrift.TProtocol) (success bool, err thrift.TException)
- func (p *BlogServiceProcessor) ProcessorMap() map[string]thrift.TProcessorFunction
- type Comment
- func (p *Comment) GetBid() int32
- func (p *Comment) GetContent() string
- func (p *Comment) GetDate() string
- func (p *Comment) GetUname() string
- func (p *Comment) GetZancnt() int32
- func (p *Comment) Read(iprot thrift.TProtocol) error
- func (p *Comment) ReadField1(iprot thrift.TProtocol) error
- func (p *Comment) ReadField10(iprot thrift.TProtocol) error
- func (p *Comment) ReadField12(iprot thrift.TProtocol) error
- func (p *Comment) ReadField2(iprot thrift.TProtocol) error
- func (p *Comment) ReadField3(iprot thrift.TProtocol) error
- func (p *Comment) String() string
- func (p *Comment) Write(oprot thrift.TProtocol) error
- type CommentService
- type CommentServiceClient
- func NewCommentServiceClient(c thrift.TClient) *CommentServiceClient
- func NewCommentServiceClientFactory(t thrift.TTransport, f thrift.TProtocolFactory) *CommentServiceClient
- func NewCommentServiceClientProtocol(t thrift.TTransport, iprot thrift.TProtocol, oprot thrift.TProtocol) *CommentServiceClient
- type CommentServiceGetCommentListByBIDArgs
- func (p *CommentServiceGetCommentListByBIDArgs) GetI() *Intreq
- func (p *CommentServiceGetCommentListByBIDArgs) IsSetI() bool
- func (p *CommentServiceGetCommentListByBIDArgs) Read(iprot thrift.TProtocol) error
- func (p *CommentServiceGetCommentListByBIDArgs) ReadField1(iprot thrift.TProtocol) error
- func (p *CommentServiceGetCommentListByBIDArgs) String() string
- func (p *CommentServiceGetCommentListByBIDArgs) Write(oprot thrift.TProtocol) error
- type CommentServiceGetCommentListByBIDResult
- func (p *CommentServiceGetCommentListByBIDResult) GetSuccess() []*Comment
- func (p *CommentServiceGetCommentListByBIDResult) IsSetSuccess() bool
- func (p *CommentServiceGetCommentListByBIDResult) Read(iprot thrift.TProtocol) error
- func (p *CommentServiceGetCommentListByBIDResult) ReadField0(iprot thrift.TProtocol) error
- func (p *CommentServiceGetCommentListByBIDResult) String() string
- func (p *CommentServiceGetCommentListByBIDResult) Write(oprot thrift.TProtocol) error
- type CommentServiceProcessor
- func (p *CommentServiceProcessor) AddToProcessorMap(key string, processor thrift.TProcessorFunction)
- func (p *CommentServiceProcessor) GetProcessorFunction(key string) (processor thrift.TProcessorFunction, ok bool)
- func (p *CommentServiceProcessor) Process(ctx context.Context, iprot, oprot thrift.TProtocol) (success bool, err thrift.TException)
- func (p *CommentServiceProcessor) ProcessorMap() map[string]thrift.TProcessorFunction
- type Int2req
- func (p *Int2req) GetI1() int32
- func (p *Int2req) GetI2() int32
- func (p *Int2req) Read(iprot thrift.TProtocol) error
- func (p *Int2req) ReadField1(iprot thrift.TProtocol) error
- func (p *Int2req) ReadField2(iprot thrift.TProtocol) error
- func (p *Int2req) String() string
- func (p *Int2req) Write(oprot thrift.TProtocol) error
- type Intreq
- type Stringreq
- type Tag
- func (p *Tag) GetTid() int32
- func (p *Tag) GetTname() string
- func (p *Tag) GetUID() int32
- func (p *Tag) Read(iprot thrift.TProtocol) error
- func (p *Tag) ReadField1(iprot thrift.TProtocol) error
- func (p *Tag) ReadField10(iprot thrift.TProtocol) error
- func (p *Tag) ReadField2(iprot thrift.TProtocol) error
- func (p *Tag) String() string
- func (p *Tag) Write(oprot thrift.TProtocol) error
- type TagService
- type TagServiceClient
- type TagServiceGetTagsByUIDArgs
- func (p *TagServiceGetTagsByUIDArgs) GetI() *Intreq
- func (p *TagServiceGetTagsByUIDArgs) IsSetI() bool
- func (p *TagServiceGetTagsByUIDArgs) Read(iprot thrift.TProtocol) error
- func (p *TagServiceGetTagsByUIDArgs) ReadField1(iprot thrift.TProtocol) error
- func (p *TagServiceGetTagsByUIDArgs) String() string
- func (p *TagServiceGetTagsByUIDArgs) Write(oprot thrift.TProtocol) error
- type TagServiceGetTagsByUIDResult
- func (p *TagServiceGetTagsByUIDResult) GetSuccess() []*Tag
- func (p *TagServiceGetTagsByUIDResult) IsSetSuccess() bool
- func (p *TagServiceGetTagsByUIDResult) Read(iprot thrift.TProtocol) error
- func (p *TagServiceGetTagsByUIDResult) ReadField0(iprot thrift.TProtocol) error
- func (p *TagServiceGetTagsByUIDResult) String() string
- func (p *TagServiceGetTagsByUIDResult) Write(oprot thrift.TProtocol) error
- type TagServiceProcessor
- func (p *TagServiceProcessor) AddToProcessorMap(key string, processor thrift.TProcessorFunction)
- func (p *TagServiceProcessor) GetProcessorFunction(key string) (processor thrift.TProcessorFunction, ok bool)
- func (p *TagServiceProcessor) Process(ctx context.Context, iprot, oprot thrift.TProtocol) (success bool, err thrift.TException)
- func (p *TagServiceProcessor) ProcessorMap() map[string]thrift.TProcessorFunction
- type User
- func (p *User) GetCommentcnt() int32
- func (p *User) GetCreacnt() int32
- func (p *User) GetFancnt() int32
- func (p *User) GetID() int32
- func (p *User) GetName() string
- func (p *User) GetVisitcnt() int32
- func (p *User) GetZancnt() int32
- func (p *User) Read(iprot thrift.TProtocol) error
- func (p *User) ReadField1(iprot thrift.TProtocol) error
- func (p *User) ReadField10(iprot thrift.TProtocol) error
- func (p *User) ReadField11(iprot thrift.TProtocol) error
- func (p *User) ReadField12(iprot thrift.TProtocol) error
- func (p *User) ReadField13(iprot thrift.TProtocol) error
- func (p *User) ReadField14(iprot thrift.TProtocol) error
- func (p *User) ReadField2(iprot thrift.TProtocol) error
- func (p *User) String() string
- func (p *User) Write(oprot thrift.TProtocol) error
- type UserService
- type UserServiceClient
- type UserServiceGetUserInfoArgs
- func (p *UserServiceGetUserInfoArgs) GetS() *Stringreq
- func (p *UserServiceGetUserInfoArgs) IsSetS() bool
- func (p *UserServiceGetUserInfoArgs) Read(iprot thrift.TProtocol) error
- func (p *UserServiceGetUserInfoArgs) ReadField1(iprot thrift.TProtocol) error
- func (p *UserServiceGetUserInfoArgs) String() string
- func (p *UserServiceGetUserInfoArgs) Write(oprot thrift.TProtocol) error
- type UserServiceGetUserInfoResult
- func (p *UserServiceGetUserInfoResult) GetSuccess() *User
- func (p *UserServiceGetUserInfoResult) IsSetSuccess() bool
- func (p *UserServiceGetUserInfoResult) Read(iprot thrift.TProtocol) error
- func (p *UserServiceGetUserInfoResult) ReadField0(iprot thrift.TProtocol) error
- func (p *UserServiceGetUserInfoResult) String() string
- func (p *UserServiceGetUserInfoResult) Write(oprot thrift.TProtocol) error
- type UserServiceProcessor
- func (p *UserServiceProcessor) AddToProcessorMap(key string, processor thrift.TProcessorFunction)
- func (p *UserServiceProcessor) GetProcessorFunction(key string) (processor thrift.TProcessorFunction, ok bool)
- func (p *UserServiceProcessor) Process(ctx context.Context, iprot, oprot thrift.TProtocol) (success bool, err thrift.TException)
- func (p *UserServiceProcessor) ProcessorMap() map[string]thrift.TProcessorFunction
Constants ¶
This section is empty.
Variables ¶
View Source
var BlogServiceGetBlogsByTIDAndUIDResult_Success_DEFAULT []*Blog
View Source
var BlogServiceGetBlogsByUidResult_Success_DEFAULT []*Blog
View Source
var CommentServiceGetCommentListByBIDResult_Success_DEFAULT []*Comment
View Source
var GoUnusedProtection__ int
View Source
var TagServiceGetTagsByUIDResult_Success_DEFAULT []*Tag
Functions ¶
This section is empty.
Types ¶
type Blog ¶
type Blog struct { Bid int32 `thrift:"bid,1,required" db:"bid" json:"bid"` Uname string `thrift:"uname,2,required" db:"uname" json:"uname"` Iscopy bool `thrift:"iscopy,3,required" db:"iscopy" json:"iscopy"` Tname string `thrift:"tname,4,required" db:"tname" json:"tname"` // unused fields # 5 to 9 Title string `thrift:"title,10,required" db:"title" json:"title"` Content string `thrift:"content,11,required" db:"content" json:"content"` Readcnt int32 `thrift:"readcnt,12,required" db:"readcnt" json:"readcnt"` Cdate string `thrift:"cdate,13,required" db:"cdate" json:"cdate"` Ccnt int32 `thrift:"ccnt,14,required" db:"ccnt" json:"ccnt"` }
Attributes:
- Bid
- Uname
- Iscopy
- Tname
- Title
- Content
- Readcnt
- Cdate
- Ccnt
var BlogServiceGetBlogByIdResult_Success_DEFAULT *Blog
func (*Blog) GetContent ¶
func (*Blog) GetReadcnt ¶
type BlogService ¶
type BlogService interface { // Parameters: // - I GetBlogsByTIDAndUID(ctx context.Context, i *Int2req) (r []*Blog, err error) // Parameters: // - I GetBlogsByUid(ctx context.Context, i *Intreq) (r []*Blog, err error) // Parameters: // - I GetBlogById(ctx context.Context, i *Intreq) (r *Blog, err error) }
type BlogServiceClient ¶
type BlogServiceClient struct {
// contains filtered or unexported fields
}
func NewBlogServiceClient ¶
func NewBlogServiceClient(c thrift.TClient) *BlogServiceClient
func NewBlogServiceClientFactory ¶
func NewBlogServiceClientFactory(t thrift.TTransport, f thrift.TProtocolFactory) *BlogServiceClient
func NewBlogServiceClientProtocol ¶
func NewBlogServiceClientProtocol(t thrift.TTransport, iprot thrift.TProtocol, oprot thrift.TProtocol) *BlogServiceClient
func (*BlogServiceClient) Client_ ¶
func (p *BlogServiceClient) Client_() thrift.TClient
func (*BlogServiceClient) GetBlogsByTIDAndUID ¶
func (p *BlogServiceClient) GetBlogsByTIDAndUID(ctx context.Context, i *Int2req) (r []*Blog, err error)
Parameters:
- I
type BlogServiceGetBlogByIdArgs ¶
type BlogServiceGetBlogByIdArgs struct {
I *Intreq `thrift:"i,1" db:"i" json:"i"`
}
Attributes:
- I
func NewBlogServiceGetBlogByIdArgs ¶
func NewBlogServiceGetBlogByIdArgs() *BlogServiceGetBlogByIdArgs
func (*BlogServiceGetBlogByIdArgs) GetI ¶
func (p *BlogServiceGetBlogByIdArgs) GetI() *Intreq
func (*BlogServiceGetBlogByIdArgs) IsSetI ¶
func (p *BlogServiceGetBlogByIdArgs) IsSetI() bool
func (*BlogServiceGetBlogByIdArgs) Read ¶
func (p *BlogServiceGetBlogByIdArgs) Read(iprot thrift.TProtocol) error
func (*BlogServiceGetBlogByIdArgs) ReadField1 ¶
func (p *BlogServiceGetBlogByIdArgs) ReadField1(iprot thrift.TProtocol) error
func (*BlogServiceGetBlogByIdArgs) String ¶
func (p *BlogServiceGetBlogByIdArgs) String() string
type BlogServiceGetBlogByIdResult ¶
type BlogServiceGetBlogByIdResult struct {
Success *Blog `thrift:"success,0" db:"success" json:"success,omitempty"`
}
Attributes:
- Success
func NewBlogServiceGetBlogByIdResult ¶
func NewBlogServiceGetBlogByIdResult() *BlogServiceGetBlogByIdResult
func (*BlogServiceGetBlogByIdResult) GetSuccess ¶
func (p *BlogServiceGetBlogByIdResult) GetSuccess() *Blog
func (*BlogServiceGetBlogByIdResult) IsSetSuccess ¶
func (p *BlogServiceGetBlogByIdResult) IsSetSuccess() bool
func (*BlogServiceGetBlogByIdResult) Read ¶
func (p *BlogServiceGetBlogByIdResult) Read(iprot thrift.TProtocol) error
func (*BlogServiceGetBlogByIdResult) ReadField0 ¶
func (p *BlogServiceGetBlogByIdResult) ReadField0(iprot thrift.TProtocol) error
func (*BlogServiceGetBlogByIdResult) String ¶
func (p *BlogServiceGetBlogByIdResult) String() string
type BlogServiceGetBlogsByTIDAndUIDArgs ¶
type BlogServiceGetBlogsByTIDAndUIDArgs struct {
I *Int2req `thrift:"i,1" db:"i" json:"i"`
}
Attributes:
- I
func NewBlogServiceGetBlogsByTIDAndUIDArgs ¶
func NewBlogServiceGetBlogsByTIDAndUIDArgs() *BlogServiceGetBlogsByTIDAndUIDArgs
func (*BlogServiceGetBlogsByTIDAndUIDArgs) GetI ¶
func (p *BlogServiceGetBlogsByTIDAndUIDArgs) GetI() *Int2req
func (*BlogServiceGetBlogsByTIDAndUIDArgs) IsSetI ¶
func (p *BlogServiceGetBlogsByTIDAndUIDArgs) IsSetI() bool
func (*BlogServiceGetBlogsByTIDAndUIDArgs) Read ¶
func (p *BlogServiceGetBlogsByTIDAndUIDArgs) Read(iprot thrift.TProtocol) error
func (*BlogServiceGetBlogsByTIDAndUIDArgs) ReadField1 ¶
func (p *BlogServiceGetBlogsByTIDAndUIDArgs) ReadField1(iprot thrift.TProtocol) error
func (*BlogServiceGetBlogsByTIDAndUIDArgs) String ¶
func (p *BlogServiceGetBlogsByTIDAndUIDArgs) String() string
type BlogServiceGetBlogsByTIDAndUIDResult ¶
type BlogServiceGetBlogsByTIDAndUIDResult struct {
Success []*Blog `thrift:"success,0" db:"success" json:"success,omitempty"`
}
Attributes:
- Success
func NewBlogServiceGetBlogsByTIDAndUIDResult ¶
func NewBlogServiceGetBlogsByTIDAndUIDResult() *BlogServiceGetBlogsByTIDAndUIDResult
func (*BlogServiceGetBlogsByTIDAndUIDResult) GetSuccess ¶
func (p *BlogServiceGetBlogsByTIDAndUIDResult) GetSuccess() []*Blog
func (*BlogServiceGetBlogsByTIDAndUIDResult) IsSetSuccess ¶
func (p *BlogServiceGetBlogsByTIDAndUIDResult) IsSetSuccess() bool
func (*BlogServiceGetBlogsByTIDAndUIDResult) Read ¶
func (p *BlogServiceGetBlogsByTIDAndUIDResult) Read(iprot thrift.TProtocol) error
func (*BlogServiceGetBlogsByTIDAndUIDResult) ReadField0 ¶
func (p *BlogServiceGetBlogsByTIDAndUIDResult) ReadField0(iprot thrift.TProtocol) error
func (*BlogServiceGetBlogsByTIDAndUIDResult) String ¶
func (p *BlogServiceGetBlogsByTIDAndUIDResult) String() string
type BlogServiceGetBlogsByUidArgs ¶
type BlogServiceGetBlogsByUidArgs struct {
I *Intreq `thrift:"i,1" db:"i" json:"i"`
}
Attributes:
- I
func NewBlogServiceGetBlogsByUidArgs ¶
func NewBlogServiceGetBlogsByUidArgs() *BlogServiceGetBlogsByUidArgs
func (*BlogServiceGetBlogsByUidArgs) GetI ¶
func (p *BlogServiceGetBlogsByUidArgs) GetI() *Intreq
func (*BlogServiceGetBlogsByUidArgs) IsSetI ¶
func (p *BlogServiceGetBlogsByUidArgs) IsSetI() bool
func (*BlogServiceGetBlogsByUidArgs) Read ¶
func (p *BlogServiceGetBlogsByUidArgs) Read(iprot thrift.TProtocol) error
func (*BlogServiceGetBlogsByUidArgs) ReadField1 ¶
func (p *BlogServiceGetBlogsByUidArgs) ReadField1(iprot thrift.TProtocol) error
func (*BlogServiceGetBlogsByUidArgs) String ¶
func (p *BlogServiceGetBlogsByUidArgs) String() string
type BlogServiceGetBlogsByUidResult ¶
type BlogServiceGetBlogsByUidResult struct {
Success []*Blog `thrift:"success,0" db:"success" json:"success,omitempty"`
}
Attributes:
- Success
func NewBlogServiceGetBlogsByUidResult ¶
func NewBlogServiceGetBlogsByUidResult() *BlogServiceGetBlogsByUidResult
func (*BlogServiceGetBlogsByUidResult) GetSuccess ¶
func (p *BlogServiceGetBlogsByUidResult) GetSuccess() []*Blog
func (*BlogServiceGetBlogsByUidResult) IsSetSuccess ¶
func (p *BlogServiceGetBlogsByUidResult) IsSetSuccess() bool
func (*BlogServiceGetBlogsByUidResult) Read ¶
func (p *BlogServiceGetBlogsByUidResult) Read(iprot thrift.TProtocol) error
func (*BlogServiceGetBlogsByUidResult) ReadField0 ¶
func (p *BlogServiceGetBlogsByUidResult) ReadField0(iprot thrift.TProtocol) error
func (*BlogServiceGetBlogsByUidResult) String ¶
func (p *BlogServiceGetBlogsByUidResult) String() string
type BlogServiceProcessor ¶
type BlogServiceProcessor struct {
// contains filtered or unexported fields
}
func NewBlogServiceProcessor ¶
func NewBlogServiceProcessor(handler BlogService) *BlogServiceProcessor
func (*BlogServiceProcessor) AddToProcessorMap ¶
func (p *BlogServiceProcessor) AddToProcessorMap(key string, processor thrift.TProcessorFunction)
func (*BlogServiceProcessor) GetProcessorFunction ¶
func (p *BlogServiceProcessor) GetProcessorFunction(key string) (processor thrift.TProcessorFunction, ok bool)
func (*BlogServiceProcessor) Process ¶
func (p *BlogServiceProcessor) Process(ctx context.Context, iprot, oprot thrift.TProtocol) (success bool, err thrift.TException)
func (*BlogServiceProcessor) ProcessorMap ¶
func (p *BlogServiceProcessor) ProcessorMap() map[string]thrift.TProcessorFunction
type Comment ¶
type Comment struct { Bid int32 `thrift:"bid,1,required" db:"bid" json:"bid"` Uname string `thrift:"uname,2,required" db:"uname" json:"uname"` Content string `thrift:"content,3,required" db:"content" json:"content"` // unused fields # 4 to 9 Date string `thrift:"date,10,required" db:"date" json:"date"` // unused field # 11 Zancnt int32 `thrift:"zancnt,12,required" db:"zancnt" json:"zancnt"` }
Attributes:
- Bid
- Uname
- Content
- Date
- Zancnt
func NewComment ¶
func NewComment() *Comment
func (*Comment) GetContent ¶
type CommentService ¶
type CommentServiceClient ¶
type CommentServiceClient struct {
// contains filtered or unexported fields
}
func NewCommentServiceClient ¶
func NewCommentServiceClient(c thrift.TClient) *CommentServiceClient
func NewCommentServiceClientFactory ¶
func NewCommentServiceClientFactory(t thrift.TTransport, f thrift.TProtocolFactory) *CommentServiceClient
func NewCommentServiceClientProtocol ¶
func NewCommentServiceClientProtocol(t thrift.TTransport, iprot thrift.TProtocol, oprot thrift.TProtocol) *CommentServiceClient
func (*CommentServiceClient) Client_ ¶
func (p *CommentServiceClient) Client_() thrift.TClient
func (*CommentServiceClient) GetCommentListByBID ¶
func (p *CommentServiceClient) GetCommentListByBID(ctx context.Context, i *Intreq) (r []*Comment, err error)
Parameters:
- I
type CommentServiceGetCommentListByBIDArgs ¶
type CommentServiceGetCommentListByBIDArgs struct {
I *Intreq `thrift:"i,1" db:"i" json:"i"`
}
Attributes:
- I
func NewCommentServiceGetCommentListByBIDArgs ¶
func NewCommentServiceGetCommentListByBIDArgs() *CommentServiceGetCommentListByBIDArgs
func (*CommentServiceGetCommentListByBIDArgs) GetI ¶
func (p *CommentServiceGetCommentListByBIDArgs) GetI() *Intreq
func (*CommentServiceGetCommentListByBIDArgs) IsSetI ¶
func (p *CommentServiceGetCommentListByBIDArgs) IsSetI() bool
func (*CommentServiceGetCommentListByBIDArgs) Read ¶
func (p *CommentServiceGetCommentListByBIDArgs) Read(iprot thrift.TProtocol) error
func (*CommentServiceGetCommentListByBIDArgs) ReadField1 ¶
func (p *CommentServiceGetCommentListByBIDArgs) ReadField1(iprot thrift.TProtocol) error
func (*CommentServiceGetCommentListByBIDArgs) String ¶
func (p *CommentServiceGetCommentListByBIDArgs) String() string
type CommentServiceGetCommentListByBIDResult ¶
type CommentServiceGetCommentListByBIDResult struct {
Success []*Comment `thrift:"success,0" db:"success" json:"success,omitempty"`
}
Attributes:
- Success
func NewCommentServiceGetCommentListByBIDResult ¶
func NewCommentServiceGetCommentListByBIDResult() *CommentServiceGetCommentListByBIDResult
func (*CommentServiceGetCommentListByBIDResult) GetSuccess ¶
func (p *CommentServiceGetCommentListByBIDResult) GetSuccess() []*Comment
func (*CommentServiceGetCommentListByBIDResult) IsSetSuccess ¶
func (p *CommentServiceGetCommentListByBIDResult) IsSetSuccess() bool
func (*CommentServiceGetCommentListByBIDResult) Read ¶
func (p *CommentServiceGetCommentListByBIDResult) Read(iprot thrift.TProtocol) error
func (*CommentServiceGetCommentListByBIDResult) ReadField0 ¶
func (p *CommentServiceGetCommentListByBIDResult) ReadField0(iprot thrift.TProtocol) error
func (*CommentServiceGetCommentListByBIDResult) String ¶
func (p *CommentServiceGetCommentListByBIDResult) String() string
type CommentServiceProcessor ¶
type CommentServiceProcessor struct {
// contains filtered or unexported fields
}
func NewCommentServiceProcessor ¶
func NewCommentServiceProcessor(handler CommentService) *CommentServiceProcessor
func (*CommentServiceProcessor) AddToProcessorMap ¶
func (p *CommentServiceProcessor) AddToProcessorMap(key string, processor thrift.TProcessorFunction)
func (*CommentServiceProcessor) GetProcessorFunction ¶
func (p *CommentServiceProcessor) GetProcessorFunction(key string) (processor thrift.TProcessorFunction, ok bool)
func (*CommentServiceProcessor) Process ¶
func (p *CommentServiceProcessor) Process(ctx context.Context, iprot, oprot thrift.TProtocol) (success bool, err thrift.TException)
func (*CommentServiceProcessor) ProcessorMap ¶
func (p *CommentServiceProcessor) ProcessorMap() map[string]thrift.TProcessorFunction
type Int2req ¶
type Int2req struct { I1 int32 `thrift:"i1,1,required" db:"i1" json:"i1"` I2 int32 `thrift:"i2,2,required" db:"i2" json:"i2"` }
Attributes:
- I1
- I2
var BlogServiceGetBlogsByTIDAndUIDArgs_I_DEFAULT *Int2req
func NewInt2req ¶
func NewInt2req() *Int2req
type Intreq ¶
type Intreq struct {
I int32 `thrift:"i,1,required" db:"i" json:"i"`
}
Attributes:
- I
var BlogServiceGetBlogByIdArgs_I_DEFAULT *Intreq
var BlogServiceGetBlogsByUidArgs_I_DEFAULT *Intreq
var CommentServiceGetCommentListByBIDArgs_I_DEFAULT *Intreq
var TagServiceGetTagsByUIDArgs_I_DEFAULT *Intreq
type Stringreq ¶
type Stringreq struct {
S string `thrift:"s,1,required" db:"s" json:"s"`
}
Attributes:
- S
var UserServiceGetUserInfoArgs_S_DEFAULT *Stringreq
func NewStringreq ¶
func NewStringreq() *Stringreq
type Tag ¶
type Tag struct { UID int32 `thrift:"uid,1,required" db:"uid" json:"uid"` Tid int32 `thrift:"tid,2,required" db:"tid" json:"tid"` // unused fields # 3 to 9 Tname string `thrift:"tname,10,required" db:"tname" json:"tname"` }
Attributes:
- UID
- Tid
- Tname
type TagService ¶
type TagServiceClient ¶
type TagServiceClient struct {
// contains filtered or unexported fields
}
func NewTagServiceClient ¶
func NewTagServiceClient(c thrift.TClient) *TagServiceClient
func NewTagServiceClientFactory ¶
func NewTagServiceClientFactory(t thrift.TTransport, f thrift.TProtocolFactory) *TagServiceClient
func NewTagServiceClientProtocol ¶
func NewTagServiceClientProtocol(t thrift.TTransport, iprot thrift.TProtocol, oprot thrift.TProtocol) *TagServiceClient
func (*TagServiceClient) Client_ ¶
func (p *TagServiceClient) Client_() thrift.TClient
type TagServiceGetTagsByUIDArgs ¶
type TagServiceGetTagsByUIDArgs struct {
I *Intreq `thrift:"i,1" db:"i" json:"i"`
}
Attributes:
- I
func NewTagServiceGetTagsByUIDArgs ¶
func NewTagServiceGetTagsByUIDArgs() *TagServiceGetTagsByUIDArgs
func (*TagServiceGetTagsByUIDArgs) GetI ¶
func (p *TagServiceGetTagsByUIDArgs) GetI() *Intreq
func (*TagServiceGetTagsByUIDArgs) IsSetI ¶
func (p *TagServiceGetTagsByUIDArgs) IsSetI() bool
func (*TagServiceGetTagsByUIDArgs) Read ¶
func (p *TagServiceGetTagsByUIDArgs) Read(iprot thrift.TProtocol) error
func (*TagServiceGetTagsByUIDArgs) ReadField1 ¶
func (p *TagServiceGetTagsByUIDArgs) ReadField1(iprot thrift.TProtocol) error
func (*TagServiceGetTagsByUIDArgs) String ¶
func (p *TagServiceGetTagsByUIDArgs) String() string
type TagServiceGetTagsByUIDResult ¶
type TagServiceGetTagsByUIDResult struct {
Success []*Tag `thrift:"success,0" db:"success" json:"success,omitempty"`
}
Attributes:
- Success
func NewTagServiceGetTagsByUIDResult ¶
func NewTagServiceGetTagsByUIDResult() *TagServiceGetTagsByUIDResult
func (*TagServiceGetTagsByUIDResult) GetSuccess ¶
func (p *TagServiceGetTagsByUIDResult) GetSuccess() []*Tag
func (*TagServiceGetTagsByUIDResult) IsSetSuccess ¶
func (p *TagServiceGetTagsByUIDResult) IsSetSuccess() bool
func (*TagServiceGetTagsByUIDResult) Read ¶
func (p *TagServiceGetTagsByUIDResult) Read(iprot thrift.TProtocol) error
func (*TagServiceGetTagsByUIDResult) ReadField0 ¶
func (p *TagServiceGetTagsByUIDResult) ReadField0(iprot thrift.TProtocol) error
func (*TagServiceGetTagsByUIDResult) String ¶
func (p *TagServiceGetTagsByUIDResult) String() string
type TagServiceProcessor ¶
type TagServiceProcessor struct {
// contains filtered or unexported fields
}
func NewTagServiceProcessor ¶
func NewTagServiceProcessor(handler TagService) *TagServiceProcessor
func (*TagServiceProcessor) AddToProcessorMap ¶
func (p *TagServiceProcessor) AddToProcessorMap(key string, processor thrift.TProcessorFunction)
func (*TagServiceProcessor) GetProcessorFunction ¶
func (p *TagServiceProcessor) GetProcessorFunction(key string) (processor thrift.TProcessorFunction, ok bool)
func (*TagServiceProcessor) Process ¶
func (p *TagServiceProcessor) Process(ctx context.Context, iprot, oprot thrift.TProtocol) (success bool, err thrift.TException)
func (*TagServiceProcessor) ProcessorMap ¶
func (p *TagServiceProcessor) ProcessorMap() map[string]thrift.TProcessorFunction
type User ¶
type User struct { ID int32 `thrift:"id,1,required" db:"id" json:"id"` Name string `thrift:"name,2,required" db:"name" json:"name"` // unused fields # 3 to 9 Creacnt int32 `thrift:"creacnt,10,required" db:"creacnt" json:"creacnt"` Fancnt int32 `thrift:"fancnt,11,required" db:"fancnt" json:"fancnt"` Zancnt int32 `thrift:"zancnt,12,required" db:"zancnt" json:"zancnt"` Commentcnt int32 `thrift:"commentcnt,13,required" db:"commentcnt" json:"commentcnt"` Visitcnt int32 `thrift:"visitcnt,14,required" db:"visitcnt" json:"visitcnt"` }
Attributes:
- ID
- Name
- Creacnt
- Fancnt
- Zancnt
- Commentcnt
- Visitcnt
var UserServiceGetUserInfoResult_Success_DEFAULT *User
func (*User) GetCommentcnt ¶
func (*User) GetCreacnt ¶
func (*User) GetVisitcnt ¶
type UserService ¶
type UserServiceClient ¶
type UserServiceClient struct {
// contains filtered or unexported fields
}
func NewUserServiceClient ¶
func NewUserServiceClient(c thrift.TClient) *UserServiceClient
func NewUserServiceClientFactory ¶
func NewUserServiceClientFactory(t thrift.TTransport, f thrift.TProtocolFactory) *UserServiceClient
func NewUserServiceClientProtocol ¶
func NewUserServiceClientProtocol(t thrift.TTransport, iprot thrift.TProtocol, oprot thrift.TProtocol) *UserServiceClient
func (*UserServiceClient) Client_ ¶
func (p *UserServiceClient) Client_() thrift.TClient
type UserServiceGetUserInfoArgs ¶
type UserServiceGetUserInfoArgs struct {
S *Stringreq `thrift:"s,1" db:"s" json:"s"`
}
Attributes:
- S
func NewUserServiceGetUserInfoArgs ¶
func NewUserServiceGetUserInfoArgs() *UserServiceGetUserInfoArgs
func (*UserServiceGetUserInfoArgs) GetS ¶
func (p *UserServiceGetUserInfoArgs) GetS() *Stringreq
func (*UserServiceGetUserInfoArgs) IsSetS ¶
func (p *UserServiceGetUserInfoArgs) IsSetS() bool
func (*UserServiceGetUserInfoArgs) Read ¶
func (p *UserServiceGetUserInfoArgs) Read(iprot thrift.TProtocol) error
func (*UserServiceGetUserInfoArgs) ReadField1 ¶
func (p *UserServiceGetUserInfoArgs) ReadField1(iprot thrift.TProtocol) error
func (*UserServiceGetUserInfoArgs) String ¶
func (p *UserServiceGetUserInfoArgs) String() string
type UserServiceGetUserInfoResult ¶
type UserServiceGetUserInfoResult struct {
Success *User `thrift:"success,0" db:"success" json:"success,omitempty"`
}
Attributes:
- Success
func NewUserServiceGetUserInfoResult ¶
func NewUserServiceGetUserInfoResult() *UserServiceGetUserInfoResult
func (*UserServiceGetUserInfoResult) GetSuccess ¶
func (p *UserServiceGetUserInfoResult) GetSuccess() *User
func (*UserServiceGetUserInfoResult) IsSetSuccess ¶
func (p *UserServiceGetUserInfoResult) IsSetSuccess() bool
func (*UserServiceGetUserInfoResult) Read ¶
func (p *UserServiceGetUserInfoResult) Read(iprot thrift.TProtocol) error
func (*UserServiceGetUserInfoResult) ReadField0 ¶
func (p *UserServiceGetUserInfoResult) ReadField0(iprot thrift.TProtocol) error
func (*UserServiceGetUserInfoResult) String ¶
func (p *UserServiceGetUserInfoResult) String() string
type UserServiceProcessor ¶
type UserServiceProcessor struct {
// contains filtered or unexported fields
}
func NewUserServiceProcessor ¶
func NewUserServiceProcessor(handler UserService) *UserServiceProcessor
func (*UserServiceProcessor) AddToProcessorMap ¶
func (p *UserServiceProcessor) AddToProcessorMap(key string, processor thrift.TProcessorFunction)
func (*UserServiceProcessor) GetProcessorFunction ¶
func (p *UserServiceProcessor) GetProcessorFunction(key string) (processor thrift.TProcessorFunction, ok bool)
func (*UserServiceProcessor) Process ¶
func (p *UserServiceProcessor) Process(ctx context.Context, iprot, oprot thrift.TProtocol) (success bool, err thrift.TException)
func (*UserServiceProcessor) ProcessorMap ¶
func (p *UserServiceProcessor) ProcessorMap() map[string]thrift.TProcessorFunction
Click to show internal directories.
Click to hide internal directories.