Documentation ¶
Index ¶
- Variables
- type BaseResp
- func (p *BaseResp) BLength() int
- func (p *BaseResp) DeepEqual(ano *BaseResp) bool
- func (p *BaseResp) FastRead(buf []byte) (int, error)
- func (p *BaseResp) FastReadField1(buf []byte) (int, error)
- func (p *BaseResp) FastReadField2(buf []byte) (int, error)
- func (p *BaseResp) FastWrite(buf []byte) int
- func (p *BaseResp) FastWriteNocopy(buf []byte, binaryWriter bthrift.BinaryWriter) int
- func (p *BaseResp) Field1DeepEqual(src int64) bool
- func (p *BaseResp) Field2DeepEqual(src string) bool
- func (p *BaseResp) GetCode() (v int64)
- func (p *BaseResp) GetMsg() (v string)
- func (p *BaseResp) InitDefault()
- func (p *BaseResp) Read(iprot thrift.TProtocol) (err error)
- func (p *BaseResp) ReadField1(iprot thrift.TProtocol) error
- func (p *BaseResp) ReadField2(iprot thrift.TProtocol) error
- func (p *BaseResp) SetCode(val int64)
- func (p *BaseResp) SetMsg(val string)
- func (p *BaseResp) String() string
- func (p *BaseResp) Write(oprot thrift.TProtocol) (err error)
- type InfoRequest
- func (p *InfoRequest) BLength() int
- func (p *InfoRequest) DeepEqual(ano *InfoRequest) bool
- func (p *InfoRequest) FastRead(buf []byte) (int, error)
- func (p *InfoRequest) FastReadField1(buf []byte) (int, error)
- func (p *InfoRequest) FastReadField2(buf []byte) (int, error)
- func (p *InfoRequest) FastWrite(buf []byte) int
- func (p *InfoRequest) FastWriteNocopy(buf []byte, binaryWriter bthrift.BinaryWriter) int
- func (p *InfoRequest) Field1DeepEqual(src int64) bool
- func (p *InfoRequest) Field2DeepEqual(src string) bool
- func (p *InfoRequest) GetToken() (v string)
- func (p *InfoRequest) GetUserId() (v int64)
- func (p *InfoRequest) InitDefault()
- func (p *InfoRequest) Read(iprot thrift.TProtocol) (err error)
- func (p *InfoRequest) ReadField1(iprot thrift.TProtocol) error
- func (p *InfoRequest) ReadField2(iprot thrift.TProtocol) error
- func (p *InfoRequest) SetToken(val string)
- func (p *InfoRequest) SetUserId(val int64)
- func (p *InfoRequest) String() string
- func (p *InfoRequest) Write(oprot thrift.TProtocol) (err error)
- type InfoResponse
- func (p *InfoResponse) BLength() int
- func (p *InfoResponse) DeepEqual(ano *InfoResponse) bool
- func (p *InfoResponse) FastRead(buf []byte) (int, error)
- func (p *InfoResponse) FastReadField1(buf []byte) (int, error)
- func (p *InfoResponse) FastReadField2(buf []byte) (int, error)
- func (p *InfoResponse) FastWrite(buf []byte) int
- func (p *InfoResponse) FastWriteNocopy(buf []byte, binaryWriter bthrift.BinaryWriter) int
- func (p *InfoResponse) Field1DeepEqual(src *BaseResp) bool
- func (p *InfoResponse) Field2DeepEqual(src *User) bool
- func (p *InfoResponse) GetBase() (v *BaseResp)
- func (p *InfoResponse) GetUser() (v *User)
- func (p *InfoResponse) InitDefault()
- func (p *InfoResponse) IsSetBase() bool
- func (p *InfoResponse) IsSetUser() bool
- func (p *InfoResponse) Read(iprot thrift.TProtocol) (err error)
- func (p *InfoResponse) ReadField1(iprot thrift.TProtocol) error
- func (p *InfoResponse) ReadField2(iprot thrift.TProtocol) error
- func (p *InfoResponse) SetBase(val *BaseResp)
- func (p *InfoResponse) SetUser(val *User)
- func (p *InfoResponse) String() string
- func (p *InfoResponse) Write(oprot thrift.TProtocol) (err error)
- type LoginRequest
- func (p *LoginRequest) BLength() int
- func (p *LoginRequest) DeepEqual(ano *LoginRequest) bool
- func (p *LoginRequest) FastRead(buf []byte) (int, error)
- func (p *LoginRequest) FastReadField1(buf []byte) (int, error)
- func (p *LoginRequest) FastReadField2(buf []byte) (int, error)
- func (p *LoginRequest) FastWrite(buf []byte) int
- func (p *LoginRequest) FastWriteNocopy(buf []byte, binaryWriter bthrift.BinaryWriter) int
- func (p *LoginRequest) Field1DeepEqual(src string) bool
- func (p *LoginRequest) Field2DeepEqual(src string) bool
- func (p *LoginRequest) GetPassword() (v string)
- func (p *LoginRequest) GetUsername() (v string)
- func (p *LoginRequest) InitDefault()
- func (p *LoginRequest) Read(iprot thrift.TProtocol) (err error)
- func (p *LoginRequest) ReadField1(iprot thrift.TProtocol) error
- func (p *LoginRequest) ReadField2(iprot thrift.TProtocol) error
- func (p *LoginRequest) SetPassword(val string)
- func (p *LoginRequest) SetUsername(val string)
- func (p *LoginRequest) String() string
- func (p *LoginRequest) Write(oprot thrift.TProtocol) (err error)
- type LoginResponse
- func (p *LoginResponse) BLength() int
- func (p *LoginResponse) DeepEqual(ano *LoginResponse) bool
- func (p *LoginResponse) FastRead(buf []byte) (int, error)
- func (p *LoginResponse) FastReadField1(buf []byte) (int, error)
- func (p *LoginResponse) FastReadField2(buf []byte) (int, error)
- func (p *LoginResponse) FastReadField3(buf []byte) (int, error)
- func (p *LoginResponse) FastWrite(buf []byte) int
- func (p *LoginResponse) FastWriteNocopy(buf []byte, binaryWriter bthrift.BinaryWriter) int
- func (p *LoginResponse) Field1DeepEqual(src *BaseResp) bool
- func (p *LoginResponse) Field2DeepEqual(src *User) bool
- func (p *LoginResponse) Field3DeepEqual(src string) bool
- func (p *LoginResponse) GetBase() (v *BaseResp)
- func (p *LoginResponse) GetToken() (v string)
- func (p *LoginResponse) GetUser() (v *User)
- func (p *LoginResponse) InitDefault()
- func (p *LoginResponse) IsSetBase() bool
- func (p *LoginResponse) IsSetUser() bool
- func (p *LoginResponse) Read(iprot thrift.TProtocol) (err error)
- func (p *LoginResponse) ReadField1(iprot thrift.TProtocol) error
- func (p *LoginResponse) ReadField2(iprot thrift.TProtocol) error
- func (p *LoginResponse) ReadField3(iprot thrift.TProtocol) error
- func (p *LoginResponse) SetBase(val *BaseResp)
- func (p *LoginResponse) SetToken(val string)
- func (p *LoginResponse) SetUser(val *User)
- func (p *LoginResponse) String() string
- func (p *LoginResponse) Write(oprot thrift.TProtocol) (err error)
- type RegisterRequest
- func (p *RegisterRequest) BLength() int
- func (p *RegisterRequest) DeepEqual(ano *RegisterRequest) bool
- func (p *RegisterRequest) FastRead(buf []byte) (int, error)
- func (p *RegisterRequest) FastReadField1(buf []byte) (int, error)
- func (p *RegisterRequest) FastReadField2(buf []byte) (int, error)
- func (p *RegisterRequest) FastWrite(buf []byte) int
- func (p *RegisterRequest) FastWriteNocopy(buf []byte, binaryWriter bthrift.BinaryWriter) int
- func (p *RegisterRequest) Field1DeepEqual(src string) bool
- func (p *RegisterRequest) Field2DeepEqual(src string) bool
- func (p *RegisterRequest) GetPassword() (v string)
- func (p *RegisterRequest) GetUsername() (v string)
- func (p *RegisterRequest) InitDefault()
- func (p *RegisterRequest) Read(iprot thrift.TProtocol) (err error)
- func (p *RegisterRequest) ReadField1(iprot thrift.TProtocol) error
- func (p *RegisterRequest) ReadField2(iprot thrift.TProtocol) error
- func (p *RegisterRequest) SetPassword(val string)
- func (p *RegisterRequest) SetUsername(val string)
- func (p *RegisterRequest) String() string
- func (p *RegisterRequest) Write(oprot thrift.TProtocol) (err error)
- type RegisterResponse
- func (p *RegisterResponse) BLength() int
- func (p *RegisterResponse) DeepEqual(ano *RegisterResponse) bool
- func (p *RegisterResponse) FastRead(buf []byte) (int, error)
- func (p *RegisterResponse) FastReadField1(buf []byte) (int, error)
- func (p *RegisterResponse) FastReadField2(buf []byte) (int, error)
- func (p *RegisterResponse) FastReadField3(buf []byte) (int, error)
- func (p *RegisterResponse) FastWrite(buf []byte) int
- func (p *RegisterResponse) FastWriteNocopy(buf []byte, binaryWriter bthrift.BinaryWriter) int
- func (p *RegisterResponse) Field1DeepEqual(src *BaseResp) bool
- func (p *RegisterResponse) Field2DeepEqual(src int64) bool
- func (p *RegisterResponse) Field3DeepEqual(src string) bool
- func (p *RegisterResponse) GetBase() (v *BaseResp)
- func (p *RegisterResponse) GetToken() (v string)
- func (p *RegisterResponse) GetUserId() (v int64)
- func (p *RegisterResponse) InitDefault()
- func (p *RegisterResponse) IsSetBase() bool
- func (p *RegisterResponse) Read(iprot thrift.TProtocol) (err error)
- func (p *RegisterResponse) ReadField1(iprot thrift.TProtocol) error
- func (p *RegisterResponse) ReadField2(iprot thrift.TProtocol) error
- func (p *RegisterResponse) ReadField3(iprot thrift.TProtocol) error
- func (p *RegisterResponse) SetBase(val *BaseResp)
- func (p *RegisterResponse) SetToken(val string)
- func (p *RegisterResponse) SetUserId(val int64)
- func (p *RegisterResponse) String() string
- func (p *RegisterResponse) 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) FastReadField10(buf []byte) (int, error)
- func (p *User) FastReadField11(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) FastReadField6(buf []byte) (int, error)
- func (p *User) FastReadField7(buf []byte) (int, error)
- func (p *User) FastReadField8(buf []byte) (int, error)
- func (p *User) FastReadField9(buf []byte) (int, error)
- func (p *User) FastWrite(buf []byte) int
- func (p *User) FastWriteNocopy(buf []byte, binaryWriter bthrift.BinaryWriter) int
- func (p *User) Field10DeepEqual(src int64) bool
- func (p *User) Field11DeepEqual(src int64) bool
- 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) Field6DeepEqual(src string) bool
- func (p *User) Field7DeepEqual(src string) bool
- func (p *User) Field8DeepEqual(src string) bool
- func (p *User) Field9DeepEqual(src int64) bool
- func (p *User) GetAvatar() (v string)
- func (p *User) GetBackgroundImage() (v string)
- func (p *User) GetFavoritedCount() (v int64)
- 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) GetSignature() (v string)
- func (p *User) GetTotalFavorited() (v int64)
- func (p *User) GetWorkCount() (v int64)
- func (p *User) InitDefault()
- func (p *User) Read(iprot thrift.TProtocol) (err error)
- func (p *User) ReadField1(iprot thrift.TProtocol) error
- func (p *User) ReadField10(iprot thrift.TProtocol) error
- func (p *User) ReadField11(iprot thrift.TProtocol) error
- func (p *User) 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) ReadField6(iprot thrift.TProtocol) error
- func (p *User) ReadField7(iprot thrift.TProtocol) error
- func (p *User) ReadField8(iprot thrift.TProtocol) error
- func (p *User) ReadField9(iprot thrift.TProtocol) error
- func (p *User) SetAvatar(val string)
- func (p *User) SetBackgroundImage(val string)
- func (p *User) SetFavoritedCount(val int64)
- 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) SetSignature(val string)
- func (p *User) SetTotalFavorited(val int64)
- func (p *User) SetWorkCount(val int64)
- func (p *User) String() string
- func (p *User) Write(oprot thrift.TProtocol) (err error)
- type UserService
- type UserServiceClient
- func (p *UserServiceClient) Client_() thrift.TClient
- func (p *UserServiceClient) Info(ctx context.Context, req *InfoRequest) (r *InfoResponse, err error)
- func (p *UserServiceClient) Login(ctx context.Context, req *LoginRequest) (r *LoginResponse, err error)
- func (p *UserServiceClient) Register(ctx context.Context, req *RegisterRequest) (r *RegisterResponse, err error)
- type UserServiceInfoArgs
- func (p *UserServiceInfoArgs) BLength() int
- func (p *UserServiceInfoArgs) DeepEqual(ano *UserServiceInfoArgs) bool
- func (p *UserServiceInfoArgs) FastRead(buf []byte) (int, error)
- func (p *UserServiceInfoArgs) FastReadField1(buf []byte) (int, error)
- func (p *UserServiceInfoArgs) FastWrite(buf []byte) int
- func (p *UserServiceInfoArgs) FastWriteNocopy(buf []byte, binaryWriter bthrift.BinaryWriter) int
- func (p *UserServiceInfoArgs) Field1DeepEqual(src *InfoRequest) bool
- func (p *UserServiceInfoArgs) GetFirstArgument() interface{}
- func (p *UserServiceInfoArgs) GetReq() (v *InfoRequest)
- func (p *UserServiceInfoArgs) InitDefault()
- func (p *UserServiceInfoArgs) IsSetReq() bool
- func (p *UserServiceInfoArgs) Read(iprot thrift.TProtocol) (err error)
- func (p *UserServiceInfoArgs) ReadField1(iprot thrift.TProtocol) error
- func (p *UserServiceInfoArgs) SetReq(val *InfoRequest)
- func (p *UserServiceInfoArgs) String() string
- func (p *UserServiceInfoArgs) Write(oprot thrift.TProtocol) (err error)
- type UserServiceInfoResult
- func (p *UserServiceInfoResult) BLength() int
- func (p *UserServiceInfoResult) DeepEqual(ano *UserServiceInfoResult) bool
- func (p *UserServiceInfoResult) FastRead(buf []byte) (int, error)
- func (p *UserServiceInfoResult) FastReadField0(buf []byte) (int, error)
- func (p *UserServiceInfoResult) FastWrite(buf []byte) int
- func (p *UserServiceInfoResult) FastWriteNocopy(buf []byte, binaryWriter bthrift.BinaryWriter) int
- func (p *UserServiceInfoResult) Field0DeepEqual(src *InfoResponse) bool
- func (p *UserServiceInfoResult) GetResult() interface{}
- func (p *UserServiceInfoResult) GetSuccess() (v *InfoResponse)
- func (p *UserServiceInfoResult) InitDefault()
- func (p *UserServiceInfoResult) IsSetSuccess() bool
- func (p *UserServiceInfoResult) Read(iprot thrift.TProtocol) (err error)
- func (p *UserServiceInfoResult) ReadField0(iprot thrift.TProtocol) error
- func (p *UserServiceInfoResult) SetSuccess(x interface{})
- func (p *UserServiceInfoResult) String() string
- func (p *UserServiceInfoResult) 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 *LoginRequest) bool
- func (p *UserServiceLoginArgs) GetFirstArgument() interface{}
- func (p *UserServiceLoginArgs) GetReq() (v *LoginRequest)
- 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 *LoginRequest)
- 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 *LoginResponse) bool
- func (p *UserServiceLoginResult) GetResult() interface{}
- func (p *UserServiceLoginResult) GetSuccess() (v *LoginResponse)
- 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 *RegisterRequest) bool
- func (p *UserServiceRegisterArgs) GetFirstArgument() interface{}
- func (p *UserServiceRegisterArgs) GetReq() (v *RegisterRequest)
- 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 *RegisterRequest)
- 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 *RegisterResponse) bool
- func (p *UserServiceRegisterResult) GetResult() interface{}
- func (p *UserServiceRegisterResult) GetSuccess() (v *RegisterResponse)
- 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 BaseResp ¶
type BaseResp struct { Code int64 `thrift:"code,1" frugal:"1,default,i64" json:"code"` Msg string `thrift:"msg,2" frugal:"2,default,string" json:"msg"` }
var InfoResponse_Base_DEFAULT *BaseResp
var LoginResponse_Base_DEFAULT *BaseResp
var RegisterResponse_Base_DEFAULT *BaseResp
func NewBaseResp ¶
func NewBaseResp() *BaseResp
func (*BaseResp) FastWriteNocopy ¶
func (p *BaseResp) FastWriteNocopy(buf []byte, binaryWriter bthrift.BinaryWriter) int
func (*BaseResp) Field1DeepEqual ¶
func (*BaseResp) Field2DeepEqual ¶
func (*BaseResp) InitDefault ¶
func (p *BaseResp) InitDefault()
type InfoRequest ¶
type InfoRequest 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 UserServiceInfoArgs_Req_DEFAULT *InfoRequest
func NewInfoRequest ¶
func NewInfoRequest() *InfoRequest
func (*InfoRequest) BLength ¶
func (p *InfoRequest) BLength() int
func (*InfoRequest) DeepEqual ¶
func (p *InfoRequest) DeepEqual(ano *InfoRequest) bool
func (*InfoRequest) FastReadField1 ¶
func (p *InfoRequest) FastReadField1(buf []byte) (int, error)
func (*InfoRequest) FastReadField2 ¶
func (p *InfoRequest) FastReadField2(buf []byte) (int, error)
func (*InfoRequest) FastWriteNocopy ¶
func (p *InfoRequest) FastWriteNocopy(buf []byte, binaryWriter bthrift.BinaryWriter) int
func (*InfoRequest) Field1DeepEqual ¶
func (p *InfoRequest) Field1DeepEqual(src int64) bool
func (*InfoRequest) Field2DeepEqual ¶
func (p *InfoRequest) Field2DeepEqual(src string) bool
func (*InfoRequest) GetToken ¶
func (p *InfoRequest) GetToken() (v string)
func (*InfoRequest) GetUserId ¶
func (p *InfoRequest) GetUserId() (v int64)
func (*InfoRequest) InitDefault ¶
func (p *InfoRequest) InitDefault()
func (*InfoRequest) ReadField1 ¶
func (p *InfoRequest) ReadField1(iprot thrift.TProtocol) error
func (*InfoRequest) ReadField2 ¶
func (p *InfoRequest) ReadField2(iprot thrift.TProtocol) error
func (*InfoRequest) SetToken ¶
func (p *InfoRequest) SetToken(val string)
func (*InfoRequest) SetUserId ¶
func (p *InfoRequest) SetUserId(val int64)
func (*InfoRequest) String ¶
func (p *InfoRequest) String() string
type InfoResponse ¶
type InfoResponse struct { Base *BaseResp `thrift:"base,1" frugal:"1,default,BaseResp" json:"base"` User *User `thrift:"user,2" frugal:"2,default,User" json:"user"` }
var UserServiceInfoResult_Success_DEFAULT *InfoResponse
func NewInfoResponse ¶
func NewInfoResponse() *InfoResponse
func (*InfoResponse) BLength ¶
func (p *InfoResponse) BLength() int
func (*InfoResponse) DeepEqual ¶
func (p *InfoResponse) DeepEqual(ano *InfoResponse) bool
func (*InfoResponse) FastReadField1 ¶
func (p *InfoResponse) FastReadField1(buf []byte) (int, error)
func (*InfoResponse) FastReadField2 ¶
func (p *InfoResponse) FastReadField2(buf []byte) (int, error)
func (*InfoResponse) FastWriteNocopy ¶
func (p *InfoResponse) FastWriteNocopy(buf []byte, binaryWriter bthrift.BinaryWriter) int
func (*InfoResponse) Field1DeepEqual ¶
func (p *InfoResponse) Field1DeepEqual(src *BaseResp) bool
func (*InfoResponse) Field2DeepEqual ¶
func (p *InfoResponse) Field2DeepEqual(src *User) bool
func (*InfoResponse) GetBase ¶
func (p *InfoResponse) GetBase() (v *BaseResp)
func (*InfoResponse) GetUser ¶
func (p *InfoResponse) GetUser() (v *User)
func (*InfoResponse) InitDefault ¶
func (p *InfoResponse) InitDefault()
func (*InfoResponse) IsSetBase ¶
func (p *InfoResponse) IsSetBase() bool
func (*InfoResponse) IsSetUser ¶
func (p *InfoResponse) IsSetUser() bool
func (*InfoResponse) ReadField1 ¶
func (p *InfoResponse) ReadField1(iprot thrift.TProtocol) error
func (*InfoResponse) ReadField2 ¶
func (p *InfoResponse) ReadField2(iprot thrift.TProtocol) error
func (*InfoResponse) SetBase ¶
func (p *InfoResponse) SetBase(val *BaseResp)
func (*InfoResponse) SetUser ¶
func (p *InfoResponse) SetUser(val *User)
func (*InfoResponse) String ¶
func (p *InfoResponse) String() string
type LoginRequest ¶
type LoginRequest 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 *LoginRequest
func NewLoginRequest ¶
func NewLoginRequest() *LoginRequest
func (*LoginRequest) BLength ¶
func (p *LoginRequest) BLength() int
func (*LoginRequest) DeepEqual ¶
func (p *LoginRequest) DeepEqual(ano *LoginRequest) bool
func (*LoginRequest) FastReadField1 ¶
func (p *LoginRequest) FastReadField1(buf []byte) (int, error)
func (*LoginRequest) FastReadField2 ¶
func (p *LoginRequest) FastReadField2(buf []byte) (int, error)
func (*LoginRequest) FastWriteNocopy ¶
func (p *LoginRequest) FastWriteNocopy(buf []byte, binaryWriter bthrift.BinaryWriter) int
func (*LoginRequest) Field1DeepEqual ¶
func (p *LoginRequest) Field1DeepEqual(src string) bool
func (*LoginRequest) Field2DeepEqual ¶
func (p *LoginRequest) Field2DeepEqual(src string) bool
func (*LoginRequest) GetPassword ¶
func (p *LoginRequest) GetPassword() (v string)
func (*LoginRequest) GetUsername ¶
func (p *LoginRequest) GetUsername() (v string)
func (*LoginRequest) InitDefault ¶
func (p *LoginRequest) InitDefault()
func (*LoginRequest) ReadField1 ¶
func (p *LoginRequest) ReadField1(iprot thrift.TProtocol) error
func (*LoginRequest) ReadField2 ¶
func (p *LoginRequest) ReadField2(iprot thrift.TProtocol) error
func (*LoginRequest) SetPassword ¶
func (p *LoginRequest) SetPassword(val string)
func (*LoginRequest) SetUsername ¶
func (p *LoginRequest) SetUsername(val string)
func (*LoginRequest) String ¶
func (p *LoginRequest) String() string
type LoginResponse ¶
type LoginResponse struct { Base *BaseResp `thrift:"base,1" frugal:"1,default,BaseResp" json:"base"` User *User `thrift:"user,2" frugal:"2,default,User" json:"user"` Token string `thrift:"token,3" frugal:"3,default,string" json:"token"` }
var UserServiceLoginResult_Success_DEFAULT *LoginResponse
func NewLoginResponse ¶
func NewLoginResponse() *LoginResponse
func (*LoginResponse) BLength ¶
func (p *LoginResponse) BLength() int
func (*LoginResponse) DeepEqual ¶
func (p *LoginResponse) DeepEqual(ano *LoginResponse) bool
func (*LoginResponse) FastReadField1 ¶
func (p *LoginResponse) FastReadField1(buf []byte) (int, error)
func (*LoginResponse) FastReadField2 ¶
func (p *LoginResponse) FastReadField2(buf []byte) (int, error)
func (*LoginResponse) FastReadField3 ¶
func (p *LoginResponse) FastReadField3(buf []byte) (int, error)
func (*LoginResponse) FastWrite ¶
func (p *LoginResponse) FastWrite(buf []byte) int
for compatibility
func (*LoginResponse) FastWriteNocopy ¶
func (p *LoginResponse) FastWriteNocopy(buf []byte, binaryWriter bthrift.BinaryWriter) int
func (*LoginResponse) Field1DeepEqual ¶
func (p *LoginResponse) Field1DeepEqual(src *BaseResp) bool
func (*LoginResponse) Field2DeepEqual ¶
func (p *LoginResponse) Field2DeepEqual(src *User) bool
func (*LoginResponse) Field3DeepEqual ¶
func (p *LoginResponse) Field3DeepEqual(src string) bool
func (*LoginResponse) GetBase ¶
func (p *LoginResponse) GetBase() (v *BaseResp)
func (*LoginResponse) GetToken ¶
func (p *LoginResponse) GetToken() (v string)
func (*LoginResponse) GetUser ¶
func (p *LoginResponse) GetUser() (v *User)
func (*LoginResponse) InitDefault ¶
func (p *LoginResponse) InitDefault()
func (*LoginResponse) IsSetBase ¶
func (p *LoginResponse) IsSetBase() bool
func (*LoginResponse) IsSetUser ¶
func (p *LoginResponse) IsSetUser() bool
func (*LoginResponse) ReadField1 ¶
func (p *LoginResponse) ReadField1(iprot thrift.TProtocol) error
func (*LoginResponse) ReadField2 ¶
func (p *LoginResponse) ReadField2(iprot thrift.TProtocol) error
func (*LoginResponse) ReadField3 ¶
func (p *LoginResponse) ReadField3(iprot thrift.TProtocol) error
func (*LoginResponse) SetBase ¶
func (p *LoginResponse) SetBase(val *BaseResp)
func (*LoginResponse) SetToken ¶
func (p *LoginResponse) SetToken(val string)
func (*LoginResponse) SetUser ¶
func (p *LoginResponse) SetUser(val *User)
func (*LoginResponse) String ¶
func (p *LoginResponse) String() string
type RegisterRequest ¶
type RegisterRequest 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 *RegisterRequest
func NewRegisterRequest ¶
func NewRegisterRequest() *RegisterRequest
func (*RegisterRequest) BLength ¶
func (p *RegisterRequest) BLength() int
func (*RegisterRequest) DeepEqual ¶
func (p *RegisterRequest) DeepEqual(ano *RegisterRequest) bool
func (*RegisterRequest) FastReadField1 ¶
func (p *RegisterRequest) FastReadField1(buf []byte) (int, error)
func (*RegisterRequest) FastReadField2 ¶
func (p *RegisterRequest) FastReadField2(buf []byte) (int, error)
func (*RegisterRequest) FastWrite ¶
func (p *RegisterRequest) FastWrite(buf []byte) int
for compatibility
func (*RegisterRequest) FastWriteNocopy ¶
func (p *RegisterRequest) FastWriteNocopy(buf []byte, binaryWriter bthrift.BinaryWriter) int
func (*RegisterRequest) Field1DeepEqual ¶
func (p *RegisterRequest) Field1DeepEqual(src string) bool
func (*RegisterRequest) Field2DeepEqual ¶
func (p *RegisterRequest) Field2DeepEqual(src string) bool
func (*RegisterRequest) GetPassword ¶
func (p *RegisterRequest) GetPassword() (v string)
func (*RegisterRequest) GetUsername ¶
func (p *RegisterRequest) GetUsername() (v string)
func (*RegisterRequest) InitDefault ¶
func (p *RegisterRequest) InitDefault()
func (*RegisterRequest) ReadField1 ¶
func (p *RegisterRequest) ReadField1(iprot thrift.TProtocol) error
func (*RegisterRequest) ReadField2 ¶
func (p *RegisterRequest) ReadField2(iprot thrift.TProtocol) error
func (*RegisterRequest) SetPassword ¶
func (p *RegisterRequest) SetPassword(val string)
func (*RegisterRequest) SetUsername ¶
func (p *RegisterRequest) SetUsername(val string)
func (*RegisterRequest) String ¶
func (p *RegisterRequest) String() string
type RegisterResponse ¶
type RegisterResponse struct { Base *BaseResp `thrift:"base,1" frugal:"1,default,BaseResp" json:"base"` UserId int64 `thrift:"user_id,2" frugal:"2,default,i64" json:"user_id"` Token string `thrift:"token,3" frugal:"3,default,string" json:"token"` }
var UserServiceRegisterResult_Success_DEFAULT *RegisterResponse
func NewRegisterResponse ¶
func NewRegisterResponse() *RegisterResponse
func (*RegisterResponse) BLength ¶
func (p *RegisterResponse) BLength() int
func (*RegisterResponse) DeepEqual ¶
func (p *RegisterResponse) DeepEqual(ano *RegisterResponse) bool
func (*RegisterResponse) FastReadField1 ¶
func (p *RegisterResponse) FastReadField1(buf []byte) (int, error)
func (*RegisterResponse) FastReadField2 ¶
func (p *RegisterResponse) FastReadField2(buf []byte) (int, error)
func (*RegisterResponse) FastReadField3 ¶
func (p *RegisterResponse) FastReadField3(buf []byte) (int, error)
func (*RegisterResponse) FastWrite ¶
func (p *RegisterResponse) FastWrite(buf []byte) int
for compatibility
func (*RegisterResponse) FastWriteNocopy ¶
func (p *RegisterResponse) FastWriteNocopy(buf []byte, binaryWriter bthrift.BinaryWriter) int
func (*RegisterResponse) Field1DeepEqual ¶
func (p *RegisterResponse) Field1DeepEqual(src *BaseResp) bool
func (*RegisterResponse) Field2DeepEqual ¶
func (p *RegisterResponse) Field2DeepEqual(src int64) bool
func (*RegisterResponse) Field3DeepEqual ¶
func (p *RegisterResponse) Field3DeepEqual(src string) bool
func (*RegisterResponse) GetBase ¶
func (p *RegisterResponse) GetBase() (v *BaseResp)
func (*RegisterResponse) GetToken ¶
func (p *RegisterResponse) GetToken() (v string)
func (*RegisterResponse) GetUserId ¶
func (p *RegisterResponse) GetUserId() (v int64)
func (*RegisterResponse) InitDefault ¶
func (p *RegisterResponse) InitDefault()
func (*RegisterResponse) IsSetBase ¶
func (p *RegisterResponse) IsSetBase() bool
func (*RegisterResponse) ReadField1 ¶
func (p *RegisterResponse) ReadField1(iprot thrift.TProtocol) error
func (*RegisterResponse) ReadField2 ¶
func (p *RegisterResponse) ReadField2(iprot thrift.TProtocol) error
func (*RegisterResponse) ReadField3 ¶
func (p *RegisterResponse) ReadField3(iprot thrift.TProtocol) error
func (*RegisterResponse) SetBase ¶
func (p *RegisterResponse) SetBase(val *BaseResp)
func (*RegisterResponse) SetToken ¶
func (p *RegisterResponse) SetToken(val string)
func (*RegisterResponse) SetUserId ¶
func (p *RegisterResponse) SetUserId(val int64)
func (*RegisterResponse) String ¶
func (p *RegisterResponse) 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"` Avatar string `thrift:"avatar,6" frugal:"6,default,string" json:"avatar"` BackgroundImage string `thrift:"background_image,7" frugal:"7,default,string" json:"background_image"` Signature string `thrift:"signature,8" frugal:"8,default,string" json:"signature"` TotalFavorited int64 `thrift:"total_favorited,9" frugal:"9,default,i64" json:"total_favorited"` WorkCount int64 `thrift:"work_count,10" frugal:"10,default,i64" json:"work_count"` FavoritedCount int64 `thrift:"favorited_count,11" frugal:"11,default,i64" json:"favorited_count"` }
var InfoResponse_User_DEFAULT *User
var LoginResponse_User_DEFAULT *User
func (*User) FastWriteNocopy ¶
func (p *User) FastWriteNocopy(buf []byte, binaryWriter bthrift.BinaryWriter) int
func (*User) Field10DeepEqual ¶
func (*User) Field11DeepEqual ¶
func (*User) Field1DeepEqual ¶
func (*User) Field2DeepEqual ¶
func (*User) Field3DeepEqual ¶
func (*User) Field4DeepEqual ¶
func (*User) Field5DeepEqual ¶
func (*User) Field6DeepEqual ¶
func (*User) Field7DeepEqual ¶
func (*User) Field8DeepEqual ¶
func (*User) Field9DeepEqual ¶
func (*User) GetBackgroundImage ¶
func (*User) GetFavoritedCount ¶
func (*User) GetFollowCount ¶
func (*User) GetFollowerCount ¶
func (*User) GetIsFollow ¶
func (*User) GetSignature ¶
func (*User) GetTotalFavorited ¶
func (*User) GetWorkCount ¶
func (*User) InitDefault ¶
func (p *User) InitDefault()
func (*User) SetBackgroundImage ¶
func (*User) SetFavoritedCount ¶
func (*User) SetFollowCount ¶
func (*User) SetFollowerCount ¶
func (*User) SetIsFollow ¶
func (*User) SetSignature ¶
func (*User) SetTotalFavorited ¶
func (*User) SetWorkCount ¶
type UserService ¶
type UserService interface { Register(ctx context.Context, req *RegisterRequest) (r *RegisterResponse, err error) Login(ctx context.Context, req *LoginRequest) (r *LoginResponse, err error) Info(ctx context.Context, req *InfoRequest) (r *InfoResponse, 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) Info ¶
func (p *UserServiceClient) Info(ctx context.Context, req *InfoRequest) (r *InfoResponse, err error)
func (*UserServiceClient) Login ¶
func (p *UserServiceClient) Login(ctx context.Context, req *LoginRequest) (r *LoginResponse, err error)
func (*UserServiceClient) Register ¶
func (p *UserServiceClient) Register(ctx context.Context, req *RegisterRequest) (r *RegisterResponse, err error)
type UserServiceInfoArgs ¶
type UserServiceInfoArgs struct {
Req *InfoRequest `thrift:"req,1" frugal:"1,default,InfoRequest" json:"req"`
}
func NewUserServiceInfoArgs ¶
func NewUserServiceInfoArgs() *UserServiceInfoArgs
func (*UserServiceInfoArgs) BLength ¶
func (p *UserServiceInfoArgs) BLength() int
func (*UserServiceInfoArgs) DeepEqual ¶
func (p *UserServiceInfoArgs) DeepEqual(ano *UserServiceInfoArgs) bool
func (*UserServiceInfoArgs) FastRead ¶
func (p *UserServiceInfoArgs) FastRead(buf []byte) (int, error)
func (*UserServiceInfoArgs) FastReadField1 ¶
func (p *UserServiceInfoArgs) FastReadField1(buf []byte) (int, error)
func (*UserServiceInfoArgs) FastWrite ¶
func (p *UserServiceInfoArgs) FastWrite(buf []byte) int
for compatibility
func (*UserServiceInfoArgs) FastWriteNocopy ¶
func (p *UserServiceInfoArgs) FastWriteNocopy(buf []byte, binaryWriter bthrift.BinaryWriter) int
func (*UserServiceInfoArgs) Field1DeepEqual ¶
func (p *UserServiceInfoArgs) Field1DeepEqual(src *InfoRequest) bool
func (*UserServiceInfoArgs) GetFirstArgument ¶
func (p *UserServiceInfoArgs) GetFirstArgument() interface{}
func (*UserServiceInfoArgs) GetReq ¶
func (p *UserServiceInfoArgs) GetReq() (v *InfoRequest)
func (*UserServiceInfoArgs) InitDefault ¶
func (p *UserServiceInfoArgs) InitDefault()
func (*UserServiceInfoArgs) IsSetReq ¶
func (p *UserServiceInfoArgs) IsSetReq() bool
func (*UserServiceInfoArgs) Read ¶
func (p *UserServiceInfoArgs) Read(iprot thrift.TProtocol) (err error)
func (*UserServiceInfoArgs) ReadField1 ¶
func (p *UserServiceInfoArgs) ReadField1(iprot thrift.TProtocol) error
func (*UserServiceInfoArgs) SetReq ¶
func (p *UserServiceInfoArgs) SetReq(val *InfoRequest)
func (*UserServiceInfoArgs) String ¶
func (p *UserServiceInfoArgs) String() string
type UserServiceInfoResult ¶
type UserServiceInfoResult struct {
Success *InfoResponse `thrift:"success,0,optional" frugal:"0,optional,InfoResponse" json:"success,omitempty"`
}
func NewUserServiceInfoResult ¶
func NewUserServiceInfoResult() *UserServiceInfoResult
func (*UserServiceInfoResult) BLength ¶
func (p *UserServiceInfoResult) BLength() int
func (*UserServiceInfoResult) DeepEqual ¶
func (p *UserServiceInfoResult) DeepEqual(ano *UserServiceInfoResult) bool
func (*UserServiceInfoResult) FastRead ¶
func (p *UserServiceInfoResult) FastRead(buf []byte) (int, error)
func (*UserServiceInfoResult) FastReadField0 ¶
func (p *UserServiceInfoResult) FastReadField0(buf []byte) (int, error)
func (*UserServiceInfoResult) FastWrite ¶
func (p *UserServiceInfoResult) FastWrite(buf []byte) int
for compatibility
func (*UserServiceInfoResult) FastWriteNocopy ¶
func (p *UserServiceInfoResult) FastWriteNocopy(buf []byte, binaryWriter bthrift.BinaryWriter) int
func (*UserServiceInfoResult) Field0DeepEqual ¶
func (p *UserServiceInfoResult) Field0DeepEqual(src *InfoResponse) bool
func (*UserServiceInfoResult) GetResult ¶
func (p *UserServiceInfoResult) GetResult() interface{}
func (*UserServiceInfoResult) GetSuccess ¶
func (p *UserServiceInfoResult) GetSuccess() (v *InfoResponse)
func (*UserServiceInfoResult) InitDefault ¶
func (p *UserServiceInfoResult) InitDefault()
func (*UserServiceInfoResult) IsSetSuccess ¶
func (p *UserServiceInfoResult) IsSetSuccess() bool
func (*UserServiceInfoResult) Read ¶
func (p *UserServiceInfoResult) Read(iprot thrift.TProtocol) (err error)
func (*UserServiceInfoResult) ReadField0 ¶
func (p *UserServiceInfoResult) ReadField0(iprot thrift.TProtocol) error
func (*UserServiceInfoResult) SetSuccess ¶
func (p *UserServiceInfoResult) SetSuccess(x interface{})
func (*UserServiceInfoResult) String ¶
func (p *UserServiceInfoResult) String() string
type UserServiceLoginArgs ¶
type UserServiceLoginArgs struct {
Req *LoginRequest `thrift:"req,1" frugal:"1,default,LoginRequest" 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 *LoginRequest) bool
func (*UserServiceLoginArgs) GetFirstArgument ¶
func (p *UserServiceLoginArgs) GetFirstArgument() interface{}
func (*UserServiceLoginArgs) GetReq ¶
func (p *UserServiceLoginArgs) GetReq() (v *LoginRequest)
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 *LoginRequest)
func (*UserServiceLoginArgs) String ¶
func (p *UserServiceLoginArgs) String() string
type UserServiceLoginResult ¶
type UserServiceLoginResult struct {
Success *LoginResponse `thrift:"success,0,optional" frugal:"0,optional,LoginResponse" 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 *LoginResponse) bool
func (*UserServiceLoginResult) GetResult ¶
func (p *UserServiceLoginResult) GetResult() interface{}
func (*UserServiceLoginResult) GetSuccess ¶
func (p *UserServiceLoginResult) GetSuccess() (v *LoginResponse)
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 *RegisterRequest `thrift:"req,1" frugal:"1,default,RegisterRequest" 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 *RegisterRequest) bool
func (*UserServiceRegisterArgs) GetFirstArgument ¶
func (p *UserServiceRegisterArgs) GetFirstArgument() interface{}
func (*UserServiceRegisterArgs) GetReq ¶
func (p *UserServiceRegisterArgs) GetReq() (v *RegisterRequest)
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 *RegisterRequest)
func (*UserServiceRegisterArgs) String ¶
func (p *UserServiceRegisterArgs) String() string
type UserServiceRegisterResult ¶
type UserServiceRegisterResult struct {
Success *RegisterResponse `thrift:"success,0,optional" frugal:"0,optional,RegisterResponse" 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 *RegisterResponse) bool
func (*UserServiceRegisterResult) GetResult ¶
func (p *UserServiceRegisterResult) GetResult() interface{}
func (*UserServiceRegisterResult) GetSuccess ¶
func (p *UserServiceRegisterResult) GetSuccess() (v *RegisterResponse)
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.