Documentation ¶
Index ¶
- Variables
- 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) 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) FastWrite(buf []byte) int
- func (p *UserLoginResponse) FastWriteNocopy(buf []byte, binaryWriter bthrift.BinaryWriter) int
- func (p *UserLoginResponse) Field1DeepEqual(src int64) bool
- 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) SetUserId(val int64)
- func (p *UserLoginResponse) String() string
- func (p *UserLoginResponse) Write(oprot thrift.TProtocol) (err error)
- type UserQueryRequest
- func (p *UserQueryRequest) BLength() int
- func (p *UserQueryRequest) DeepEqual(ano *UserQueryRequest) bool
- func (p *UserQueryRequest) FastRead(buf []byte) (int, error)
- func (p *UserQueryRequest) FastReadField1(buf []byte) (int, error)
- func (p *UserQueryRequest) FastReadField2(buf []byte) (int, error)
- func (p *UserQueryRequest) FastWrite(buf []byte) int
- func (p *UserQueryRequest) FastWriteNocopy(buf []byte, binaryWriter bthrift.BinaryWriter) int
- func (p *UserQueryRequest) Field1DeepEqual(src int64) bool
- func (p *UserQueryRequest) Field2DeepEqual(src int64) bool
- func (p *UserQueryRequest) GetUserId() (v int64)
- func (p *UserQueryRequest) GetUserViewId() (v int64)
- func (p *UserQueryRequest) InitDefault()
- func (p *UserQueryRequest) Read(iprot thrift.TProtocol) (err error)
- func (p *UserQueryRequest) ReadField1(iprot thrift.TProtocol) error
- func (p *UserQueryRequest) ReadField2(iprot thrift.TProtocol) error
- func (p *UserQueryRequest) SetUserId(val int64)
- func (p *UserQueryRequest) SetUserViewId(val int64)
- func (p *UserQueryRequest) String() string
- func (p *UserQueryRequest) Write(oprot thrift.TProtocol) (err error)
- type UserQueryResponse
- func (p *UserQueryResponse) BLength() int
- func (p *UserQueryResponse) DeepEqual(ano *UserQueryResponse) bool
- func (p *UserQueryResponse) FastRead(buf []byte) (int, error)
- func (p *UserQueryResponse) FastReadField1(buf []byte) (int, error)
- func (p *UserQueryResponse) FastWrite(buf []byte) int
- func (p *UserQueryResponse) FastWriteNocopy(buf []byte, binaryWriter bthrift.BinaryWriter) int
- func (p *UserQueryResponse) Field1DeepEqual(src *rpcmodel.User) bool
- func (p *UserQueryResponse) GetUser() (v *rpcmodel.User)
- func (p *UserQueryResponse) InitDefault()
- func (p *UserQueryResponse) IsSetUser() bool
- func (p *UserQueryResponse) Read(iprot thrift.TProtocol) (err error)
- func (p *UserQueryResponse) ReadField1(iprot thrift.TProtocol) error
- func (p *UserQueryResponse) SetUser(val *rpcmodel.User)
- func (p *UserQueryResponse) String() string
- func (p *UserQueryResponse) 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) 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) FastWrite(buf []byte) int
- func (p *UserRegisterResponse) FastWriteNocopy(buf []byte, binaryWriter bthrift.BinaryWriter) int
- func (p *UserRegisterResponse) Field1DeepEqual(src int64) bool
- 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) 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) UserLogin(ctx context.Context, req *UserLoginRequest) (r *UserLoginResponse, err error)
- func (p *UserServiceClient) UserQuery(ctx context.Context, req *UserQueryRequest) (r *UserQueryResponse, err error)
- func (p *UserServiceClient) UserRegister(ctx context.Context, req *UserRegisterRequest) (r *UserRegisterResponse, 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 UserServiceUserLoginArgs
- func (p *UserServiceUserLoginArgs) BLength() int
- func (p *UserServiceUserLoginArgs) DeepEqual(ano *UserServiceUserLoginArgs) bool
- func (p *UserServiceUserLoginArgs) FastRead(buf []byte) (int, error)
- func (p *UserServiceUserLoginArgs) FastReadField1(buf []byte) (int, error)
- func (p *UserServiceUserLoginArgs) FastWrite(buf []byte) int
- func (p *UserServiceUserLoginArgs) FastWriteNocopy(buf []byte, binaryWriter bthrift.BinaryWriter) int
- func (p *UserServiceUserLoginArgs) Field1DeepEqual(src *UserLoginRequest) bool
- func (p *UserServiceUserLoginArgs) GetFirstArgument() interface{}
- func (p *UserServiceUserLoginArgs) GetReq() (v *UserLoginRequest)
- func (p *UserServiceUserLoginArgs) InitDefault()
- func (p *UserServiceUserLoginArgs) IsSetReq() bool
- func (p *UserServiceUserLoginArgs) Read(iprot thrift.TProtocol) (err error)
- func (p *UserServiceUserLoginArgs) ReadField1(iprot thrift.TProtocol) error
- func (p *UserServiceUserLoginArgs) SetReq(val *UserLoginRequest)
- func (p *UserServiceUserLoginArgs) String() string
- func (p *UserServiceUserLoginArgs) Write(oprot thrift.TProtocol) (err error)
- type UserServiceUserLoginResult
- func (p *UserServiceUserLoginResult) BLength() int
- func (p *UserServiceUserLoginResult) DeepEqual(ano *UserServiceUserLoginResult) bool
- func (p *UserServiceUserLoginResult) FastRead(buf []byte) (int, error)
- func (p *UserServiceUserLoginResult) FastReadField0(buf []byte) (int, error)
- func (p *UserServiceUserLoginResult) FastWrite(buf []byte) int
- func (p *UserServiceUserLoginResult) FastWriteNocopy(buf []byte, binaryWriter bthrift.BinaryWriter) int
- func (p *UserServiceUserLoginResult) Field0DeepEqual(src *UserLoginResponse) bool
- func (p *UserServiceUserLoginResult) GetResult() interface{}
- func (p *UserServiceUserLoginResult) GetSuccess() (v *UserLoginResponse)
- func (p *UserServiceUserLoginResult) InitDefault()
- func (p *UserServiceUserLoginResult) IsSetSuccess() bool
- func (p *UserServiceUserLoginResult) Read(iprot thrift.TProtocol) (err error)
- func (p *UserServiceUserLoginResult) ReadField0(iprot thrift.TProtocol) error
- func (p *UserServiceUserLoginResult) SetSuccess(x interface{})
- func (p *UserServiceUserLoginResult) String() string
- func (p *UserServiceUserLoginResult) Write(oprot thrift.TProtocol) (err error)
- type UserServiceUserQueryArgs
- func (p *UserServiceUserQueryArgs) BLength() int
- func (p *UserServiceUserQueryArgs) DeepEqual(ano *UserServiceUserQueryArgs) bool
- func (p *UserServiceUserQueryArgs) FastRead(buf []byte) (int, error)
- func (p *UserServiceUserQueryArgs) FastReadField1(buf []byte) (int, error)
- func (p *UserServiceUserQueryArgs) FastWrite(buf []byte) int
- func (p *UserServiceUserQueryArgs) FastWriteNocopy(buf []byte, binaryWriter bthrift.BinaryWriter) int
- func (p *UserServiceUserQueryArgs) Field1DeepEqual(src *UserQueryRequest) bool
- func (p *UserServiceUserQueryArgs) GetFirstArgument() interface{}
- func (p *UserServiceUserQueryArgs) GetReq() (v *UserQueryRequest)
- func (p *UserServiceUserQueryArgs) InitDefault()
- func (p *UserServiceUserQueryArgs) IsSetReq() bool
- func (p *UserServiceUserQueryArgs) Read(iprot thrift.TProtocol) (err error)
- func (p *UserServiceUserQueryArgs) ReadField1(iprot thrift.TProtocol) error
- func (p *UserServiceUserQueryArgs) SetReq(val *UserQueryRequest)
- func (p *UserServiceUserQueryArgs) String() string
- func (p *UserServiceUserQueryArgs) Write(oprot thrift.TProtocol) (err error)
- type UserServiceUserQueryResult
- func (p *UserServiceUserQueryResult) BLength() int
- func (p *UserServiceUserQueryResult) DeepEqual(ano *UserServiceUserQueryResult) bool
- func (p *UserServiceUserQueryResult) FastRead(buf []byte) (int, error)
- func (p *UserServiceUserQueryResult) FastReadField0(buf []byte) (int, error)
- func (p *UserServiceUserQueryResult) FastWrite(buf []byte) int
- func (p *UserServiceUserQueryResult) FastWriteNocopy(buf []byte, binaryWriter bthrift.BinaryWriter) int
- func (p *UserServiceUserQueryResult) Field0DeepEqual(src *UserQueryResponse) bool
- func (p *UserServiceUserQueryResult) GetResult() interface{}
- func (p *UserServiceUserQueryResult) GetSuccess() (v *UserQueryResponse)
- func (p *UserServiceUserQueryResult) InitDefault()
- func (p *UserServiceUserQueryResult) IsSetSuccess() bool
- func (p *UserServiceUserQueryResult) Read(iprot thrift.TProtocol) (err error)
- func (p *UserServiceUserQueryResult) ReadField0(iprot thrift.TProtocol) error
- func (p *UserServiceUserQueryResult) SetSuccess(x interface{})
- func (p *UserServiceUserQueryResult) String() string
- func (p *UserServiceUserQueryResult) Write(oprot thrift.TProtocol) (err error)
- type UserServiceUserRegisterArgs
- func (p *UserServiceUserRegisterArgs) BLength() int
- func (p *UserServiceUserRegisterArgs) DeepEqual(ano *UserServiceUserRegisterArgs) bool
- func (p *UserServiceUserRegisterArgs) FastRead(buf []byte) (int, error)
- func (p *UserServiceUserRegisterArgs) FastReadField1(buf []byte) (int, error)
- func (p *UserServiceUserRegisterArgs) FastWrite(buf []byte) int
- func (p *UserServiceUserRegisterArgs) FastWriteNocopy(buf []byte, binaryWriter bthrift.BinaryWriter) int
- func (p *UserServiceUserRegisterArgs) Field1DeepEqual(src *UserRegisterRequest) bool
- func (p *UserServiceUserRegisterArgs) GetFirstArgument() interface{}
- func (p *UserServiceUserRegisterArgs) GetReq() (v *UserRegisterRequest)
- func (p *UserServiceUserRegisterArgs) InitDefault()
- func (p *UserServiceUserRegisterArgs) IsSetReq() bool
- func (p *UserServiceUserRegisterArgs) Read(iprot thrift.TProtocol) (err error)
- func (p *UserServiceUserRegisterArgs) ReadField1(iprot thrift.TProtocol) error
- func (p *UserServiceUserRegisterArgs) SetReq(val *UserRegisterRequest)
- func (p *UserServiceUserRegisterArgs) String() string
- func (p *UserServiceUserRegisterArgs) Write(oprot thrift.TProtocol) (err error)
- type UserServiceUserRegisterResult
- func (p *UserServiceUserRegisterResult) BLength() int
- func (p *UserServiceUserRegisterResult) DeepEqual(ano *UserServiceUserRegisterResult) bool
- func (p *UserServiceUserRegisterResult) FastRead(buf []byte) (int, error)
- func (p *UserServiceUserRegisterResult) FastReadField0(buf []byte) (int, error)
- func (p *UserServiceUserRegisterResult) FastWrite(buf []byte) int
- func (p *UserServiceUserRegisterResult) FastWriteNocopy(buf []byte, binaryWriter bthrift.BinaryWriter) int
- func (p *UserServiceUserRegisterResult) Field0DeepEqual(src *UserRegisterResponse) bool
- func (p *UserServiceUserRegisterResult) GetResult() interface{}
- func (p *UserServiceUserRegisterResult) GetSuccess() (v *UserRegisterResponse)
- func (p *UserServiceUserRegisterResult) InitDefault()
- func (p *UserServiceUserRegisterResult) IsSetSuccess() bool
- func (p *UserServiceUserRegisterResult) Read(iprot thrift.TProtocol) (err error)
- func (p *UserServiceUserRegisterResult) ReadField0(iprot thrift.TProtocol) error
- func (p *UserServiceUserRegisterResult) SetSuccess(x interface{})
- func (p *UserServiceUserRegisterResult) String() string
- func (p *UserServiceUserRegisterResult) 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.
View Source
var UserQueryResponse_User_DEFAULT *rpcmodel.User
Functions ¶
This section is empty.
Types ¶
type UserLoginRequest ¶
type UserLoginRequest struct { Username string `thrift:"Username,1,required" frugal:"1,required,string" json:"Username"` Password string `thrift:"Password,2,required" frugal:"2,required,string" json:"Password"` }
var UserServiceUserLoginArgs_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) 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 {
UserId int64 `thrift:"UserId,1,required" frugal:"1,required,i64" json:"UserId"`
}
var UserServiceUserLoginResult_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) 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 int64) bool
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) SetUserId ¶
func (p *UserLoginResponse) SetUserId(val int64)
func (*UserLoginResponse) String ¶
func (p *UserLoginResponse) String() string
type UserQueryRequest ¶
type UserQueryRequest struct { UserId int64 `thrift:"UserId,1,required" frugal:"1,required,i64" json:"UserId"` UserViewId int64 `thrift:"UserViewId,2,required" frugal:"2,required,i64" json:"UserViewId"` }
var UserServiceUserQueryArgs_Req_DEFAULT *UserQueryRequest
func NewUserQueryRequest ¶
func NewUserQueryRequest() *UserQueryRequest
func (*UserQueryRequest) BLength ¶
func (p *UserQueryRequest) BLength() int
func (*UserQueryRequest) DeepEqual ¶
func (p *UserQueryRequest) DeepEqual(ano *UserQueryRequest) bool
func (*UserQueryRequest) FastReadField1 ¶
func (p *UserQueryRequest) FastReadField1(buf []byte) (int, error)
func (*UserQueryRequest) FastReadField2 ¶ added in v0.0.2
func (p *UserQueryRequest) FastReadField2(buf []byte) (int, error)
func (*UserQueryRequest) FastWrite ¶
func (p *UserQueryRequest) FastWrite(buf []byte) int
for compatibility
func (*UserQueryRequest) FastWriteNocopy ¶
func (p *UserQueryRequest) FastWriteNocopy(buf []byte, binaryWriter bthrift.BinaryWriter) int
func (*UserQueryRequest) Field1DeepEqual ¶
func (p *UserQueryRequest) Field1DeepEqual(src int64) bool
func (*UserQueryRequest) Field2DeepEqual ¶ added in v0.0.2
func (p *UserQueryRequest) Field2DeepEqual(src int64) bool
func (*UserQueryRequest) GetUserId ¶
func (p *UserQueryRequest) GetUserId() (v int64)
func (*UserQueryRequest) GetUserViewId ¶ added in v0.0.2
func (p *UserQueryRequest) GetUserViewId() (v int64)
func (*UserQueryRequest) InitDefault ¶
func (p *UserQueryRequest) InitDefault()
func (*UserQueryRequest) ReadField1 ¶
func (p *UserQueryRequest) ReadField1(iprot thrift.TProtocol) error
func (*UserQueryRequest) ReadField2 ¶ added in v0.0.2
func (p *UserQueryRequest) ReadField2(iprot thrift.TProtocol) error
func (*UserQueryRequest) SetUserId ¶
func (p *UserQueryRequest) SetUserId(val int64)
func (*UserQueryRequest) SetUserViewId ¶ added in v0.0.2
func (p *UserQueryRequest) SetUserViewId(val int64)
func (*UserQueryRequest) String ¶
func (p *UserQueryRequest) String() string
type UserQueryResponse ¶
type UserQueryResponse struct {
User *rpcmodel.User `thrift:"User,1,required" frugal:"1,required,rpcmodel.User" json:"User"`
}
var UserServiceUserQueryResult_Success_DEFAULT *UserQueryResponse
func NewUserQueryResponse ¶
func NewUserQueryResponse() *UserQueryResponse
func (*UserQueryResponse) BLength ¶
func (p *UserQueryResponse) BLength() int
func (*UserQueryResponse) DeepEqual ¶
func (p *UserQueryResponse) DeepEqual(ano *UserQueryResponse) bool
func (*UserQueryResponse) FastReadField1 ¶
func (p *UserQueryResponse) FastReadField1(buf []byte) (int, error)
func (*UserQueryResponse) FastWrite ¶
func (p *UserQueryResponse) FastWrite(buf []byte) int
for compatibility
func (*UserQueryResponse) FastWriteNocopy ¶
func (p *UserQueryResponse) FastWriteNocopy(buf []byte, binaryWriter bthrift.BinaryWriter) int
func (*UserQueryResponse) Field1DeepEqual ¶
func (p *UserQueryResponse) Field1DeepEqual(src *rpcmodel.User) bool
func (*UserQueryResponse) GetUser ¶
func (p *UserQueryResponse) GetUser() (v *rpcmodel.User)
func (*UserQueryResponse) InitDefault ¶
func (p *UserQueryResponse) InitDefault()
func (*UserQueryResponse) IsSetUser ¶
func (p *UserQueryResponse) IsSetUser() bool
func (*UserQueryResponse) Read ¶
func (p *UserQueryResponse) Read(iprot thrift.TProtocol) (err error)
func (*UserQueryResponse) ReadField1 ¶
func (p *UserQueryResponse) ReadField1(iprot thrift.TProtocol) error
func (*UserQueryResponse) SetUser ¶
func (p *UserQueryResponse) SetUser(val *rpcmodel.User)
func (*UserQueryResponse) String ¶
func (p *UserQueryResponse) String() string
type UserRegisterRequest ¶
type UserRegisterRequest struct { Username string `thrift:"Username,1,required" frugal:"1,required,string" json:"Username"` Password string `thrift:"Password,2,required" frugal:"2,required,string" json:"Password"` }
var UserServiceUserRegisterArgs_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) 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 {
UserId int64 `thrift:"UserId,1,required" frugal:"1,required,i64" json:"UserId"`
}
var UserServiceUserRegisterResult_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) 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 int64) bool
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) SetUserId ¶
func (p *UserRegisterResponse) SetUserId(val int64)
func (*UserRegisterResponse) String ¶
func (p *UserRegisterResponse) String() string
type UserService ¶
type UserService interface { UserRegister(ctx context.Context, req *UserRegisterRequest) (r *UserRegisterResponse, err error) UserLogin(ctx context.Context, req *UserLoginRequest) (r *UserLoginResponse, err error) UserQuery(ctx context.Context, req *UserQueryRequest) (r *UserQueryResponse, 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) UserLogin ¶
func (p *UserServiceClient) UserLogin(ctx context.Context, req *UserLoginRequest) (r *UserLoginResponse, err error)
func (*UserServiceClient) UserQuery ¶
func (p *UserServiceClient) UserQuery(ctx context.Context, req *UserQueryRequest) (r *UserQueryResponse, err error)
func (*UserServiceClient) UserRegister ¶
func (p *UserServiceClient) UserRegister(ctx context.Context, req *UserRegisterRequest) (r *UserRegisterResponse, err error)
type UserServiceProcessor ¶
type UserServiceProcessor struct {
// contains filtered or unexported fields
}
func NewUserServiceProcessor ¶
func NewUserServiceProcessor(handler UserService) *UserServiceProcessor
func (*UserServiceProcessor) AddToProcessorMap ¶
func (p *UserServiceProcessor) AddToProcessorMap(key string, processor thrift.TProcessorFunction)
func (*UserServiceProcessor) GetProcessorFunction ¶
func (p *UserServiceProcessor) GetProcessorFunction(key string) (processor thrift.TProcessorFunction, ok bool)
func (*UserServiceProcessor) Process ¶
func (p *UserServiceProcessor) Process(ctx context.Context, iprot, oprot thrift.TProtocol) (success bool, err thrift.TException)
func (*UserServiceProcessor) ProcessorMap ¶
func (p *UserServiceProcessor) ProcessorMap() map[string]thrift.TProcessorFunction
type UserServiceUserLoginArgs ¶
type UserServiceUserLoginArgs struct {
Req *UserLoginRequest `thrift:"req,1" frugal:"1,default,UserLoginRequest" json:"req"`
}
func NewUserServiceUserLoginArgs ¶
func NewUserServiceUserLoginArgs() *UserServiceUserLoginArgs
func (*UserServiceUserLoginArgs) BLength ¶
func (p *UserServiceUserLoginArgs) BLength() int
func (*UserServiceUserLoginArgs) DeepEqual ¶
func (p *UserServiceUserLoginArgs) DeepEqual(ano *UserServiceUserLoginArgs) bool
func (*UserServiceUserLoginArgs) FastRead ¶
func (p *UserServiceUserLoginArgs) FastRead(buf []byte) (int, error)
func (*UserServiceUserLoginArgs) FastReadField1 ¶
func (p *UserServiceUserLoginArgs) FastReadField1(buf []byte) (int, error)
func (*UserServiceUserLoginArgs) FastWrite ¶
func (p *UserServiceUserLoginArgs) FastWrite(buf []byte) int
for compatibility
func (*UserServiceUserLoginArgs) FastWriteNocopy ¶
func (p *UserServiceUserLoginArgs) FastWriteNocopy(buf []byte, binaryWriter bthrift.BinaryWriter) int
func (*UserServiceUserLoginArgs) Field1DeepEqual ¶
func (p *UserServiceUserLoginArgs) Field1DeepEqual(src *UserLoginRequest) bool
func (*UserServiceUserLoginArgs) GetFirstArgument ¶
func (p *UserServiceUserLoginArgs) GetFirstArgument() interface{}
func (*UserServiceUserLoginArgs) GetReq ¶
func (p *UserServiceUserLoginArgs) GetReq() (v *UserLoginRequest)
func (*UserServiceUserLoginArgs) InitDefault ¶
func (p *UserServiceUserLoginArgs) InitDefault()
func (*UserServiceUserLoginArgs) IsSetReq ¶
func (p *UserServiceUserLoginArgs) IsSetReq() bool
func (*UserServiceUserLoginArgs) Read ¶
func (p *UserServiceUserLoginArgs) Read(iprot thrift.TProtocol) (err error)
func (*UserServiceUserLoginArgs) ReadField1 ¶
func (p *UserServiceUserLoginArgs) ReadField1(iprot thrift.TProtocol) error
func (*UserServiceUserLoginArgs) SetReq ¶
func (p *UserServiceUserLoginArgs) SetReq(val *UserLoginRequest)
func (*UserServiceUserLoginArgs) String ¶
func (p *UserServiceUserLoginArgs) String() string
type UserServiceUserLoginResult ¶
type UserServiceUserLoginResult struct {
Success *UserLoginResponse `thrift:"success,0,optional" frugal:"0,optional,UserLoginResponse" json:"success,omitempty"`
}
func NewUserServiceUserLoginResult ¶
func NewUserServiceUserLoginResult() *UserServiceUserLoginResult
func (*UserServiceUserLoginResult) BLength ¶
func (p *UserServiceUserLoginResult) BLength() int
func (*UserServiceUserLoginResult) DeepEqual ¶
func (p *UserServiceUserLoginResult) DeepEqual(ano *UserServiceUserLoginResult) bool
func (*UserServiceUserLoginResult) FastRead ¶
func (p *UserServiceUserLoginResult) FastRead(buf []byte) (int, error)
func (*UserServiceUserLoginResult) FastReadField0 ¶
func (p *UserServiceUserLoginResult) FastReadField0(buf []byte) (int, error)
func (*UserServiceUserLoginResult) FastWrite ¶
func (p *UserServiceUserLoginResult) FastWrite(buf []byte) int
for compatibility
func (*UserServiceUserLoginResult) FastWriteNocopy ¶
func (p *UserServiceUserLoginResult) FastWriteNocopy(buf []byte, binaryWriter bthrift.BinaryWriter) int
func (*UserServiceUserLoginResult) Field0DeepEqual ¶
func (p *UserServiceUserLoginResult) Field0DeepEqual(src *UserLoginResponse) bool
func (*UserServiceUserLoginResult) GetResult ¶
func (p *UserServiceUserLoginResult) GetResult() interface{}
func (*UserServiceUserLoginResult) GetSuccess ¶
func (p *UserServiceUserLoginResult) GetSuccess() (v *UserLoginResponse)
func (*UserServiceUserLoginResult) InitDefault ¶
func (p *UserServiceUserLoginResult) InitDefault()
func (*UserServiceUserLoginResult) IsSetSuccess ¶
func (p *UserServiceUserLoginResult) IsSetSuccess() bool
func (*UserServiceUserLoginResult) Read ¶
func (p *UserServiceUserLoginResult) Read(iprot thrift.TProtocol) (err error)
func (*UserServiceUserLoginResult) ReadField0 ¶
func (p *UserServiceUserLoginResult) ReadField0(iprot thrift.TProtocol) error
func (*UserServiceUserLoginResult) SetSuccess ¶
func (p *UserServiceUserLoginResult) SetSuccess(x interface{})
func (*UserServiceUserLoginResult) String ¶
func (p *UserServiceUserLoginResult) String() string
type UserServiceUserQueryArgs ¶
type UserServiceUserQueryArgs struct {
Req *UserQueryRequest `thrift:"req,1" frugal:"1,default,UserQueryRequest" json:"req"`
}
func NewUserServiceUserQueryArgs ¶
func NewUserServiceUserQueryArgs() *UserServiceUserQueryArgs
func (*UserServiceUserQueryArgs) BLength ¶
func (p *UserServiceUserQueryArgs) BLength() int
func (*UserServiceUserQueryArgs) DeepEqual ¶
func (p *UserServiceUserQueryArgs) DeepEqual(ano *UserServiceUserQueryArgs) bool
func (*UserServiceUserQueryArgs) FastRead ¶
func (p *UserServiceUserQueryArgs) FastRead(buf []byte) (int, error)
func (*UserServiceUserQueryArgs) FastReadField1 ¶
func (p *UserServiceUserQueryArgs) FastReadField1(buf []byte) (int, error)
func (*UserServiceUserQueryArgs) FastWrite ¶
func (p *UserServiceUserQueryArgs) FastWrite(buf []byte) int
for compatibility
func (*UserServiceUserQueryArgs) FastWriteNocopy ¶
func (p *UserServiceUserQueryArgs) FastWriteNocopy(buf []byte, binaryWriter bthrift.BinaryWriter) int
func (*UserServiceUserQueryArgs) Field1DeepEqual ¶
func (p *UserServiceUserQueryArgs) Field1DeepEqual(src *UserQueryRequest) bool
func (*UserServiceUserQueryArgs) GetFirstArgument ¶
func (p *UserServiceUserQueryArgs) GetFirstArgument() interface{}
func (*UserServiceUserQueryArgs) GetReq ¶
func (p *UserServiceUserQueryArgs) GetReq() (v *UserQueryRequest)
func (*UserServiceUserQueryArgs) InitDefault ¶
func (p *UserServiceUserQueryArgs) InitDefault()
func (*UserServiceUserQueryArgs) IsSetReq ¶
func (p *UserServiceUserQueryArgs) IsSetReq() bool
func (*UserServiceUserQueryArgs) Read ¶
func (p *UserServiceUserQueryArgs) Read(iprot thrift.TProtocol) (err error)
func (*UserServiceUserQueryArgs) ReadField1 ¶
func (p *UserServiceUserQueryArgs) ReadField1(iprot thrift.TProtocol) error
func (*UserServiceUserQueryArgs) SetReq ¶
func (p *UserServiceUserQueryArgs) SetReq(val *UserQueryRequest)
func (*UserServiceUserQueryArgs) String ¶
func (p *UserServiceUserQueryArgs) String() string
type UserServiceUserQueryResult ¶
type UserServiceUserQueryResult struct {
Success *UserQueryResponse `thrift:"success,0,optional" frugal:"0,optional,UserQueryResponse" json:"success,omitempty"`
}
func NewUserServiceUserQueryResult ¶
func NewUserServiceUserQueryResult() *UserServiceUserQueryResult
func (*UserServiceUserQueryResult) BLength ¶
func (p *UserServiceUserQueryResult) BLength() int
func (*UserServiceUserQueryResult) DeepEqual ¶
func (p *UserServiceUserQueryResult) DeepEqual(ano *UserServiceUserQueryResult) bool
func (*UserServiceUserQueryResult) FastRead ¶
func (p *UserServiceUserQueryResult) FastRead(buf []byte) (int, error)
func (*UserServiceUserQueryResult) FastReadField0 ¶
func (p *UserServiceUserQueryResult) FastReadField0(buf []byte) (int, error)
func (*UserServiceUserQueryResult) FastWrite ¶
func (p *UserServiceUserQueryResult) FastWrite(buf []byte) int
for compatibility
func (*UserServiceUserQueryResult) FastWriteNocopy ¶
func (p *UserServiceUserQueryResult) FastWriteNocopy(buf []byte, binaryWriter bthrift.BinaryWriter) int
func (*UserServiceUserQueryResult) Field0DeepEqual ¶
func (p *UserServiceUserQueryResult) Field0DeepEqual(src *UserQueryResponse) bool
func (*UserServiceUserQueryResult) GetResult ¶
func (p *UserServiceUserQueryResult) GetResult() interface{}
func (*UserServiceUserQueryResult) GetSuccess ¶
func (p *UserServiceUserQueryResult) GetSuccess() (v *UserQueryResponse)
func (*UserServiceUserQueryResult) InitDefault ¶
func (p *UserServiceUserQueryResult) InitDefault()
func (*UserServiceUserQueryResult) IsSetSuccess ¶
func (p *UserServiceUserQueryResult) IsSetSuccess() bool
func (*UserServiceUserQueryResult) Read ¶
func (p *UserServiceUserQueryResult) Read(iprot thrift.TProtocol) (err error)
func (*UserServiceUserQueryResult) ReadField0 ¶
func (p *UserServiceUserQueryResult) ReadField0(iprot thrift.TProtocol) error
func (*UserServiceUserQueryResult) SetSuccess ¶
func (p *UserServiceUserQueryResult) SetSuccess(x interface{})
func (*UserServiceUserQueryResult) String ¶
func (p *UserServiceUserQueryResult) String() string
type UserServiceUserRegisterArgs ¶
type UserServiceUserRegisterArgs struct {
Req *UserRegisterRequest `thrift:"req,1" frugal:"1,default,UserRegisterRequest" json:"req"`
}
func NewUserServiceUserRegisterArgs ¶
func NewUserServiceUserRegisterArgs() *UserServiceUserRegisterArgs
func (*UserServiceUserRegisterArgs) BLength ¶
func (p *UserServiceUserRegisterArgs) BLength() int
func (*UserServiceUserRegisterArgs) DeepEqual ¶
func (p *UserServiceUserRegisterArgs) DeepEqual(ano *UserServiceUserRegisterArgs) bool
func (*UserServiceUserRegisterArgs) FastRead ¶
func (p *UserServiceUserRegisterArgs) FastRead(buf []byte) (int, error)
func (*UserServiceUserRegisterArgs) FastReadField1 ¶
func (p *UserServiceUserRegisterArgs) FastReadField1(buf []byte) (int, error)
func (*UserServiceUserRegisterArgs) FastWrite ¶
func (p *UserServiceUserRegisterArgs) FastWrite(buf []byte) int
for compatibility
func (*UserServiceUserRegisterArgs) FastWriteNocopy ¶
func (p *UserServiceUserRegisterArgs) FastWriteNocopy(buf []byte, binaryWriter bthrift.BinaryWriter) int
func (*UserServiceUserRegisterArgs) Field1DeepEqual ¶
func (p *UserServiceUserRegisterArgs) Field1DeepEqual(src *UserRegisterRequest) bool
func (*UserServiceUserRegisterArgs) GetFirstArgument ¶
func (p *UserServiceUserRegisterArgs) GetFirstArgument() interface{}
func (*UserServiceUserRegisterArgs) GetReq ¶
func (p *UserServiceUserRegisterArgs) GetReq() (v *UserRegisterRequest)
func (*UserServiceUserRegisterArgs) InitDefault ¶
func (p *UserServiceUserRegisterArgs) InitDefault()
func (*UserServiceUserRegisterArgs) IsSetReq ¶
func (p *UserServiceUserRegisterArgs) IsSetReq() bool
func (*UserServiceUserRegisterArgs) Read ¶
func (p *UserServiceUserRegisterArgs) Read(iprot thrift.TProtocol) (err error)
func (*UserServiceUserRegisterArgs) ReadField1 ¶
func (p *UserServiceUserRegisterArgs) ReadField1(iprot thrift.TProtocol) error
func (*UserServiceUserRegisterArgs) SetReq ¶
func (p *UserServiceUserRegisterArgs) SetReq(val *UserRegisterRequest)
func (*UserServiceUserRegisterArgs) String ¶
func (p *UserServiceUserRegisterArgs) String() string
type UserServiceUserRegisterResult ¶
type UserServiceUserRegisterResult struct {
Success *UserRegisterResponse `thrift:"success,0,optional" frugal:"0,optional,UserRegisterResponse" json:"success,omitempty"`
}
func NewUserServiceUserRegisterResult ¶
func NewUserServiceUserRegisterResult() *UserServiceUserRegisterResult
func (*UserServiceUserRegisterResult) BLength ¶
func (p *UserServiceUserRegisterResult) BLength() int
func (*UserServiceUserRegisterResult) DeepEqual ¶
func (p *UserServiceUserRegisterResult) DeepEqual(ano *UserServiceUserRegisterResult) bool
func (*UserServiceUserRegisterResult) FastRead ¶
func (p *UserServiceUserRegisterResult) FastRead(buf []byte) (int, error)
func (*UserServiceUserRegisterResult) FastReadField0 ¶
func (p *UserServiceUserRegisterResult) FastReadField0(buf []byte) (int, error)
func (*UserServiceUserRegisterResult) FastWrite ¶
func (p *UserServiceUserRegisterResult) FastWrite(buf []byte) int
for compatibility
func (*UserServiceUserRegisterResult) FastWriteNocopy ¶
func (p *UserServiceUserRegisterResult) FastWriteNocopy(buf []byte, binaryWriter bthrift.BinaryWriter) int
func (*UserServiceUserRegisterResult) Field0DeepEqual ¶
func (p *UserServiceUserRegisterResult) Field0DeepEqual(src *UserRegisterResponse) bool
func (*UserServiceUserRegisterResult) GetResult ¶
func (p *UserServiceUserRegisterResult) GetResult() interface{}
func (*UserServiceUserRegisterResult) GetSuccess ¶
func (p *UserServiceUserRegisterResult) GetSuccess() (v *UserRegisterResponse)
func (*UserServiceUserRegisterResult) InitDefault ¶
func (p *UserServiceUserRegisterResult) InitDefault()
func (*UserServiceUserRegisterResult) IsSetSuccess ¶
func (p *UserServiceUserRegisterResult) IsSetSuccess() bool
func (*UserServiceUserRegisterResult) Read ¶
func (p *UserServiceUserRegisterResult) Read(iprot thrift.TProtocol) (err error)
func (*UserServiceUserRegisterResult) ReadField0 ¶
func (p *UserServiceUserRegisterResult) ReadField0(iprot thrift.TProtocol) error
func (*UserServiceUserRegisterResult) SetSuccess ¶
func (p *UserServiceUserRegisterResult) SetSuccess(x interface{})
func (*UserServiceUserRegisterResult) String ¶
func (p *UserServiceUserRegisterResult) String() string
Click to show internal directories.
Click to hide internal directories.