user

package
v0.0.0-...-9bdafd8 Latest Latest
Warning

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

Go to latest
Published: Feb 21, 2023 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var KitexUnusedProtection = struct{}{}

KitexUnusedProtection is used to prevent 'imported and not used' error.

Functions

This section is empty.

Types

type GetUserRequest

type GetUserRequest struct {
	UserId int64  `thrift:"user_id,1" frugal:"1,default,i64" json:"user_id"`
	Token  string `thrift:"token,2" frugal:"2,default,string" json:"token"`
}
var UserServiceGetUserArgs_Req_DEFAULT *GetUserRequest

func NewGetUserRequest

func NewGetUserRequest() *GetUserRequest

func (*GetUserRequest) BLength

func (p *GetUserRequest) BLength() int

func (*GetUserRequest) DeepEqual

func (p *GetUserRequest) DeepEqual(ano *GetUserRequest) bool

func (*GetUserRequest) FastRead

func (p *GetUserRequest) FastRead(buf []byte) (int, error)

func (*GetUserRequest) FastReadField1

func (p *GetUserRequest) FastReadField1(buf []byte) (int, error)

func (*GetUserRequest) FastReadField2

func (p *GetUserRequest) FastReadField2(buf []byte) (int, error)

func (*GetUserRequest) FastWrite

func (p *GetUserRequest) FastWrite(buf []byte) int

for compatibility

func (*GetUserRequest) FastWriteNocopy

func (p *GetUserRequest) FastWriteNocopy(buf []byte, binaryWriter bthrift.BinaryWriter) int

func (*GetUserRequest) Field1DeepEqual

func (p *GetUserRequest) Field1DeepEqual(src int64) bool

func (*GetUserRequest) Field2DeepEqual

func (p *GetUserRequest) Field2DeepEqual(src string) bool

func (*GetUserRequest) GetToken

func (p *GetUserRequest) GetToken() (v string)

func (*GetUserRequest) GetUserId

func (p *GetUserRequest) GetUserId() (v int64)

func (*GetUserRequest) InitDefault

func (p *GetUserRequest) InitDefault()

func (*GetUserRequest) IsValid

func (p *GetUserRequest) IsValid() error

IsValid 校验UserId

func (*GetUserRequest) Read

func (p *GetUserRequest) Read(iprot thrift.TProtocol) (err error)

func (*GetUserRequest) ReadField1

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

func (*GetUserRequest) ReadField2

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

func (*GetUserRequest) SetToken

func (p *GetUserRequest) SetToken(val string)

func (*GetUserRequest) SetUserId

func (p *GetUserRequest) SetUserId(val int64)

func (*GetUserRequest) String

func (p *GetUserRequest) String() string

func (*GetUserRequest) Write

func (p *GetUserRequest) Write(oprot thrift.TProtocol) (err error)

type GetUserResponse

type GetUserResponse struct {
	StatusCode int32  `thrift:"status_code,1" frugal:"1,default,i32" json:"status_code"`
	StatusMsg  string `thrift:"status_msg,2" frugal:"2,default,string" json:"status_msg"`
	User       *User  `thrift:"user,3" frugal:"3,default,User" json:"user"`
}
var UserServiceGetUserResult_Success_DEFAULT *GetUserResponse

func NewGetUserResponse

func NewGetUserResponse() *GetUserResponse

func (*GetUserResponse) BLength

func (p *GetUserResponse) BLength() int

func (*GetUserResponse) DeepEqual

func (p *GetUserResponse) DeepEqual(ano *GetUserResponse) bool

func (*GetUserResponse) FastRead

func (p *GetUserResponse) FastRead(buf []byte) (int, error)

func (*GetUserResponse) FastReadField1

func (p *GetUserResponse) FastReadField1(buf []byte) (int, error)

func (*GetUserResponse) FastReadField2

func (p *GetUserResponse) FastReadField2(buf []byte) (int, error)

func (*GetUserResponse) FastReadField3

func (p *GetUserResponse) FastReadField3(buf []byte) (int, error)

func (*GetUserResponse) FastWrite

func (p *GetUserResponse) FastWrite(buf []byte) int

for compatibility

func (*GetUserResponse) FastWriteNocopy

func (p *GetUserResponse) FastWriteNocopy(buf []byte, binaryWriter bthrift.BinaryWriter) int

func (*GetUserResponse) Field1DeepEqual

func (p *GetUserResponse) Field1DeepEqual(src int32) bool

func (*GetUserResponse) Field2DeepEqual

func (p *GetUserResponse) Field2DeepEqual(src string) bool

func (*GetUserResponse) Field3DeepEqual

func (p *GetUserResponse) Field3DeepEqual(src *User) bool

func (*GetUserResponse) GetStatusCode

func (p *GetUserResponse) GetStatusCode() (v int32)

func (*GetUserResponse) GetStatusMsg

func (p *GetUserResponse) GetStatusMsg() (v string)

func (*GetUserResponse) GetUser

func (p *GetUserResponse) GetUser() (v *User)

func (*GetUserResponse) InitDefault

func (p *GetUserResponse) InitDefault()

func (*GetUserResponse) IsSetUser

func (p *GetUserResponse) IsSetUser() bool

func (*GetUserResponse) Read

func (p *GetUserResponse) Read(iprot thrift.TProtocol) (err error)

func (*GetUserResponse) ReadField1

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

func (*GetUserResponse) ReadField2

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

func (*GetUserResponse) ReadField3

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

func (*GetUserResponse) SetStatusCode

func (p *GetUserResponse) SetStatusCode(val int32)

func (*GetUserResponse) SetStatusMsg

func (p *GetUserResponse) SetStatusMsg(val string)

func (*GetUserResponse) SetUser

func (p *GetUserResponse) SetUser(val *User)

func (*GetUserResponse) String

func (p *GetUserResponse) String() string

func (*GetUserResponse) Write

func (p *GetUserResponse) Write(oprot thrift.TProtocol) (err error)

type User

type User struct {
	Id            int64  `thrift:"id,1" frugal:"1,default,i64" json:"id"`
	Name          string `thrift:"name,2" frugal:"2,default,string" json:"name"`
	FollowCount   int64  `thrift:"follow_count,3" frugal:"3,default,i64" json:"follow_count"`
	FollowerCount int64  `thrift:"follower_count,4" frugal:"4,default,i64" json:"follower_count"`
	IsFollow      bool   `thrift:"is_follow,5" frugal:"5,default,bool" json:"is_follow"`
}
var GetUserResponse_User_DEFAULT *User

func NewUser

func NewUser() *User

func (*User) BLength

func (p *User) BLength() int

func (*User) DeepEqual

func (p *User) DeepEqual(ano *User) bool

func (*User) FastRead

func (p *User) FastRead(buf []byte) (int, error)

func (*User) FastReadField1

func (p *User) FastReadField1(buf []byte) (int, error)

func (*User) FastReadField2

func (p *User) FastReadField2(buf []byte) (int, error)

func (*User) FastReadField3

func (p *User) FastReadField3(buf []byte) (int, error)

func (*User) FastReadField4

func (p *User) FastReadField4(buf []byte) (int, error)

func (*User) FastReadField5

func (p *User) FastReadField5(buf []byte) (int, error)

func (*User) FastWrite

func (p *User) FastWrite(buf []byte) int

for compatibility

func (*User) FastWriteNocopy

func (p *User) FastWriteNocopy(buf []byte, binaryWriter bthrift.BinaryWriter) int

func (*User) Field1DeepEqual

func (p *User) Field1DeepEqual(src int64) bool

func (*User) Field2DeepEqual

func (p *User) Field2DeepEqual(src string) bool

func (*User) Field3DeepEqual

func (p *User) Field3DeepEqual(src int64) bool

func (*User) Field4DeepEqual

func (p *User) Field4DeepEqual(src int64) bool

func (*User) Field5DeepEqual

func (p *User) Field5DeepEqual(src bool) bool

func (*User) GetFollowCount

func (p *User) GetFollowCount() (v int64)

func (*User) GetFollowerCount

func (p *User) GetFollowerCount() (v int64)

func (*User) GetId

func (p *User) GetId() (v int64)

func (*User) GetIsFollow

func (p *User) GetIsFollow() (v bool)

func (*User) GetName

func (p *User) GetName() (v string)

func (*User) InitDefault

func (p *User) InitDefault()

func (*User) Read

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

func (*User) ReadField1

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

func (*User) ReadField2

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

func (*User) ReadField3

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

func (*User) ReadField4

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

func (*User) ReadField5

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

func (*User) SetFollowCount

func (p *User) SetFollowCount(val int64)

func (*User) SetFollowerCount

func (p *User) SetFollowerCount(val int64)

func (*User) SetId

func (p *User) SetId(val int64)

func (*User) SetIsFollow

func (p *User) SetIsFollow(val bool)

func (*User) SetName

func (p *User) SetName(val string)

func (*User) String

func (p *User) String() string

func (*User) Write

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

type UserLoginRequest

type UserLoginRequest struct {
	Username string `thrift:"username,1" frugal:"1,default,string" json:"username"`
	Password string `thrift:"password,2" frugal:"2,default,string" json:"password"`
}
var UserServiceLoginArgs_Req_DEFAULT *UserLoginRequest

func NewUserLoginRequest

func NewUserLoginRequest() *UserLoginRequest

func (*UserLoginRequest) BLength

func (p *UserLoginRequest) BLength() int

func (*UserLoginRequest) DeepEqual

func (p *UserLoginRequest) DeepEqual(ano *UserLoginRequest) bool

func (*UserLoginRequest) FastRead

func (p *UserLoginRequest) FastRead(buf []byte) (int, error)

func (*UserLoginRequest) FastReadField1

func (p *UserLoginRequest) FastReadField1(buf []byte) (int, error)

func (*UserLoginRequest) FastReadField2

func (p *UserLoginRequest) FastReadField2(buf []byte) (int, error)

func (*UserLoginRequest) FastWrite

func (p *UserLoginRequest) FastWrite(buf []byte) int

for compatibility

func (*UserLoginRequest) FastWriteNocopy

func (p *UserLoginRequest) FastWriteNocopy(buf []byte, binaryWriter bthrift.BinaryWriter) int

func (*UserLoginRequest) Field1DeepEqual

func (p *UserLoginRequest) Field1DeepEqual(src string) bool

func (*UserLoginRequest) Field2DeepEqual

func (p *UserLoginRequest) Field2DeepEqual(src string) bool

func (*UserLoginRequest) GetPassword

func (p *UserLoginRequest) GetPassword() (v string)

func (*UserLoginRequest) GetUsername

func (p *UserLoginRequest) GetUsername() (v string)

func (*UserLoginRequest) InitDefault

func (p *UserLoginRequest) InitDefault()

func (*UserLoginRequest) IsValid

func (p *UserLoginRequest) IsValid() error

IsValid 校验Username,Password

func (*UserLoginRequest) Read

func (p *UserLoginRequest) Read(iprot thrift.TProtocol) (err error)

func (*UserLoginRequest) ReadField1

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

func (*UserLoginRequest) ReadField2

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

func (*UserLoginRequest) SetPassword

func (p *UserLoginRequest) SetPassword(val string)

func (*UserLoginRequest) SetUsername

func (p *UserLoginRequest) SetUsername(val string)

func (*UserLoginRequest) String

func (p *UserLoginRequest) String() string

func (*UserLoginRequest) Write

func (p *UserLoginRequest) Write(oprot thrift.TProtocol) (err error)

type UserLoginResponse

type UserLoginResponse struct {
	StatusCode int32  `thrift:"status_code,1" frugal:"1,default,i32" json:"status_code"`
	StatusMsg  string `thrift:"status_msg,2" frugal:"2,default,string" json:"status_msg"`
	UserId     int64  `thrift:"user_id,3" frugal:"3,default,i64" json:"user_id"`
	Token      string `thrift:"token,4" frugal:"4,default,string" json:"token"`
}
var UserServiceLoginResult_Success_DEFAULT *UserLoginResponse

func NewUserLoginResponse

func NewUserLoginResponse() *UserLoginResponse

func (*UserLoginResponse) BLength

func (p *UserLoginResponse) BLength() int

func (*UserLoginResponse) DeepEqual

func (p *UserLoginResponse) DeepEqual(ano *UserLoginResponse) bool

func (*UserLoginResponse) FastRead

func (p *UserLoginResponse) FastRead(buf []byte) (int, error)

func (*UserLoginResponse) FastReadField1

func (p *UserLoginResponse) FastReadField1(buf []byte) (int, error)

func (*UserLoginResponse) FastReadField2

func (p *UserLoginResponse) FastReadField2(buf []byte) (int, error)

func (*UserLoginResponse) FastReadField3

func (p *UserLoginResponse) FastReadField3(buf []byte) (int, error)

func (*UserLoginResponse) FastReadField4

func (p *UserLoginResponse) FastReadField4(buf []byte) (int, error)

func (*UserLoginResponse) FastWrite

func (p *UserLoginResponse) FastWrite(buf []byte) int

for compatibility

func (*UserLoginResponse) FastWriteNocopy

func (p *UserLoginResponse) FastWriteNocopy(buf []byte, binaryWriter bthrift.BinaryWriter) int

func (*UserLoginResponse) Field1DeepEqual

func (p *UserLoginResponse) Field1DeepEqual(src int32) bool

func (*UserLoginResponse) Field2DeepEqual

func (p *UserLoginResponse) Field2DeepEqual(src string) bool

func (*UserLoginResponse) Field3DeepEqual

func (p *UserLoginResponse) Field3DeepEqual(src int64) bool

func (*UserLoginResponse) Field4DeepEqual

func (p *UserLoginResponse) Field4DeepEqual(src string) bool

func (*UserLoginResponse) GetStatusCode

func (p *UserLoginResponse) GetStatusCode() (v int32)

func (*UserLoginResponse) GetStatusMsg

func (p *UserLoginResponse) GetStatusMsg() (v string)

func (*UserLoginResponse) GetToken

func (p *UserLoginResponse) GetToken() (v string)

func (*UserLoginResponse) GetUserId

func (p *UserLoginResponse) GetUserId() (v int64)

func (*UserLoginResponse) InitDefault

func (p *UserLoginResponse) InitDefault()

func (*UserLoginResponse) Read

func (p *UserLoginResponse) Read(iprot thrift.TProtocol) (err error)

func (*UserLoginResponse) ReadField1

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

func (*UserLoginResponse) ReadField2

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

func (*UserLoginResponse) ReadField3

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

func (*UserLoginResponse) ReadField4

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

func (*UserLoginResponse) SetStatusCode

func (p *UserLoginResponse) SetStatusCode(val int32)

func (*UserLoginResponse) SetStatusMsg

func (p *UserLoginResponse) SetStatusMsg(val string)

func (*UserLoginResponse) SetToken

func (p *UserLoginResponse) SetToken(val string)

func (*UserLoginResponse) SetUserId

func (p *UserLoginResponse) SetUserId(val int64)

func (*UserLoginResponse) String

func (p *UserLoginResponse) String() string

func (*UserLoginResponse) Write

func (p *UserLoginResponse) Write(oprot thrift.TProtocol) (err error)

type UserRegisterRequest

type UserRegisterRequest struct {
	Username string `thrift:"username,1" frugal:"1,default,string" json:"username"`
	Password string `thrift:"password,2" frugal:"2,default,string" json:"password"`
}
var UserServiceRegisterArgs_Req_DEFAULT *UserRegisterRequest

func NewUserRegisterRequest

func NewUserRegisterRequest() *UserRegisterRequest

func (*UserRegisterRequest) BLength

func (p *UserRegisterRequest) BLength() int

func (*UserRegisterRequest) DeepEqual

func (p *UserRegisterRequest) DeepEqual(ano *UserRegisterRequest) bool

func (*UserRegisterRequest) FastRead

func (p *UserRegisterRequest) FastRead(buf []byte) (int, error)

func (*UserRegisterRequest) FastReadField1

func (p *UserRegisterRequest) FastReadField1(buf []byte) (int, error)

func (*UserRegisterRequest) FastReadField2

func (p *UserRegisterRequest) FastReadField2(buf []byte) (int, error)

func (*UserRegisterRequest) FastWrite

func (p *UserRegisterRequest) FastWrite(buf []byte) int

for compatibility

func (*UserRegisterRequest) FastWriteNocopy

func (p *UserRegisterRequest) FastWriteNocopy(buf []byte, binaryWriter bthrift.BinaryWriter) int

func (*UserRegisterRequest) Field1DeepEqual

func (p *UserRegisterRequest) Field1DeepEqual(src string) bool

func (*UserRegisterRequest) Field2DeepEqual

func (p *UserRegisterRequest) Field2DeepEqual(src string) bool

func (*UserRegisterRequest) GetPassword

func (p *UserRegisterRequest) GetPassword() (v string)

func (*UserRegisterRequest) GetUsername

func (p *UserRegisterRequest) GetUsername() (v string)

func (*UserRegisterRequest) InitDefault

func (p *UserRegisterRequest) InitDefault()

func (*UserRegisterRequest) IsValid

func (p *UserRegisterRequest) IsValid() error

IsValid 校验Username,Password

func (*UserRegisterRequest) Read

func (p *UserRegisterRequest) Read(iprot thrift.TProtocol) (err error)

func (*UserRegisterRequest) ReadField1

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

func (*UserRegisterRequest) ReadField2

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

func (*UserRegisterRequest) SetPassword

func (p *UserRegisterRequest) SetPassword(val string)

func (*UserRegisterRequest) SetUsername

func (p *UserRegisterRequest) SetUsername(val string)

func (*UserRegisterRequest) String

func (p *UserRegisterRequest) String() string

func (*UserRegisterRequest) Write

func (p *UserRegisterRequest) Write(oprot thrift.TProtocol) (err error)

type UserRegisterResponse

type UserRegisterResponse struct {
	StatusCode int32  `thrift:"status_code,1" frugal:"1,default,i32" json:"status_code"`
	StatusMsg  string `thrift:"status_msg,2" frugal:"2,default,string" json:"status_msg"`
	UserId     int64  `thrift:"user_id,3" frugal:"3,default,i64" json:"user_id"`
	Token      string `thrift:"token,4" frugal:"4,default,string" json:"token"`
}
var UserServiceRegisterResult_Success_DEFAULT *UserRegisterResponse

func NewUserRegisterResponse

func NewUserRegisterResponse() *UserRegisterResponse

func (*UserRegisterResponse) BLength

func (p *UserRegisterResponse) BLength() int

func (*UserRegisterResponse) DeepEqual

func (p *UserRegisterResponse) DeepEqual(ano *UserRegisterResponse) bool

func (*UserRegisterResponse) FastRead

func (p *UserRegisterResponse) FastRead(buf []byte) (int, error)

func (*UserRegisterResponse) FastReadField1

func (p *UserRegisterResponse) FastReadField1(buf []byte) (int, error)

func (*UserRegisterResponse) FastReadField2

func (p *UserRegisterResponse) FastReadField2(buf []byte) (int, error)

func (*UserRegisterResponse) FastReadField3

func (p *UserRegisterResponse) FastReadField3(buf []byte) (int, error)

func (*UserRegisterResponse) FastReadField4

func (p *UserRegisterResponse) FastReadField4(buf []byte) (int, error)

func (*UserRegisterResponse) FastWrite

func (p *UserRegisterResponse) FastWrite(buf []byte) int

for compatibility

func (*UserRegisterResponse) FastWriteNocopy

func (p *UserRegisterResponse) FastWriteNocopy(buf []byte, binaryWriter bthrift.BinaryWriter) int

func (*UserRegisterResponse) Field1DeepEqual

func (p *UserRegisterResponse) Field1DeepEqual(src int32) bool

func (*UserRegisterResponse) Field2DeepEqual

func (p *UserRegisterResponse) Field2DeepEqual(src string) bool

func (*UserRegisterResponse) Field3DeepEqual

func (p *UserRegisterResponse) Field3DeepEqual(src int64) bool

func (*UserRegisterResponse) Field4DeepEqual

func (p *UserRegisterResponse) Field4DeepEqual(src string) bool

func (*UserRegisterResponse) GetStatusCode

func (p *UserRegisterResponse) GetStatusCode() (v int32)

func (*UserRegisterResponse) GetStatusMsg

func (p *UserRegisterResponse) GetStatusMsg() (v string)

func (*UserRegisterResponse) GetToken

func (p *UserRegisterResponse) GetToken() (v string)

func (*UserRegisterResponse) GetUserId

func (p *UserRegisterResponse) GetUserId() (v int64)

func (*UserRegisterResponse) InitDefault

func (p *UserRegisterResponse) InitDefault()

func (*UserRegisterResponse) Read

func (p *UserRegisterResponse) Read(iprot thrift.TProtocol) (err error)

func (*UserRegisterResponse) ReadField1

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

func (*UserRegisterResponse) ReadField2

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

func (*UserRegisterResponse) ReadField3

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

func (*UserRegisterResponse) ReadField4

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

func (*UserRegisterResponse) SetStatusCode

func (p *UserRegisterResponse) SetStatusCode(val int32)

func (*UserRegisterResponse) SetStatusMsg

func (p *UserRegisterResponse) SetStatusMsg(val string)

func (*UserRegisterResponse) SetToken

func (p *UserRegisterResponse) SetToken(val string)

func (*UserRegisterResponse) SetUserId

func (p *UserRegisterResponse) SetUserId(val int64)

func (*UserRegisterResponse) String

func (p *UserRegisterResponse) String() string

func (*UserRegisterResponse) Write

func (p *UserRegisterResponse) Write(oprot thrift.TProtocol) (err error)

type UserService

type UserService interface {
	Register(ctx context.Context, req *UserRegisterRequest) (r *UserRegisterResponse, err error)

	Login(ctx context.Context, req *UserLoginRequest) (r *UserLoginResponse, err error)

	GetUser(ctx context.Context, req *GetUserRequest) (r *GetUserResponse, 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) GetUser

func (p *UserServiceClient) GetUser(ctx context.Context, req *GetUserRequest) (r *GetUserResponse, err error)

func (*UserServiceClient) Login

func (*UserServiceClient) Register

type UserServiceGetUserArgs

type UserServiceGetUserArgs struct {
	Req *GetUserRequest `thrift:"req,1" frugal:"1,default,GetUserRequest" json:"req"`
}

func NewUserServiceGetUserArgs

func NewUserServiceGetUserArgs() *UserServiceGetUserArgs

func (*UserServiceGetUserArgs) BLength

func (p *UserServiceGetUserArgs) BLength() int

func (*UserServiceGetUserArgs) DeepEqual

func (*UserServiceGetUserArgs) FastRead

func (p *UserServiceGetUserArgs) FastRead(buf []byte) (int, error)

func (*UserServiceGetUserArgs) FastReadField1

func (p *UserServiceGetUserArgs) FastReadField1(buf []byte) (int, error)

func (*UserServiceGetUserArgs) FastWrite

func (p *UserServiceGetUserArgs) FastWrite(buf []byte) int

for compatibility

func (*UserServiceGetUserArgs) FastWriteNocopy

func (p *UserServiceGetUserArgs) FastWriteNocopy(buf []byte, binaryWriter bthrift.BinaryWriter) int

func (*UserServiceGetUserArgs) Field1DeepEqual

func (p *UserServiceGetUserArgs) Field1DeepEqual(src *GetUserRequest) bool

func (*UserServiceGetUserArgs) GetFirstArgument

func (p *UserServiceGetUserArgs) GetFirstArgument() interface{}

func (*UserServiceGetUserArgs) GetReq

func (p *UserServiceGetUserArgs) GetReq() (v *GetUserRequest)

func (*UserServiceGetUserArgs) InitDefault

func (p *UserServiceGetUserArgs) InitDefault()

func (*UserServiceGetUserArgs) IsSetReq

func (p *UserServiceGetUserArgs) IsSetReq() bool

func (*UserServiceGetUserArgs) Read

func (p *UserServiceGetUserArgs) Read(iprot thrift.TProtocol) (err error)

func (*UserServiceGetUserArgs) ReadField1

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

func (*UserServiceGetUserArgs) SetReq

func (p *UserServiceGetUserArgs) SetReq(val *GetUserRequest)

func (*UserServiceGetUserArgs) String

func (p *UserServiceGetUserArgs) String() string

func (*UserServiceGetUserArgs) Write

func (p *UserServiceGetUserArgs) Write(oprot thrift.TProtocol) (err error)

type UserServiceGetUserResult

type UserServiceGetUserResult struct {
	Success *GetUserResponse `thrift:"success,0,optional" frugal:"0,optional,GetUserResponse" json:"success,omitempty"`
}

func NewUserServiceGetUserResult

func NewUserServiceGetUserResult() *UserServiceGetUserResult

func (*UserServiceGetUserResult) BLength

func (p *UserServiceGetUserResult) BLength() int

func (*UserServiceGetUserResult) DeepEqual

func (*UserServiceGetUserResult) FastRead

func (p *UserServiceGetUserResult) FastRead(buf []byte) (int, error)

func (*UserServiceGetUserResult) FastReadField0

func (p *UserServiceGetUserResult) FastReadField0(buf []byte) (int, error)

func (*UserServiceGetUserResult) FastWrite

func (p *UserServiceGetUserResult) FastWrite(buf []byte) int

for compatibility

func (*UserServiceGetUserResult) FastWriteNocopy

func (p *UserServiceGetUserResult) FastWriteNocopy(buf []byte, binaryWriter bthrift.BinaryWriter) int

func (*UserServiceGetUserResult) Field0DeepEqual

func (p *UserServiceGetUserResult) Field0DeepEqual(src *GetUserResponse) bool

func (*UserServiceGetUserResult) GetResult

func (p *UserServiceGetUserResult) GetResult() interface{}

func (*UserServiceGetUserResult) GetSuccess

func (p *UserServiceGetUserResult) GetSuccess() (v *GetUserResponse)

func (*UserServiceGetUserResult) InitDefault

func (p *UserServiceGetUserResult) InitDefault()

func (*UserServiceGetUserResult) IsSetSuccess

func (p *UserServiceGetUserResult) IsSetSuccess() bool

func (*UserServiceGetUserResult) Read

func (p *UserServiceGetUserResult) Read(iprot thrift.TProtocol) (err error)

func (*UserServiceGetUserResult) ReadField0

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

func (*UserServiceGetUserResult) SetSuccess

func (p *UserServiceGetUserResult) SetSuccess(x interface{})

func (*UserServiceGetUserResult) String

func (p *UserServiceGetUserResult) String() string

func (*UserServiceGetUserResult) Write

func (p *UserServiceGetUserResult) Write(oprot thrift.TProtocol) (err error)

type UserServiceLoginArgs

type UserServiceLoginArgs struct {
	Req *UserLoginRequest `thrift:"req,1" frugal:"1,default,UserLoginRequest" json:"req"`
}

func NewUserServiceLoginArgs

func NewUserServiceLoginArgs() *UserServiceLoginArgs

func (*UserServiceLoginArgs) BLength

func (p *UserServiceLoginArgs) BLength() int

func (*UserServiceLoginArgs) DeepEqual

func (p *UserServiceLoginArgs) DeepEqual(ano *UserServiceLoginArgs) bool

func (*UserServiceLoginArgs) FastRead

func (p *UserServiceLoginArgs) FastRead(buf []byte) (int, error)

func (*UserServiceLoginArgs) FastReadField1

func (p *UserServiceLoginArgs) FastReadField1(buf []byte) (int, error)

func (*UserServiceLoginArgs) FastWrite

func (p *UserServiceLoginArgs) FastWrite(buf []byte) int

for compatibility

func (*UserServiceLoginArgs) FastWriteNocopy

func (p *UserServiceLoginArgs) FastWriteNocopy(buf []byte, binaryWriter bthrift.BinaryWriter) int

func (*UserServiceLoginArgs) Field1DeepEqual

func (p *UserServiceLoginArgs) Field1DeepEqual(src *UserLoginRequest) bool

func (*UserServiceLoginArgs) GetFirstArgument

func (p *UserServiceLoginArgs) GetFirstArgument() interface{}

func (*UserServiceLoginArgs) GetReq

func (p *UserServiceLoginArgs) GetReq() (v *UserLoginRequest)

func (*UserServiceLoginArgs) InitDefault

func (p *UserServiceLoginArgs) InitDefault()

func (*UserServiceLoginArgs) IsSetReq

func (p *UserServiceLoginArgs) IsSetReq() bool

func (*UserServiceLoginArgs) Read

func (p *UserServiceLoginArgs) Read(iprot thrift.TProtocol) (err error)

func (*UserServiceLoginArgs) ReadField1

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

func (*UserServiceLoginArgs) SetReq

func (p *UserServiceLoginArgs) SetReq(val *UserLoginRequest)

func (*UserServiceLoginArgs) String

func (p *UserServiceLoginArgs) String() string

func (*UserServiceLoginArgs) Write

func (p *UserServiceLoginArgs) Write(oprot thrift.TProtocol) (err error)

type UserServiceLoginResult

type UserServiceLoginResult struct {
	Success *UserLoginResponse `thrift:"success,0,optional" frugal:"0,optional,UserLoginResponse" json:"success,omitempty"`
}

func NewUserServiceLoginResult

func NewUserServiceLoginResult() *UserServiceLoginResult

func (*UserServiceLoginResult) BLength

func (p *UserServiceLoginResult) BLength() int

func (*UserServiceLoginResult) DeepEqual

func (*UserServiceLoginResult) FastRead

func (p *UserServiceLoginResult) FastRead(buf []byte) (int, error)

func (*UserServiceLoginResult) FastReadField0

func (p *UserServiceLoginResult) FastReadField0(buf []byte) (int, error)

func (*UserServiceLoginResult) FastWrite

func (p *UserServiceLoginResult) FastWrite(buf []byte) int

for compatibility

func (*UserServiceLoginResult) FastWriteNocopy

func (p *UserServiceLoginResult) FastWriteNocopy(buf []byte, binaryWriter bthrift.BinaryWriter) int

func (*UserServiceLoginResult) Field0DeepEqual

func (p *UserServiceLoginResult) Field0DeepEqual(src *UserLoginResponse) bool

func (*UserServiceLoginResult) GetResult

func (p *UserServiceLoginResult) GetResult() interface{}

func (*UserServiceLoginResult) GetSuccess

func (p *UserServiceLoginResult) GetSuccess() (v *UserLoginResponse)

func (*UserServiceLoginResult) InitDefault

func (p *UserServiceLoginResult) InitDefault()

func (*UserServiceLoginResult) IsSetSuccess

func (p *UserServiceLoginResult) IsSetSuccess() bool

func (*UserServiceLoginResult) Read

func (p *UserServiceLoginResult) Read(iprot thrift.TProtocol) (err error)

func (*UserServiceLoginResult) ReadField0

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

func (*UserServiceLoginResult) SetSuccess

func (p *UserServiceLoginResult) SetSuccess(x interface{})

func (*UserServiceLoginResult) String

func (p *UserServiceLoginResult) String() string

func (*UserServiceLoginResult) Write

func (p *UserServiceLoginResult) Write(oprot thrift.TProtocol) (err error)

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

type UserServiceRegisterArgs

type UserServiceRegisterArgs struct {
	Req *UserRegisterRequest `thrift:"req,1" frugal:"1,default,UserRegisterRequest" json:"req"`
}

func NewUserServiceRegisterArgs

func NewUserServiceRegisterArgs() *UserServiceRegisterArgs

func (*UserServiceRegisterArgs) BLength

func (p *UserServiceRegisterArgs) BLength() int

func (*UserServiceRegisterArgs) DeepEqual

func (*UserServiceRegisterArgs) FastRead

func (p *UserServiceRegisterArgs) FastRead(buf []byte) (int, error)

func (*UserServiceRegisterArgs) FastReadField1

func (p *UserServiceRegisterArgs) FastReadField1(buf []byte) (int, error)

func (*UserServiceRegisterArgs) FastWrite

func (p *UserServiceRegisterArgs) FastWrite(buf []byte) int

for compatibility

func (*UserServiceRegisterArgs) FastWriteNocopy

func (p *UserServiceRegisterArgs) FastWriteNocopy(buf []byte, binaryWriter bthrift.BinaryWriter) int

func (*UserServiceRegisterArgs) Field1DeepEqual

func (p *UserServiceRegisterArgs) Field1DeepEqual(src *UserRegisterRequest) bool

func (*UserServiceRegisterArgs) GetFirstArgument

func (p *UserServiceRegisterArgs) GetFirstArgument() interface{}

func (*UserServiceRegisterArgs) GetReq

func (*UserServiceRegisterArgs) InitDefault

func (p *UserServiceRegisterArgs) InitDefault()

func (*UserServiceRegisterArgs) IsSetReq

func (p *UserServiceRegisterArgs) IsSetReq() bool

func (*UserServiceRegisterArgs) Read

func (p *UserServiceRegisterArgs) Read(iprot thrift.TProtocol) (err error)

func (*UserServiceRegisterArgs) ReadField1

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

func (*UserServiceRegisterArgs) SetReq

func (*UserServiceRegisterArgs) String

func (p *UserServiceRegisterArgs) String() string

func (*UserServiceRegisterArgs) Write

func (p *UserServiceRegisterArgs) Write(oprot thrift.TProtocol) (err error)

type UserServiceRegisterResult

type UserServiceRegisterResult struct {
	Success *UserRegisterResponse `thrift:"success,0,optional" frugal:"0,optional,UserRegisterResponse" json:"success,omitempty"`
}

func NewUserServiceRegisterResult

func NewUserServiceRegisterResult() *UserServiceRegisterResult

func (*UserServiceRegisterResult) BLength

func (p *UserServiceRegisterResult) BLength() int

func (*UserServiceRegisterResult) DeepEqual

func (*UserServiceRegisterResult) FastRead

func (p *UserServiceRegisterResult) FastRead(buf []byte) (int, error)

func (*UserServiceRegisterResult) FastReadField0

func (p *UserServiceRegisterResult) FastReadField0(buf []byte) (int, error)

func (*UserServiceRegisterResult) FastWrite

func (p *UserServiceRegisterResult) FastWrite(buf []byte) int

for compatibility

func (*UserServiceRegisterResult) FastWriteNocopy

func (p *UserServiceRegisterResult) FastWriteNocopy(buf []byte, binaryWriter bthrift.BinaryWriter) int

func (*UserServiceRegisterResult) Field0DeepEqual

func (p *UserServiceRegisterResult) Field0DeepEqual(src *UserRegisterResponse) bool

func (*UserServiceRegisterResult) GetResult

func (p *UserServiceRegisterResult) GetResult() interface{}

func (*UserServiceRegisterResult) GetSuccess

func (p *UserServiceRegisterResult) GetSuccess() (v *UserRegisterResponse)

func (*UserServiceRegisterResult) InitDefault

func (p *UserServiceRegisterResult) InitDefault()

func (*UserServiceRegisterResult) IsSetSuccess

func (p *UserServiceRegisterResult) IsSetSuccess() bool

func (*UserServiceRegisterResult) Read

func (p *UserServiceRegisterResult) Read(iprot thrift.TProtocol) (err error)

func (*UserServiceRegisterResult) ReadField0

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

func (*UserServiceRegisterResult) SetSuccess

func (p *UserServiceRegisterResult) SetSuccess(x interface{})

func (*UserServiceRegisterResult) String

func (p *UserServiceRegisterResult) String() string

func (*UserServiceRegisterResult) Write

func (p *UserServiceRegisterResult) Write(oprot thrift.TProtocol) (err error)

Directories

Path Synopsis
Code generated by Kitex v0.4.4.
Code generated by Kitex v0.4.4.

Jump to

Keyboard shortcuts

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