Documentation ¶
Index ¶
- Variables
- type GetUserRequest
- func (p *GetUserRequest) BLength() int
- func (p *GetUserRequest) DeepEqual(ano *GetUserRequest) bool
- func (p *GetUserRequest) FastRead(buf []byte) (int, error)
- func (p *GetUserRequest) FastReadField1(buf []byte) (int, error)
- func (p *GetUserRequest) FastReadField2(buf []byte) (int, error)
- func (p *GetUserRequest) FastWrite(buf []byte) int
- func (p *GetUserRequest) FastWriteNocopy(buf []byte, binaryWriter bthrift.BinaryWriter) int
- func (p *GetUserRequest) Field1DeepEqual(src int64) bool
- func (p *GetUserRequest) Field2DeepEqual(src string) bool
- func (p *GetUserRequest) GetToken() (v string)
- func (p *GetUserRequest) GetUserId() (v int64)
- func (p *GetUserRequest) InitDefault()
- func (p *GetUserRequest) IsValid() error
- func (p *GetUserRequest) Read(iprot thrift.TProtocol) (err error)
- func (p *GetUserRequest) ReadField1(iprot thrift.TProtocol) error
- func (p *GetUserRequest) ReadField2(iprot thrift.TProtocol) error
- func (p *GetUserRequest) SetToken(val string)
- func (p *GetUserRequest) SetUserId(val int64)
- func (p *GetUserRequest) String() string
- func (p *GetUserRequest) Write(oprot thrift.TProtocol) (err error)
- type GetUserResponse
- func (p *GetUserResponse) BLength() int
- func (p *GetUserResponse) DeepEqual(ano *GetUserResponse) bool
- func (p *GetUserResponse) FastRead(buf []byte) (int, error)
- func (p *GetUserResponse) FastReadField1(buf []byte) (int, error)
- func (p *GetUserResponse) FastReadField2(buf []byte) (int, error)
- func (p *GetUserResponse) FastReadField3(buf []byte) (int, error)
- func (p *GetUserResponse) FastWrite(buf []byte) int
- func (p *GetUserResponse) FastWriteNocopy(buf []byte, binaryWriter bthrift.BinaryWriter) int
- func (p *GetUserResponse) Field1DeepEqual(src int32) bool
- func (p *GetUserResponse) Field2DeepEqual(src string) bool
- func (p *GetUserResponse) Field3DeepEqual(src *User) bool
- func (p *GetUserResponse) GetStatusCode() (v int32)
- func (p *GetUserResponse) GetStatusMsg() (v string)
- func (p *GetUserResponse) GetUser() (v *User)
- func (p *GetUserResponse) InitDefault()
- func (p *GetUserResponse) IsSetUser() bool
- func (p *GetUserResponse) Read(iprot thrift.TProtocol) (err error)
- func (p *GetUserResponse) ReadField1(iprot thrift.TProtocol) error
- func (p *GetUserResponse) ReadField2(iprot thrift.TProtocol) error
- func (p *GetUserResponse) ReadField3(iprot thrift.TProtocol) error
- func (p *GetUserResponse) SetStatusCode(val int32)
- func (p *GetUserResponse) SetStatusMsg(val string)
- func (p *GetUserResponse) SetUser(val *User)
- func (p *GetUserResponse) String() string
- func (p *GetUserResponse) Write(oprot thrift.TProtocol) (err error)
- type User
- func (p *User) BLength() int
- func (p *User) DeepEqual(ano *User) bool
- func (p *User) FastRead(buf []byte) (int, error)
- func (p *User) FastReadField1(buf []byte) (int, error)
- func (p *User) FastReadField2(buf []byte) (int, error)
- func (p *User) FastReadField3(buf []byte) (int, error)
- func (p *User) FastReadField4(buf []byte) (int, error)
- func (p *User) FastReadField5(buf []byte) (int, error)
- func (p *User) FastWrite(buf []byte) int
- func (p *User) FastWriteNocopy(buf []byte, binaryWriter bthrift.BinaryWriter) int
- func (p *User) Field1DeepEqual(src int64) bool
- func (p *User) Field2DeepEqual(src string) bool
- func (p *User) Field3DeepEqual(src int64) bool
- func (p *User) Field4DeepEqual(src int64) bool
- func (p *User) Field5DeepEqual(src bool) bool
- func (p *User) GetFollowCount() (v int64)
- func (p *User) GetFollowerCount() (v int64)
- func (p *User) GetId() (v int64)
- func (p *User) GetIsFollow() (v bool)
- func (p *User) GetName() (v string)
- func (p *User) InitDefault()
- func (p *User) Read(iprot thrift.TProtocol) (err error)
- func (p *User) ReadField1(iprot thrift.TProtocol) error
- func (p *User) ReadField2(iprot thrift.TProtocol) error
- func (p *User) ReadField3(iprot thrift.TProtocol) error
- func (p *User) ReadField4(iprot thrift.TProtocol) error
- func (p *User) ReadField5(iprot thrift.TProtocol) error
- func (p *User) SetFollowCount(val int64)
- func (p *User) SetFollowerCount(val int64)
- func (p *User) SetId(val int64)
- func (p *User) SetIsFollow(val bool)
- func (p *User) SetName(val string)
- func (p *User) String() string
- func (p *User) Write(oprot thrift.TProtocol) (err error)
- type UserLoginRequest
- func (p *UserLoginRequest) BLength() int
- func (p *UserLoginRequest) DeepEqual(ano *UserLoginRequest) bool
- func (p *UserLoginRequest) FastRead(buf []byte) (int, error)
- func (p *UserLoginRequest) FastReadField1(buf []byte) (int, error)
- func (p *UserLoginRequest) FastReadField2(buf []byte) (int, error)
- func (p *UserLoginRequest) FastWrite(buf []byte) int
- func (p *UserLoginRequest) FastWriteNocopy(buf []byte, binaryWriter bthrift.BinaryWriter) int
- func (p *UserLoginRequest) Field1DeepEqual(src string) bool
- func (p *UserLoginRequest) Field2DeepEqual(src string) bool
- func (p *UserLoginRequest) GetPassword() (v string)
- func (p *UserLoginRequest) GetUsername() (v string)
- func (p *UserLoginRequest) InitDefault()
- func (p *UserLoginRequest) IsValid() error
- func (p *UserLoginRequest) Read(iprot thrift.TProtocol) (err error)
- func (p *UserLoginRequest) ReadField1(iprot thrift.TProtocol) error
- func (p *UserLoginRequest) ReadField2(iprot thrift.TProtocol) error
- func (p *UserLoginRequest) SetPassword(val string)
- func (p *UserLoginRequest) SetUsername(val string)
- func (p *UserLoginRequest) String() string
- func (p *UserLoginRequest) Write(oprot thrift.TProtocol) (err error)
- type UserLoginResponse
- func (p *UserLoginResponse) BLength() int
- func (p *UserLoginResponse) DeepEqual(ano *UserLoginResponse) bool
- func (p *UserLoginResponse) FastRead(buf []byte) (int, error)
- func (p *UserLoginResponse) FastReadField1(buf []byte) (int, error)
- func (p *UserLoginResponse) FastReadField2(buf []byte) (int, error)
- func (p *UserLoginResponse) FastReadField3(buf []byte) (int, error)
- func (p *UserLoginResponse) FastReadField4(buf []byte) (int, error)
- func (p *UserLoginResponse) FastWrite(buf []byte) int
- func (p *UserLoginResponse) FastWriteNocopy(buf []byte, binaryWriter bthrift.BinaryWriter) int
- func (p *UserLoginResponse) Field1DeepEqual(src int32) bool
- func (p *UserLoginResponse) Field2DeepEqual(src string) bool
- func (p *UserLoginResponse) Field3DeepEqual(src int64) bool
- func (p *UserLoginResponse) Field4DeepEqual(src string) bool
- func (p *UserLoginResponse) GetStatusCode() (v int32)
- func (p *UserLoginResponse) GetStatusMsg() (v string)
- func (p *UserLoginResponse) GetToken() (v string)
- func (p *UserLoginResponse) GetUserId() (v int64)
- func (p *UserLoginResponse) InitDefault()
- func (p *UserLoginResponse) Read(iprot thrift.TProtocol) (err error)
- func (p *UserLoginResponse) ReadField1(iprot thrift.TProtocol) error
- func (p *UserLoginResponse) ReadField2(iprot thrift.TProtocol) error
- func (p *UserLoginResponse) ReadField3(iprot thrift.TProtocol) error
- func (p *UserLoginResponse) ReadField4(iprot thrift.TProtocol) error
- func (p *UserLoginResponse) SetStatusCode(val int32)
- func (p *UserLoginResponse) SetStatusMsg(val string)
- func (p *UserLoginResponse) SetToken(val string)
- func (p *UserLoginResponse) SetUserId(val int64)
- func (p *UserLoginResponse) String() string
- func (p *UserLoginResponse) Write(oprot thrift.TProtocol) (err error)
- type UserRegisterRequest
- func (p *UserRegisterRequest) BLength() int
- func (p *UserRegisterRequest) DeepEqual(ano *UserRegisterRequest) bool
- func (p *UserRegisterRequest) FastRead(buf []byte) (int, error)
- func (p *UserRegisterRequest) FastReadField1(buf []byte) (int, error)
- func (p *UserRegisterRequest) FastReadField2(buf []byte) (int, error)
- func (p *UserRegisterRequest) FastWrite(buf []byte) int
- func (p *UserRegisterRequest) FastWriteNocopy(buf []byte, binaryWriter bthrift.BinaryWriter) int
- func (p *UserRegisterRequest) Field1DeepEqual(src string) bool
- func (p *UserRegisterRequest) Field2DeepEqual(src string) bool
- func (p *UserRegisterRequest) GetPassword() (v string)
- func (p *UserRegisterRequest) GetUsername() (v string)
- func (p *UserRegisterRequest) InitDefault()
- func (p *UserRegisterRequest) IsValid() error
- func (p *UserRegisterRequest) Read(iprot thrift.TProtocol) (err error)
- func (p *UserRegisterRequest) ReadField1(iprot thrift.TProtocol) error
- func (p *UserRegisterRequest) ReadField2(iprot thrift.TProtocol) error
- func (p *UserRegisterRequest) SetPassword(val string)
- func (p *UserRegisterRequest) SetUsername(val string)
- func (p *UserRegisterRequest) String() string
- func (p *UserRegisterRequest) Write(oprot thrift.TProtocol) (err error)
- type UserRegisterResponse
- func (p *UserRegisterResponse) BLength() int
- func (p *UserRegisterResponse) DeepEqual(ano *UserRegisterResponse) bool
- func (p *UserRegisterResponse) FastRead(buf []byte) (int, error)
- func (p *UserRegisterResponse) FastReadField1(buf []byte) (int, error)
- func (p *UserRegisterResponse) FastReadField2(buf []byte) (int, error)
- func (p *UserRegisterResponse) FastReadField3(buf []byte) (int, error)
- func (p *UserRegisterResponse) FastReadField4(buf []byte) (int, error)
- func (p *UserRegisterResponse) FastWrite(buf []byte) int
- func (p *UserRegisterResponse) FastWriteNocopy(buf []byte, binaryWriter bthrift.BinaryWriter) int
- func (p *UserRegisterResponse) Field1DeepEqual(src int32) bool
- func (p *UserRegisterResponse) Field2DeepEqual(src string) bool
- func (p *UserRegisterResponse) Field3DeepEqual(src int64) bool
- func (p *UserRegisterResponse) Field4DeepEqual(src string) bool
- func (p *UserRegisterResponse) GetStatusCode() (v int32)
- func (p *UserRegisterResponse) GetStatusMsg() (v string)
- func (p *UserRegisterResponse) GetToken() (v string)
- func (p *UserRegisterResponse) GetUserId() (v int64)
- func (p *UserRegisterResponse) InitDefault()
- func (p *UserRegisterResponse) Read(iprot thrift.TProtocol) (err error)
- func (p *UserRegisterResponse) ReadField1(iprot thrift.TProtocol) error
- func (p *UserRegisterResponse) ReadField2(iprot thrift.TProtocol) error
- func (p *UserRegisterResponse) ReadField3(iprot thrift.TProtocol) error
- func (p *UserRegisterResponse) ReadField4(iprot thrift.TProtocol) error
- func (p *UserRegisterResponse) SetStatusCode(val int32)
- func (p *UserRegisterResponse) SetStatusMsg(val string)
- func (p *UserRegisterResponse) SetToken(val string)
- func (p *UserRegisterResponse) SetUserId(val int64)
- func (p *UserRegisterResponse) String() string
- func (p *UserRegisterResponse) Write(oprot thrift.TProtocol) (err error)
- type UserService
- type UserServiceClient
- func (p *UserServiceClient) Client_() thrift.TClient
- func (p *UserServiceClient) GetUser(ctx context.Context, req *GetUserRequest) (r *GetUserResponse, err error)
- func (p *UserServiceClient) Login(ctx context.Context, req *UserLoginRequest) (r *UserLoginResponse, err error)
- func (p *UserServiceClient) Register(ctx context.Context, req *UserRegisterRequest) (r *UserRegisterResponse, err error)
- type UserServiceGetUserArgs
- func (p *UserServiceGetUserArgs) BLength() int
- func (p *UserServiceGetUserArgs) DeepEqual(ano *UserServiceGetUserArgs) bool
- func (p *UserServiceGetUserArgs) FastRead(buf []byte) (int, error)
- func (p *UserServiceGetUserArgs) FastReadField1(buf []byte) (int, error)
- func (p *UserServiceGetUserArgs) FastWrite(buf []byte) int
- func (p *UserServiceGetUserArgs) FastWriteNocopy(buf []byte, binaryWriter bthrift.BinaryWriter) int
- func (p *UserServiceGetUserArgs) Field1DeepEqual(src *GetUserRequest) bool
- func (p *UserServiceGetUserArgs) GetFirstArgument() interface{}
- func (p *UserServiceGetUserArgs) GetReq() (v *GetUserRequest)
- func (p *UserServiceGetUserArgs) InitDefault()
- func (p *UserServiceGetUserArgs) IsSetReq() bool
- func (p *UserServiceGetUserArgs) Read(iprot thrift.TProtocol) (err error)
- func (p *UserServiceGetUserArgs) ReadField1(iprot thrift.TProtocol) error
- func (p *UserServiceGetUserArgs) SetReq(val *GetUserRequest)
- func (p *UserServiceGetUserArgs) String() string
- func (p *UserServiceGetUserArgs) Write(oprot thrift.TProtocol) (err error)
- type UserServiceGetUserResult
- func (p *UserServiceGetUserResult) BLength() int
- func (p *UserServiceGetUserResult) DeepEqual(ano *UserServiceGetUserResult) bool
- func (p *UserServiceGetUserResult) FastRead(buf []byte) (int, error)
- func (p *UserServiceGetUserResult) FastReadField0(buf []byte) (int, error)
- func (p *UserServiceGetUserResult) FastWrite(buf []byte) int
- func (p *UserServiceGetUserResult) FastWriteNocopy(buf []byte, binaryWriter bthrift.BinaryWriter) int
- func (p *UserServiceGetUserResult) Field0DeepEqual(src *GetUserResponse) bool
- func (p *UserServiceGetUserResult) GetResult() interface{}
- func (p *UserServiceGetUserResult) GetSuccess() (v *GetUserResponse)
- func (p *UserServiceGetUserResult) InitDefault()
- func (p *UserServiceGetUserResult) IsSetSuccess() bool
- func (p *UserServiceGetUserResult) Read(iprot thrift.TProtocol) (err error)
- func (p *UserServiceGetUserResult) ReadField0(iprot thrift.TProtocol) error
- func (p *UserServiceGetUserResult) SetSuccess(x interface{})
- func (p *UserServiceGetUserResult) String() string
- func (p *UserServiceGetUserResult) Write(oprot thrift.TProtocol) (err error)
- type UserServiceLoginArgs
- func (p *UserServiceLoginArgs) BLength() int
- func (p *UserServiceLoginArgs) DeepEqual(ano *UserServiceLoginArgs) bool
- func (p *UserServiceLoginArgs) FastRead(buf []byte) (int, error)
- func (p *UserServiceLoginArgs) FastReadField1(buf []byte) (int, error)
- func (p *UserServiceLoginArgs) FastWrite(buf []byte) int
- func (p *UserServiceLoginArgs) FastWriteNocopy(buf []byte, binaryWriter bthrift.BinaryWriter) int
- func (p *UserServiceLoginArgs) Field1DeepEqual(src *UserLoginRequest) bool
- func (p *UserServiceLoginArgs) GetFirstArgument() interface{}
- func (p *UserServiceLoginArgs) GetReq() (v *UserLoginRequest)
- func (p *UserServiceLoginArgs) InitDefault()
- func (p *UserServiceLoginArgs) IsSetReq() bool
- func (p *UserServiceLoginArgs) Read(iprot thrift.TProtocol) (err error)
- func (p *UserServiceLoginArgs) ReadField1(iprot thrift.TProtocol) error
- func (p *UserServiceLoginArgs) SetReq(val *UserLoginRequest)
- func (p *UserServiceLoginArgs) String() string
- func (p *UserServiceLoginArgs) Write(oprot thrift.TProtocol) (err error)
- type UserServiceLoginResult
- func (p *UserServiceLoginResult) BLength() int
- func (p *UserServiceLoginResult) DeepEqual(ano *UserServiceLoginResult) bool
- func (p *UserServiceLoginResult) FastRead(buf []byte) (int, error)
- func (p *UserServiceLoginResult) FastReadField0(buf []byte) (int, error)
- func (p *UserServiceLoginResult) FastWrite(buf []byte) int
- func (p *UserServiceLoginResult) FastWriteNocopy(buf []byte, binaryWriter bthrift.BinaryWriter) int
- func (p *UserServiceLoginResult) Field0DeepEqual(src *UserLoginResponse) bool
- func (p *UserServiceLoginResult) GetResult() interface{}
- func (p *UserServiceLoginResult) GetSuccess() (v *UserLoginResponse)
- func (p *UserServiceLoginResult) InitDefault()
- func (p *UserServiceLoginResult) IsSetSuccess() bool
- func (p *UserServiceLoginResult) Read(iprot thrift.TProtocol) (err error)
- func (p *UserServiceLoginResult) ReadField0(iprot thrift.TProtocol) error
- func (p *UserServiceLoginResult) SetSuccess(x interface{})
- func (p *UserServiceLoginResult) String() string
- func (p *UserServiceLoginResult) Write(oprot thrift.TProtocol) (err 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
- type UserServiceRegisterArgs
- func (p *UserServiceRegisterArgs) BLength() int
- func (p *UserServiceRegisterArgs) DeepEqual(ano *UserServiceRegisterArgs) bool
- func (p *UserServiceRegisterArgs) FastRead(buf []byte) (int, error)
- func (p *UserServiceRegisterArgs) FastReadField1(buf []byte) (int, error)
- func (p *UserServiceRegisterArgs) FastWrite(buf []byte) int
- func (p *UserServiceRegisterArgs) FastWriteNocopy(buf []byte, binaryWriter bthrift.BinaryWriter) int
- func (p *UserServiceRegisterArgs) Field1DeepEqual(src *UserRegisterRequest) bool
- func (p *UserServiceRegisterArgs) GetFirstArgument() interface{}
- func (p *UserServiceRegisterArgs) GetReq() (v *UserRegisterRequest)
- func (p *UserServiceRegisterArgs) InitDefault()
- func (p *UserServiceRegisterArgs) IsSetReq() bool
- func (p *UserServiceRegisterArgs) Read(iprot thrift.TProtocol) (err error)
- func (p *UserServiceRegisterArgs) ReadField1(iprot thrift.TProtocol) error
- func (p *UserServiceRegisterArgs) SetReq(val *UserRegisterRequest)
- func (p *UserServiceRegisterArgs) String() string
- func (p *UserServiceRegisterArgs) Write(oprot thrift.TProtocol) (err error)
- type UserServiceRegisterResult
- func (p *UserServiceRegisterResult) BLength() int
- func (p *UserServiceRegisterResult) DeepEqual(ano *UserServiceRegisterResult) bool
- func (p *UserServiceRegisterResult) FastRead(buf []byte) (int, error)
- func (p *UserServiceRegisterResult) FastReadField0(buf []byte) (int, error)
- func (p *UserServiceRegisterResult) FastWrite(buf []byte) int
- func (p *UserServiceRegisterResult) FastWriteNocopy(buf []byte, binaryWriter bthrift.BinaryWriter) int
- func (p *UserServiceRegisterResult) Field0DeepEqual(src *UserRegisterResponse) bool
- func (p *UserServiceRegisterResult) GetResult() interface{}
- func (p *UserServiceRegisterResult) GetSuccess() (v *UserRegisterResponse)
- func (p *UserServiceRegisterResult) InitDefault()
- func (p *UserServiceRegisterResult) IsSetSuccess() bool
- func (p *UserServiceRegisterResult) Read(iprot thrift.TProtocol) (err error)
- func (p *UserServiceRegisterResult) ReadField0(iprot thrift.TProtocol) error
- func (p *UserServiceRegisterResult) SetSuccess(x interface{})
- func (p *UserServiceRegisterResult) String() string
- func (p *UserServiceRegisterResult) Write(oprot thrift.TProtocol) (err error)
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) 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) 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
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) 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) 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
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 (*User) FastWriteNocopy ¶
func (p *User) FastWriteNocopy(buf []byte, binaryWriter bthrift.BinaryWriter) int
func (*User) Field1DeepEqual ¶
func (*User) Field2DeepEqual ¶
func (*User) Field3DeepEqual ¶
func (*User) Field4DeepEqual ¶
func (*User) Field5DeepEqual ¶
func (*User) GetFollowCount ¶
func (*User) GetFollowerCount ¶
func (*User) GetIsFollow ¶
func (*User) InitDefault ¶
func (p *User) InitDefault()
func (*User) SetFollowCount ¶
func (*User) SetFollowerCount ¶
func (*User) SetIsFollow ¶
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) 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) 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
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) 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
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
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
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 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
func (*UserServiceClient) GetUser ¶
func (p *UserServiceClient) GetUser(ctx context.Context, req *GetUserRequest) (r *GetUserResponse, err error)
func (*UserServiceClient) Login ¶
func (p *UserServiceClient) Login(ctx context.Context, req *UserLoginRequest) (r *UserLoginResponse, err error)
func (*UserServiceClient) Register ¶
func (p *UserServiceClient) Register(ctx context.Context, req *UserRegisterRequest) (r *UserRegisterResponse, err error)
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 (p *UserServiceGetUserArgs) DeepEqual(ano *UserServiceGetUserArgs) bool
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
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 (p *UserServiceGetUserResult) DeepEqual(ano *UserServiceGetUserResult) bool
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
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
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 (p *UserServiceLoginResult) DeepEqual(ano *UserServiceLoginResult) bool
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
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 (p *UserServiceRegisterArgs) DeepEqual(ano *UserServiceRegisterArgs) bool
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 (p *UserServiceRegisterArgs) GetReq() (v *UserRegisterRequest)
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 (p *UserServiceRegisterArgs) SetReq(val *UserRegisterRequest)
func (*UserServiceRegisterArgs) String ¶
func (p *UserServiceRegisterArgs) String() string
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 (p *UserServiceRegisterResult) DeepEqual(ano *UserServiceRegisterResult) bool
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
Click to show internal directories.
Click to hide internal directories.