Documentation ¶
Index ¶
- Variables
- 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) FastWrite(buf []byte) int
- func (p *LoginResponse) FastWriteNocopy(buf []byte, binaryWriter bthrift.BinaryWriter) int
- func (p *LoginResponse) Field1DeepEqual(src *base.BaseResponse) bool
- func (p *LoginResponse) Field2DeepEqual(src string) bool
- func (p *LoginResponse) GetBaseResp() (v *base.BaseResponse)
- func (p *LoginResponse) GetToken() (v string)
- func (p *LoginResponse) InitDefault()
- func (p *LoginResponse) IsSetBaseResp() 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) SetBaseResp(val *base.BaseResponse)
- func (p *LoginResponse) SetToken(val string)
- func (p *LoginResponse) String() string
- func (p *LoginResponse) Write(oprot thrift.TProtocol) (err error)
- type UserService
- type UserServiceClient
- 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
Constants ¶
This section is empty.
Variables ¶
View Source
var KitexUnusedProtection = struct{}{}
KitexUnusedProtection is used to prevent 'imported and not used' error.
View Source
var LoginResponse_BaseResp_DEFAULT *base.BaseResponse
Functions ¶
This section is empty.
Types ¶
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 { BaseResp *base.BaseResponse `thrift:"base_resp,1" frugal:"1,default,base.BaseResponse" json:"base_resp"` Token string `thrift:"token,2" frugal:"2,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) 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 *base.BaseResponse) bool
func (*LoginResponse) Field2DeepEqual ¶
func (p *LoginResponse) Field2DeepEqual(src string) bool
func (*LoginResponse) GetBaseResp ¶
func (p *LoginResponse) GetBaseResp() (v *base.BaseResponse)
func (*LoginResponse) GetToken ¶
func (p *LoginResponse) GetToken() (v string)
func (*LoginResponse) InitDefault ¶
func (p *LoginResponse) InitDefault()
func (*LoginResponse) IsSetBaseResp ¶
func (p *LoginResponse) IsSetBaseResp() 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) SetBaseResp ¶
func (p *LoginResponse) SetBaseResp(val *base.BaseResponse)
func (*LoginResponse) SetToken ¶
func (p *LoginResponse) SetToken(val string)
func (*LoginResponse) String ¶
func (p *LoginResponse) String() string
type UserService ¶
type UserService interface {
Login(ctx context.Context, req *LoginRequest) (r *LoginResponse, 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) Login ¶
func (p *UserServiceClient) Login(ctx context.Context, req *LoginRequest) (r *LoginResponse, err error)
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
Click to show internal directories.
Click to hide internal directories.