rpc

package
v0.0.0-...-053e4fb Latest Latest
Warning

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

Go to latest
Published: Dec 31, 2019 License: MIT Imports: 5 Imported by: 0

Documentation

Index

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 NewBlog

func NewBlog() *Blog

func (*Blog) GetBid

func (p *Blog) GetBid() int32

func (*Blog) GetCcnt

func (p *Blog) GetCcnt() int32

func (*Blog) GetCdate

func (p *Blog) GetCdate() string

func (*Blog) GetContent

func (p *Blog) GetContent() string

func (*Blog) GetIscopy

func (p *Blog) GetIscopy() bool

func (*Blog) GetReadcnt

func (p *Blog) GetReadcnt() int32

func (*Blog) GetTitle

func (p *Blog) GetTitle() string

func (*Blog) GetTname

func (p *Blog) GetTname() string

func (*Blog) GetUname

func (p *Blog) GetUname() string

func (*Blog) Read

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

func (*Blog) ReadField1

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

func (*Blog) ReadField10

func (p *Blog) ReadField10(iprot thrift.TProtocol) error

func (*Blog) ReadField11

func (p *Blog) ReadField11(iprot thrift.TProtocol) error

func (*Blog) ReadField12

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

func (*Blog) ReadField13

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

func (*Blog) ReadField14

func (p *Blog) ReadField14(iprot thrift.TProtocol) error

func (*Blog) ReadField2

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

func (*Blog) ReadField3

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

func (*Blog) ReadField4

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

func (*Blog) String

func (p *Blog) String() string

func (*Blog) Write

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

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 NewBlogServiceClientProtocol

func NewBlogServiceClientProtocol(t thrift.TTransport, iprot thrift.TProtocol, oprot thrift.TProtocol) *BlogServiceClient

func (*BlogServiceClient) Client_

func (p *BlogServiceClient) Client_() thrift.TClient

func (*BlogServiceClient) GetBlogById

func (p *BlogServiceClient) GetBlogById(ctx context.Context, i *Intreq) (r *Blog, err error)

Parameters:

  • I

func (*BlogServiceClient) GetBlogsByTIDAndUID

func (p *BlogServiceClient) GetBlogsByTIDAndUID(ctx context.Context, i *Int2req) (r []*Blog, err error)

Parameters:

  • I

func (*BlogServiceClient) GetBlogsByUid

func (p *BlogServiceClient) GetBlogsByUid(ctx context.Context, i *Intreq) (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 (*BlogServiceGetBlogByIdArgs) IsSetI

func (p *BlogServiceGetBlogByIdArgs) IsSetI() bool

func (*BlogServiceGetBlogByIdArgs) Read

func (*BlogServiceGetBlogByIdArgs) ReadField1

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

func (*BlogServiceGetBlogByIdArgs) String

func (p *BlogServiceGetBlogByIdArgs) String() string

func (*BlogServiceGetBlogByIdArgs) Write

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

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

func (*BlogServiceGetBlogByIdResult) String

func (*BlogServiceGetBlogByIdResult) Write

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 (*BlogServiceGetBlogsByTIDAndUIDArgs) IsSetI

func (*BlogServiceGetBlogsByTIDAndUIDArgs) Read

func (*BlogServiceGetBlogsByTIDAndUIDArgs) ReadField1

func (*BlogServiceGetBlogsByTIDAndUIDArgs) String

func (*BlogServiceGetBlogsByTIDAndUIDArgs) Write

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

func (*BlogServiceGetBlogsByTIDAndUIDResult) String

func (*BlogServiceGetBlogsByTIDAndUIDResult) Write

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 (*BlogServiceGetBlogsByUidArgs) IsSetI

func (p *BlogServiceGetBlogsByUidArgs) IsSetI() bool

func (*BlogServiceGetBlogsByUidArgs) Read

func (*BlogServiceGetBlogsByUidArgs) ReadField1

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

func (*BlogServiceGetBlogsByUidArgs) String

func (*BlogServiceGetBlogsByUidArgs) Write

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

func (*BlogServiceGetBlogsByUidResult) String

func (*BlogServiceGetBlogsByUidResult) Write

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) GetBid

func (p *Comment) GetBid() int32

func (*Comment) GetContent

func (p *Comment) GetContent() string

func (*Comment) GetDate

func (p *Comment) GetDate() string

func (*Comment) GetUname

func (p *Comment) GetUname() string

func (*Comment) GetZancnt

func (p *Comment) GetZancnt() int32

func (*Comment) Read

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

func (*Comment) ReadField1

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

func (*Comment) ReadField10

func (p *Comment) ReadField10(iprot thrift.TProtocol) error

func (*Comment) ReadField12

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

func (*Comment) ReadField2

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

func (*Comment) ReadField3

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

func (*Comment) String

func (p *Comment) String() string

func (*Comment) Write

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

type CommentService

type CommentService interface {
	// Parameters:
	//  - I
	GetCommentListByBID(ctx context.Context, i *Intreq) (r []*Comment, err error)
}

type CommentServiceClient

type CommentServiceClient struct {
	// contains filtered or unexported fields
}

func NewCommentServiceClient

func NewCommentServiceClient(c thrift.TClient) *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 (*CommentServiceGetCommentListByBIDArgs) IsSetI

func (*CommentServiceGetCommentListByBIDArgs) Read

func (*CommentServiceGetCommentListByBIDArgs) ReadField1

func (*CommentServiceGetCommentListByBIDArgs) String

func (*CommentServiceGetCommentListByBIDArgs) Write

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 (*CommentServiceGetCommentListByBIDResult) IsSetSuccess

func (*CommentServiceGetCommentListByBIDResult) Read

func (*CommentServiceGetCommentListByBIDResult) ReadField0

func (*CommentServiceGetCommentListByBIDResult) String

func (*CommentServiceGetCommentListByBIDResult) Write

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

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

func (*Int2req) GetI1

func (p *Int2req) GetI1() int32

func (*Int2req) GetI2

func (p *Int2req) GetI2() int32

func (*Int2req) Read

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

func (*Int2req) ReadField1

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

func (*Int2req) ReadField2

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

func (*Int2req) String

func (p *Int2req) String() string

func (*Int2req) Write

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

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

func NewIntreq

func NewIntreq() *Intreq

func (*Intreq) GetI

func (p *Intreq) GetI() int32

func (*Intreq) Read

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

func (*Intreq) ReadField1

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

func (*Intreq) String

func (p *Intreq) String() string

func (*Intreq) Write

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

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

func (*Stringreq) GetS

func (p *Stringreq) GetS() string

func (*Stringreq) Read

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

func (*Stringreq) ReadField1

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

func (*Stringreq) String

func (p *Stringreq) String() string

func (*Stringreq) Write

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

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

func NewTag

func NewTag() *Tag

func (*Tag) GetTid

func (p *Tag) GetTid() int32

func (*Tag) GetTname

func (p *Tag) GetTname() string

func (*Tag) GetUID

func (p *Tag) GetUID() int32

func (*Tag) Read

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

func (*Tag) ReadField1

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

func (*Tag) ReadField10

func (p *Tag) ReadField10(iprot thrift.TProtocol) error

func (*Tag) ReadField2

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

func (*Tag) String

func (p *Tag) String() string

func (*Tag) Write

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

type TagService

type TagService interface {
	// Parameters:
	//  - I
	GetTagsByUID(ctx context.Context, i *Intreq) (r []*Tag, err error)
}

type TagServiceClient

type TagServiceClient struct {
	// contains filtered or unexported fields
}

func NewTagServiceClient

func NewTagServiceClient(c thrift.TClient) *TagServiceClient

func NewTagServiceClientProtocol

func NewTagServiceClientProtocol(t thrift.TTransport, iprot thrift.TProtocol, oprot thrift.TProtocol) *TagServiceClient

func (*TagServiceClient) Client_

func (p *TagServiceClient) Client_() thrift.TClient

func (*TagServiceClient) GetTagsByUID

func (p *TagServiceClient) GetTagsByUID(ctx context.Context, i *Intreq) (r []*Tag, err error)

Parameters:

  • I

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 (*TagServiceGetTagsByUIDArgs) IsSetI

func (p *TagServiceGetTagsByUIDArgs) IsSetI() bool

func (*TagServiceGetTagsByUIDArgs) Read

func (*TagServiceGetTagsByUIDArgs) ReadField1

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

func (*TagServiceGetTagsByUIDArgs) String

func (p *TagServiceGetTagsByUIDArgs) String() string

func (*TagServiceGetTagsByUIDArgs) Write

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

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

func (*TagServiceGetTagsByUIDResult) String

func (*TagServiceGetTagsByUIDResult) Write

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 NewUser

func NewUser() *User

func (*User) GetCommentcnt

func (p *User) GetCommentcnt() int32

func (*User) GetCreacnt

func (p *User) GetCreacnt() int32

func (*User) GetFancnt

func (p *User) GetFancnt() int32

func (*User) GetID

func (p *User) GetID() int32

func (*User) GetName

func (p *User) GetName() string

func (*User) GetVisitcnt

func (p *User) GetVisitcnt() int32

func (*User) GetZancnt

func (p *User) GetZancnt() int32

func (*User) Read

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

func (*User) ReadField1

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

func (*User) ReadField10

func (p *User) ReadField10(iprot thrift.TProtocol) error

func (*User) ReadField11

func (p *User) ReadField11(iprot thrift.TProtocol) error

func (*User) ReadField12

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

func (*User) ReadField13

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

func (*User) ReadField14

func (p *User) ReadField14(iprot thrift.TProtocol) error

func (*User) ReadField2

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

func (*User) String

func (p *User) String() string

func (*User) Write

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

type UserService

type UserService interface {
	// Parameters:
	//  - S
	GetUserInfo(ctx context.Context, s *Stringreq) (r *User, err error)
}

type UserServiceClient

type UserServiceClient struct {
	// contains filtered or unexported fields
}

func NewUserServiceClient

func NewUserServiceClient(c thrift.TClient) *UserServiceClient

func NewUserServiceClientProtocol

func NewUserServiceClientProtocol(t thrift.TTransport, iprot thrift.TProtocol, oprot thrift.TProtocol) *UserServiceClient

func (*UserServiceClient) Client_

func (p *UserServiceClient) Client_() thrift.TClient

func (*UserServiceClient) GetUserInfo

func (p *UserServiceClient) GetUserInfo(ctx context.Context, s *Stringreq) (r *User, err error)

Parameters:

  • S

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 (*UserServiceGetUserInfoArgs) IsSetS

func (p *UserServiceGetUserInfoArgs) IsSetS() bool

func (*UserServiceGetUserInfoArgs) Read

func (*UserServiceGetUserInfoArgs) ReadField1

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

func (*UserServiceGetUserInfoArgs) String

func (p *UserServiceGetUserInfoArgs) String() string

func (*UserServiceGetUserInfoArgs) Write

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

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

func (*UserServiceGetUserInfoResult) String

func (*UserServiceGetUserInfoResult) Write

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

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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