Documentation ¶
Index ¶
- Variables
- type CheckUserReq
- func (p *CheckUserReq) BLength() int
- func (p *CheckUserReq) DeepEqual(ano *CheckUserReq) bool
- func (p *CheckUserReq) FastRead(buf []byte) (int, error)
- func (p *CheckUserReq) FastReadField1(buf []byte) (int, error)
- func (p *CheckUserReq) FastReadField2(buf []byte) (int, error)
- func (p *CheckUserReq) FastWrite(buf []byte) int
- func (p *CheckUserReq) FastWriteNocopy(buf []byte, binaryWriter bthrift.BinaryWriter) int
- func (p *CheckUserReq) Field1DeepEqual(src string) bool
- func (p *CheckUserReq) Field2DeepEqual(src string) bool
- func (p *CheckUserReq) GetPassword() (v string)
- func (p *CheckUserReq) GetUserName() (v string)
- func (p *CheckUserReq) Read(iprot thrift.TProtocol) (err error)
- func (p *CheckUserReq) ReadField1(iprot thrift.TProtocol) error
- func (p *CheckUserReq) ReadField2(iprot thrift.TProtocol) error
- func (p *CheckUserReq) SetPassword(val string)
- func (p *CheckUserReq) SetUserName(val string)
- func (p *CheckUserReq) String() string
- func (p *CheckUserReq) Write(oprot thrift.TProtocol) (err error)
- type CheckUserResp
- func (p *CheckUserResp) BLength() int
- func (p *CheckUserResp) DeepEqual(ano *CheckUserResp) bool
- func (p *CheckUserResp) FastRead(buf []byte) (int, error)
- func (p *CheckUserResp) FastReadField1(buf []byte) (int, error)
- func (p *CheckUserResp) FastReadField255(buf []byte) (int, error)
- func (p *CheckUserResp) FastWrite(buf []byte) int
- func (p *CheckUserResp) FastWriteNocopy(buf []byte, binaryWriter bthrift.BinaryWriter) int
- func (p *CheckUserResp) Field1DeepEqual(src int64) bool
- func (p *CheckUserResp) Field255DeepEqual(src *base.BaseResp) bool
- func (p *CheckUserResp) GetBaseResp() (v *base.BaseResp)
- func (p *CheckUserResp) GetUserId() (v int64)
- func (p *CheckUserResp) IsSetBaseResp() bool
- func (p *CheckUserResp) Read(iprot thrift.TProtocol) (err error)
- func (p *CheckUserResp) ReadField1(iprot thrift.TProtocol) error
- func (p *CheckUserResp) ReadField255(iprot thrift.TProtocol) error
- func (p *CheckUserResp) SetBaseResp(val *base.BaseResp)
- func (p *CheckUserResp) SetUserId(val int64)
- func (p *CheckUserResp) String() string
- func (p *CheckUserResp) Write(oprot thrift.TProtocol) (err error)
- type CreateUserReq
- func (p *CreateUserReq) BLength() int
- func (p *CreateUserReq) DeepEqual(ano *CreateUserReq) bool
- func (p *CreateUserReq) FastRead(buf []byte) (int, error)
- func (p *CreateUserReq) FastReadField1(buf []byte) (int, error)
- func (p *CreateUserReq) FastReadField2(buf []byte) (int, error)
- func (p *CreateUserReq) FastWrite(buf []byte) int
- func (p *CreateUserReq) FastWriteNocopy(buf []byte, binaryWriter bthrift.BinaryWriter) int
- func (p *CreateUserReq) Field1DeepEqual(src string) bool
- func (p *CreateUserReq) Field2DeepEqual(src string) bool
- func (p *CreateUserReq) GetPassword() (v string)
- func (p *CreateUserReq) GetUserName() (v string)
- func (p *CreateUserReq) Read(iprot thrift.TProtocol) (err error)
- func (p *CreateUserReq) ReadField1(iprot thrift.TProtocol) error
- func (p *CreateUserReq) ReadField2(iprot thrift.TProtocol) error
- func (p *CreateUserReq) SetPassword(val string)
- func (p *CreateUserReq) SetUserName(val string)
- func (p *CreateUserReq) String() string
- func (p *CreateUserReq) Write(oprot thrift.TProtocol) (err error)
- type CreateUserResp
- func (p *CreateUserResp) BLength() int
- func (p *CreateUserResp) DeepEqual(ano *CreateUserResp) bool
- func (p *CreateUserResp) FastRead(buf []byte) (int, error)
- func (p *CreateUserResp) FastReadField255(buf []byte) (int, error)
- func (p *CreateUserResp) FastWrite(buf []byte) int
- func (p *CreateUserResp) FastWriteNocopy(buf []byte, binaryWriter bthrift.BinaryWriter) int
- func (p *CreateUserResp) Field255DeepEqual(src *base.BaseResp) bool
- func (p *CreateUserResp) GetBaseResp() (v *base.BaseResp)
- func (p *CreateUserResp) IsSetBaseResp() bool
- func (p *CreateUserResp) Read(iprot thrift.TProtocol) (err error)
- func (p *CreateUserResp) ReadField255(iprot thrift.TProtocol) error
- func (p *CreateUserResp) SetBaseResp(val *base.BaseResp)
- func (p *CreateUserResp) String() string
- func (p *CreateUserResp) Write(oprot thrift.TProtocol) (err error)
- type MGetUserReq
- func (p *MGetUserReq) BLength() int
- func (p *MGetUserReq) DeepEqual(ano *MGetUserReq) bool
- func (p *MGetUserReq) FastRead(buf []byte) (int, error)
- func (p *MGetUserReq) FastReadField1(buf []byte) (int, error)
- func (p *MGetUserReq) FastWrite(buf []byte) int
- func (p *MGetUserReq) FastWriteNocopy(buf []byte, binaryWriter bthrift.BinaryWriter) int
- func (p *MGetUserReq) Field1DeepEqual(src []int64) bool
- func (p *MGetUserReq) GetIds() (v []int64)
- func (p *MGetUserReq) Read(iprot thrift.TProtocol) (err error)
- func (p *MGetUserReq) ReadField1(iprot thrift.TProtocol) error
- func (p *MGetUserReq) SetIds(val []int64)
- func (p *MGetUserReq) String() string
- func (p *MGetUserReq) Write(oprot thrift.TProtocol) (err error)
- type MGetUserResp
- func (p *MGetUserResp) BLength() int
- func (p *MGetUserResp) DeepEqual(ano *MGetUserResp) bool
- func (p *MGetUserResp) FastRead(buf []byte) (int, error)
- func (p *MGetUserResp) FastReadField1(buf []byte) (int, error)
- func (p *MGetUserResp) FastReadField255(buf []byte) (int, error)
- func (p *MGetUserResp) FastWrite(buf []byte) int
- func (p *MGetUserResp) FastWriteNocopy(buf []byte, binaryWriter bthrift.BinaryWriter) int
- func (p *MGetUserResp) Field1DeepEqual(src []*User) bool
- func (p *MGetUserResp) Field255DeepEqual(src *base.BaseResp) bool
- func (p *MGetUserResp) GetBaseResp() (v *base.BaseResp)
- func (p *MGetUserResp) GetUsers() (v []*User)
- func (p *MGetUserResp) IsSetBaseResp() bool
- func (p *MGetUserResp) Read(iprot thrift.TProtocol) (err error)
- func (p *MGetUserResp) ReadField1(iprot thrift.TProtocol) error
- func (p *MGetUserResp) ReadField255(iprot thrift.TProtocol) error
- func (p *MGetUserResp) SetBaseResp(val *base.BaseResp)
- func (p *MGetUserResp) SetUsers(val []*User)
- func (p *MGetUserResp) String() string
- func (p *MGetUserResp) Write(oprot thrift.TProtocol) (err error)
- type User
- func (p *User) BLength() int
- func (p *User) DeepEqual(ano *User) bool
- func (p *User) FastRead(buf []byte) (int, error)
- func (p *User) FastReadField1(buf []byte) (int, error)
- func (p *User) FastReadField2(buf []byte) (int, error)
- func (p *User) FastWrite(buf []byte) int
- func (p *User) FastWriteNocopy(buf []byte, binaryWriter bthrift.BinaryWriter) int
- func (p *User) Field1DeepEqual(src int64) bool
- func (p *User) Field2DeepEqual(src string) bool
- func (p *User) GetUserId() (v int64)
- func (p *User) GetUserName() (v string)
- func (p *User) Read(iprot thrift.TProtocol) (err error)
- func (p *User) ReadField1(iprot thrift.TProtocol) error
- func (p *User) ReadField2(iprot thrift.TProtocol) error
- func (p *User) SetUserId(val int64)
- func (p *User) SetUserName(val string)
- func (p *User) String() string
- func (p *User) Write(oprot thrift.TProtocol) (err error)
- type UserService
- type UserServiceCheckUserArgs
- func (p *UserServiceCheckUserArgs) BLength() int
- func (p *UserServiceCheckUserArgs) DeepEqual(ano *UserServiceCheckUserArgs) bool
- func (p *UserServiceCheckUserArgs) FastRead(buf []byte) (int, error)
- func (p *UserServiceCheckUserArgs) FastReadField1(buf []byte) (int, error)
- func (p *UserServiceCheckUserArgs) FastWrite(buf []byte) int
- func (p *UserServiceCheckUserArgs) FastWriteNocopy(buf []byte, binaryWriter bthrift.BinaryWriter) int
- func (p *UserServiceCheckUserArgs) Field1DeepEqual(src *CheckUserReq) bool
- func (p *UserServiceCheckUserArgs) GetFirstArgument() interface{}
- func (p *UserServiceCheckUserArgs) GetReq() (v *CheckUserReq)
- func (p *UserServiceCheckUserArgs) IsSetReq() bool
- func (p *UserServiceCheckUserArgs) Read(iprot thrift.TProtocol) (err error)
- func (p *UserServiceCheckUserArgs) ReadField1(iprot thrift.TProtocol) error
- func (p *UserServiceCheckUserArgs) SetReq(val *CheckUserReq)
- func (p *UserServiceCheckUserArgs) String() string
- func (p *UserServiceCheckUserArgs) Write(oprot thrift.TProtocol) (err error)
- type UserServiceCheckUserResult
- func (p *UserServiceCheckUserResult) BLength() int
- func (p *UserServiceCheckUserResult) DeepEqual(ano *UserServiceCheckUserResult) bool
- func (p *UserServiceCheckUserResult) FastRead(buf []byte) (int, error)
- func (p *UserServiceCheckUserResult) FastReadField0(buf []byte) (int, error)
- func (p *UserServiceCheckUserResult) FastWrite(buf []byte) int
- func (p *UserServiceCheckUserResult) FastWriteNocopy(buf []byte, binaryWriter bthrift.BinaryWriter) int
- func (p *UserServiceCheckUserResult) Field0DeepEqual(src *CheckUserResp) bool
- func (p *UserServiceCheckUserResult) GetResult() interface{}
- func (p *UserServiceCheckUserResult) GetSuccess() (v *CheckUserResp)
- func (p *UserServiceCheckUserResult) IsSetSuccess() bool
- func (p *UserServiceCheckUserResult) Read(iprot thrift.TProtocol) (err error)
- func (p *UserServiceCheckUserResult) ReadField0(iprot thrift.TProtocol) error
- func (p *UserServiceCheckUserResult) SetSuccess(x interface{})
- func (p *UserServiceCheckUserResult) String() string
- func (p *UserServiceCheckUserResult) Write(oprot thrift.TProtocol) (err error)
- type UserServiceClient
- func (p *UserServiceClient) CheckUser(ctx context.Context, req *CheckUserReq) (r *CheckUserResp, err error)
- func (p *UserServiceClient) Client_() thrift.TClient
- func (p *UserServiceClient) CreateUser(ctx context.Context, req *CreateUserReq) (r *CreateUserResp, err error)
- func (p *UserServiceClient) MGetUser(ctx context.Context, req *MGetUserReq) (r *MGetUserResp, err error)
- type UserServiceCreateUserArgs
- func (p *UserServiceCreateUserArgs) BLength() int
- func (p *UserServiceCreateUserArgs) DeepEqual(ano *UserServiceCreateUserArgs) bool
- func (p *UserServiceCreateUserArgs) FastRead(buf []byte) (int, error)
- func (p *UserServiceCreateUserArgs) FastReadField1(buf []byte) (int, error)
- func (p *UserServiceCreateUserArgs) FastWrite(buf []byte) int
- func (p *UserServiceCreateUserArgs) FastWriteNocopy(buf []byte, binaryWriter bthrift.BinaryWriter) int
- func (p *UserServiceCreateUserArgs) Field1DeepEqual(src *CreateUserReq) bool
- func (p *UserServiceCreateUserArgs) GetFirstArgument() interface{}
- func (p *UserServiceCreateUserArgs) GetReq() (v *CreateUserReq)
- func (p *UserServiceCreateUserArgs) IsSetReq() bool
- func (p *UserServiceCreateUserArgs) Read(iprot thrift.TProtocol) (err error)
- func (p *UserServiceCreateUserArgs) ReadField1(iprot thrift.TProtocol) error
- func (p *UserServiceCreateUserArgs) SetReq(val *CreateUserReq)
- func (p *UserServiceCreateUserArgs) String() string
- func (p *UserServiceCreateUserArgs) Write(oprot thrift.TProtocol) (err error)
- type UserServiceCreateUserResult
- func (p *UserServiceCreateUserResult) BLength() int
- func (p *UserServiceCreateUserResult) DeepEqual(ano *UserServiceCreateUserResult) bool
- func (p *UserServiceCreateUserResult) FastRead(buf []byte) (int, error)
- func (p *UserServiceCreateUserResult) FastReadField0(buf []byte) (int, error)
- func (p *UserServiceCreateUserResult) FastWrite(buf []byte) int
- func (p *UserServiceCreateUserResult) FastWriteNocopy(buf []byte, binaryWriter bthrift.BinaryWriter) int
- func (p *UserServiceCreateUserResult) Field0DeepEqual(src *CreateUserResp) bool
- func (p *UserServiceCreateUserResult) GetResult() interface{}
- func (p *UserServiceCreateUserResult) GetSuccess() (v *CreateUserResp)
- func (p *UserServiceCreateUserResult) IsSetSuccess() bool
- func (p *UserServiceCreateUserResult) Read(iprot thrift.TProtocol) (err error)
- func (p *UserServiceCreateUserResult) ReadField0(iprot thrift.TProtocol) error
- func (p *UserServiceCreateUserResult) SetSuccess(x interface{})
- func (p *UserServiceCreateUserResult) String() string
- func (p *UserServiceCreateUserResult) Write(oprot thrift.TProtocol) (err error)
- type UserServiceMGetUserArgs
- func (p *UserServiceMGetUserArgs) BLength() int
- func (p *UserServiceMGetUserArgs) DeepEqual(ano *UserServiceMGetUserArgs) bool
- func (p *UserServiceMGetUserArgs) FastRead(buf []byte) (int, error)
- func (p *UserServiceMGetUserArgs) FastReadField1(buf []byte) (int, error)
- func (p *UserServiceMGetUserArgs) FastWrite(buf []byte) int
- func (p *UserServiceMGetUserArgs) FastWriteNocopy(buf []byte, binaryWriter bthrift.BinaryWriter) int
- func (p *UserServiceMGetUserArgs) Field1DeepEqual(src *MGetUserReq) bool
- func (p *UserServiceMGetUserArgs) GetFirstArgument() interface{}
- func (p *UserServiceMGetUserArgs) GetReq() (v *MGetUserReq)
- func (p *UserServiceMGetUserArgs) IsSetReq() bool
- func (p *UserServiceMGetUserArgs) Read(iprot thrift.TProtocol) (err error)
- func (p *UserServiceMGetUserArgs) ReadField1(iprot thrift.TProtocol) error
- func (p *UserServiceMGetUserArgs) SetReq(val *MGetUserReq)
- func (p *UserServiceMGetUserArgs) String() string
- func (p *UserServiceMGetUserArgs) Write(oprot thrift.TProtocol) (err error)
- type UserServiceMGetUserResult
- func (p *UserServiceMGetUserResult) BLength() int
- func (p *UserServiceMGetUserResult) DeepEqual(ano *UserServiceMGetUserResult) bool
- func (p *UserServiceMGetUserResult) FastRead(buf []byte) (int, error)
- func (p *UserServiceMGetUserResult) FastReadField0(buf []byte) (int, error)
- func (p *UserServiceMGetUserResult) FastWrite(buf []byte) int
- func (p *UserServiceMGetUserResult) FastWriteNocopy(buf []byte, binaryWriter bthrift.BinaryWriter) int
- func (p *UserServiceMGetUserResult) Field0DeepEqual(src *MGetUserResp) bool
- func (p *UserServiceMGetUserResult) GetResult() interface{}
- func (p *UserServiceMGetUserResult) GetSuccess() (v *MGetUserResp)
- func (p *UserServiceMGetUserResult) IsSetSuccess() bool
- func (p *UserServiceMGetUserResult) Read(iprot thrift.TProtocol) (err error)
- func (p *UserServiceMGetUserResult) ReadField0(iprot thrift.TProtocol) error
- func (p *UserServiceMGetUserResult) SetSuccess(x interface{})
- func (p *UserServiceMGetUserResult) String() string
- func (p *UserServiceMGetUserResult) 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 CheckUserResp_BaseResp_DEFAULT *base.BaseResp
View Source
var CreateUserResp_BaseResp_DEFAULT *base.BaseResp
View Source
var KitexUnusedProtection = struct{}{}
KitexUnusedProtection is used to prevent 'imported and not used' error.
View Source
var MGetUserResp_BaseResp_DEFAULT *base.BaseResp
Functions ¶
This section is empty.
Types ¶
type CheckUserReq ¶
type CheckUserReq struct { UserName string `thrift:"UserName,1" json:"UserName"` Password string `thrift:"Password,2" json:"Password"` }
var UserServiceCheckUserArgs_Req_DEFAULT *CheckUserReq
func NewCheckUserReq ¶
func NewCheckUserReq() *CheckUserReq
func (*CheckUserReq) BLength ¶
func (p *CheckUserReq) BLength() int
func (*CheckUserReq) DeepEqual ¶
func (p *CheckUserReq) DeepEqual(ano *CheckUserReq) bool
func (*CheckUserReq) FastReadField1 ¶
func (p *CheckUserReq) FastReadField1(buf []byte) (int, error)
func (*CheckUserReq) FastReadField2 ¶
func (p *CheckUserReq) FastReadField2(buf []byte) (int, error)
func (*CheckUserReq) FastWriteNocopy ¶
func (p *CheckUserReq) FastWriteNocopy(buf []byte, binaryWriter bthrift.BinaryWriter) int
func (*CheckUserReq) Field1DeepEqual ¶
func (p *CheckUserReq) Field1DeepEqual(src string) bool
func (*CheckUserReq) Field2DeepEqual ¶
func (p *CheckUserReq) Field2DeepEqual(src string) bool
func (*CheckUserReq) GetPassword ¶
func (p *CheckUserReq) GetPassword() (v string)
func (*CheckUserReq) GetUserName ¶
func (p *CheckUserReq) GetUserName() (v string)
func (*CheckUserReq) ReadField1 ¶
func (p *CheckUserReq) ReadField1(iprot thrift.TProtocol) error
func (*CheckUserReq) ReadField2 ¶
func (p *CheckUserReq) ReadField2(iprot thrift.TProtocol) error
func (*CheckUserReq) SetPassword ¶
func (p *CheckUserReq) SetPassword(val string)
func (*CheckUserReq) SetUserName ¶
func (p *CheckUserReq) SetUserName(val string)
func (*CheckUserReq) String ¶
func (p *CheckUserReq) String() string
type CheckUserResp ¶
type CheckUserResp struct { UserId int64 `thrift:"UserId,1" json:"UserId"` BaseResp *base.BaseResp `thrift:"BaseResp,255" json:"BaseResp"` }
var UserServiceCheckUserResult_Success_DEFAULT *CheckUserResp
func NewCheckUserResp ¶
func NewCheckUserResp() *CheckUserResp
func (*CheckUserResp) BLength ¶
func (p *CheckUserResp) BLength() int
func (*CheckUserResp) DeepEqual ¶
func (p *CheckUserResp) DeepEqual(ano *CheckUserResp) bool
func (*CheckUserResp) FastReadField1 ¶
func (p *CheckUserResp) FastReadField1(buf []byte) (int, error)
func (*CheckUserResp) FastReadField255 ¶
func (p *CheckUserResp) FastReadField255(buf []byte) (int, error)
func (*CheckUserResp) FastWrite ¶
func (p *CheckUserResp) FastWrite(buf []byte) int
for compatibility
func (*CheckUserResp) FastWriteNocopy ¶
func (p *CheckUserResp) FastWriteNocopy(buf []byte, binaryWriter bthrift.BinaryWriter) int
func (*CheckUserResp) Field1DeepEqual ¶
func (p *CheckUserResp) Field1DeepEqual(src int64) bool
func (*CheckUserResp) Field255DeepEqual ¶
func (p *CheckUserResp) Field255DeepEqual(src *base.BaseResp) bool
func (*CheckUserResp) GetBaseResp ¶
func (p *CheckUserResp) GetBaseResp() (v *base.BaseResp)
func (*CheckUserResp) GetUserId ¶
func (p *CheckUserResp) GetUserId() (v int64)
func (*CheckUserResp) IsSetBaseResp ¶
func (p *CheckUserResp) IsSetBaseResp() bool
func (*CheckUserResp) ReadField1 ¶
func (p *CheckUserResp) ReadField1(iprot thrift.TProtocol) error
func (*CheckUserResp) ReadField255 ¶
func (p *CheckUserResp) ReadField255(iprot thrift.TProtocol) error
func (*CheckUserResp) SetBaseResp ¶
func (p *CheckUserResp) SetBaseResp(val *base.BaseResp)
func (*CheckUserResp) SetUserId ¶
func (p *CheckUserResp) SetUserId(val int64)
func (*CheckUserResp) String ¶
func (p *CheckUserResp) String() string
type CreateUserReq ¶
type CreateUserReq struct { UserName string `thrift:"UserName,1" json:"UserName"` Password string `thrift:"Password,2" json:"Password"` }
var UserServiceCreateUserArgs_Req_DEFAULT *CreateUserReq
func NewCreateUserReq ¶
func NewCreateUserReq() *CreateUserReq
func (*CreateUserReq) BLength ¶
func (p *CreateUserReq) BLength() int
func (*CreateUserReq) DeepEqual ¶
func (p *CreateUserReq) DeepEqual(ano *CreateUserReq) bool
func (*CreateUserReq) FastReadField1 ¶
func (p *CreateUserReq) FastReadField1(buf []byte) (int, error)
func (*CreateUserReq) FastReadField2 ¶
func (p *CreateUserReq) FastReadField2(buf []byte) (int, error)
func (*CreateUserReq) FastWrite ¶
func (p *CreateUserReq) FastWrite(buf []byte) int
for compatibility
func (*CreateUserReq) FastWriteNocopy ¶
func (p *CreateUserReq) FastWriteNocopy(buf []byte, binaryWriter bthrift.BinaryWriter) int
func (*CreateUserReq) Field1DeepEqual ¶
func (p *CreateUserReq) Field1DeepEqual(src string) bool
func (*CreateUserReq) Field2DeepEqual ¶
func (p *CreateUserReq) Field2DeepEqual(src string) bool
func (*CreateUserReq) GetPassword ¶
func (p *CreateUserReq) GetPassword() (v string)
func (*CreateUserReq) GetUserName ¶
func (p *CreateUserReq) GetUserName() (v string)
func (*CreateUserReq) ReadField1 ¶
func (p *CreateUserReq) ReadField1(iprot thrift.TProtocol) error
func (*CreateUserReq) ReadField2 ¶
func (p *CreateUserReq) ReadField2(iprot thrift.TProtocol) error
func (*CreateUserReq) SetPassword ¶
func (p *CreateUserReq) SetPassword(val string)
func (*CreateUserReq) SetUserName ¶
func (p *CreateUserReq) SetUserName(val string)
func (*CreateUserReq) String ¶
func (p *CreateUserReq) String() string
type CreateUserResp ¶
var UserServiceCreateUserResult_Success_DEFAULT *CreateUserResp
func NewCreateUserResp ¶
func NewCreateUserResp() *CreateUserResp
func (*CreateUserResp) BLength ¶
func (p *CreateUserResp) BLength() int
func (*CreateUserResp) DeepEqual ¶
func (p *CreateUserResp) DeepEqual(ano *CreateUserResp) bool
func (*CreateUserResp) FastReadField255 ¶
func (p *CreateUserResp) FastReadField255(buf []byte) (int, error)
func (*CreateUserResp) FastWrite ¶
func (p *CreateUserResp) FastWrite(buf []byte) int
for compatibility
func (*CreateUserResp) FastWriteNocopy ¶
func (p *CreateUserResp) FastWriteNocopy(buf []byte, binaryWriter bthrift.BinaryWriter) int
func (*CreateUserResp) Field255DeepEqual ¶
func (p *CreateUserResp) Field255DeepEqual(src *base.BaseResp) bool
func (*CreateUserResp) GetBaseResp ¶
func (p *CreateUserResp) GetBaseResp() (v *base.BaseResp)
func (*CreateUserResp) IsSetBaseResp ¶
func (p *CreateUserResp) IsSetBaseResp() bool
func (*CreateUserResp) ReadField255 ¶
func (p *CreateUserResp) ReadField255(iprot thrift.TProtocol) error
func (*CreateUserResp) SetBaseResp ¶
func (p *CreateUserResp) SetBaseResp(val *base.BaseResp)
func (*CreateUserResp) String ¶
func (p *CreateUserResp) String() string
type MGetUserReq ¶
type MGetUserReq struct {
Ids []int64 `thrift:"Ids,1" json:"Ids"`
}
var UserServiceMGetUserArgs_Req_DEFAULT *MGetUserReq
func NewMGetUserReq ¶
func NewMGetUserReq() *MGetUserReq
func (*MGetUserReq) BLength ¶
func (p *MGetUserReq) BLength() int
func (*MGetUserReq) DeepEqual ¶
func (p *MGetUserReq) DeepEqual(ano *MGetUserReq) bool
func (*MGetUserReq) FastReadField1 ¶
func (p *MGetUserReq) FastReadField1(buf []byte) (int, error)
func (*MGetUserReq) FastWriteNocopy ¶
func (p *MGetUserReq) FastWriteNocopy(buf []byte, binaryWriter bthrift.BinaryWriter) int
func (*MGetUserReq) Field1DeepEqual ¶
func (p *MGetUserReq) Field1DeepEqual(src []int64) bool
func (*MGetUserReq) GetIds ¶
func (p *MGetUserReq) GetIds() (v []int64)
func (*MGetUserReq) ReadField1 ¶
func (p *MGetUserReq) ReadField1(iprot thrift.TProtocol) error
func (*MGetUserReq) SetIds ¶
func (p *MGetUserReq) SetIds(val []int64)
func (*MGetUserReq) String ¶
func (p *MGetUserReq) String() string
type MGetUserResp ¶
type MGetUserResp struct { Users []*User `thrift:"Users,1" json:"Users"` BaseResp *base.BaseResp `thrift:"BaseResp,255" json:"BaseResp"` }
var UserServiceMGetUserResult_Success_DEFAULT *MGetUserResp
func NewMGetUserResp ¶
func NewMGetUserResp() *MGetUserResp
func (*MGetUserResp) BLength ¶
func (p *MGetUserResp) BLength() int
func (*MGetUserResp) DeepEqual ¶
func (p *MGetUserResp) DeepEqual(ano *MGetUserResp) bool
func (*MGetUserResp) FastReadField1 ¶
func (p *MGetUserResp) FastReadField1(buf []byte) (int, error)
func (*MGetUserResp) FastReadField255 ¶
func (p *MGetUserResp) FastReadField255(buf []byte) (int, error)
func (*MGetUserResp) FastWriteNocopy ¶
func (p *MGetUserResp) FastWriteNocopy(buf []byte, binaryWriter bthrift.BinaryWriter) int
func (*MGetUserResp) Field1DeepEqual ¶
func (p *MGetUserResp) Field1DeepEqual(src []*User) bool
func (*MGetUserResp) Field255DeepEqual ¶
func (p *MGetUserResp) Field255DeepEqual(src *base.BaseResp) bool
func (*MGetUserResp) GetBaseResp ¶
func (p *MGetUserResp) GetBaseResp() (v *base.BaseResp)
func (*MGetUserResp) GetUsers ¶
func (p *MGetUserResp) GetUsers() (v []*User)
func (*MGetUserResp) IsSetBaseResp ¶
func (p *MGetUserResp) IsSetBaseResp() bool
func (*MGetUserResp) ReadField1 ¶
func (p *MGetUserResp) ReadField1(iprot thrift.TProtocol) error
func (*MGetUserResp) ReadField255 ¶
func (p *MGetUserResp) ReadField255(iprot thrift.TProtocol) error
func (*MGetUserResp) SetBaseResp ¶
func (p *MGetUserResp) SetBaseResp(val *base.BaseResp)
func (*MGetUserResp) SetUsers ¶
func (p *MGetUserResp) SetUsers(val []*User)
func (*MGetUserResp) String ¶
func (p *MGetUserResp) String() string
type User ¶
type User struct { UserId int64 `thrift:"UserId,1" json:"UserId"` UserName string `thrift:"UserName,2" json:"UserName"` }
func (*User) FastWriteNocopy ¶
func (p *User) FastWriteNocopy(buf []byte, binaryWriter bthrift.BinaryWriter) int
func (*User) Field1DeepEqual ¶
func (*User) Field2DeepEqual ¶
func (*User) GetUserName ¶
func (*User) SetUserName ¶
type UserService ¶
type UserService interface { CreateUser(ctx context.Context, req *CreateUserReq) (r *CreateUserResp, err error) MGetUser(ctx context.Context, req *MGetUserReq) (r *MGetUserResp, err error) CheckUser(ctx context.Context, req *CheckUserReq) (r *CheckUserResp, err error) }
type UserServiceCheckUserArgs ¶
type UserServiceCheckUserArgs struct {
Req *CheckUserReq `thrift:"req,1" json:"req"`
}
func NewUserServiceCheckUserArgs ¶
func NewUserServiceCheckUserArgs() *UserServiceCheckUserArgs
func (*UserServiceCheckUserArgs) BLength ¶
func (p *UserServiceCheckUserArgs) BLength() int
func (*UserServiceCheckUserArgs) DeepEqual ¶
func (p *UserServiceCheckUserArgs) DeepEqual(ano *UserServiceCheckUserArgs) bool
func (*UserServiceCheckUserArgs) FastRead ¶
func (p *UserServiceCheckUserArgs) FastRead(buf []byte) (int, error)
func (*UserServiceCheckUserArgs) FastReadField1 ¶
func (p *UserServiceCheckUserArgs) FastReadField1(buf []byte) (int, error)
func (*UserServiceCheckUserArgs) FastWrite ¶
func (p *UserServiceCheckUserArgs) FastWrite(buf []byte) int
for compatibility
func (*UserServiceCheckUserArgs) FastWriteNocopy ¶
func (p *UserServiceCheckUserArgs) FastWriteNocopy(buf []byte, binaryWriter bthrift.BinaryWriter) int
func (*UserServiceCheckUserArgs) Field1DeepEqual ¶
func (p *UserServiceCheckUserArgs) Field1DeepEqual(src *CheckUserReq) bool
func (*UserServiceCheckUserArgs) GetFirstArgument ¶
func (p *UserServiceCheckUserArgs) GetFirstArgument() interface{}
func (*UserServiceCheckUserArgs) GetReq ¶
func (p *UserServiceCheckUserArgs) GetReq() (v *CheckUserReq)
func (*UserServiceCheckUserArgs) IsSetReq ¶
func (p *UserServiceCheckUserArgs) IsSetReq() bool
func (*UserServiceCheckUserArgs) Read ¶
func (p *UserServiceCheckUserArgs) Read(iprot thrift.TProtocol) (err error)
func (*UserServiceCheckUserArgs) ReadField1 ¶
func (p *UserServiceCheckUserArgs) ReadField1(iprot thrift.TProtocol) error
func (*UserServiceCheckUserArgs) SetReq ¶
func (p *UserServiceCheckUserArgs) SetReq(val *CheckUserReq)
func (*UserServiceCheckUserArgs) String ¶
func (p *UserServiceCheckUserArgs) String() string
type UserServiceCheckUserResult ¶
type UserServiceCheckUserResult struct {
Success *CheckUserResp `thrift:"success,0" json:"success,omitempty"`
}
func NewUserServiceCheckUserResult ¶
func NewUserServiceCheckUserResult() *UserServiceCheckUserResult
func (*UserServiceCheckUserResult) BLength ¶
func (p *UserServiceCheckUserResult) BLength() int
func (*UserServiceCheckUserResult) DeepEqual ¶
func (p *UserServiceCheckUserResult) DeepEqual(ano *UserServiceCheckUserResult) bool
func (*UserServiceCheckUserResult) FastRead ¶
func (p *UserServiceCheckUserResult) FastRead(buf []byte) (int, error)
func (*UserServiceCheckUserResult) FastReadField0 ¶
func (p *UserServiceCheckUserResult) FastReadField0(buf []byte) (int, error)
func (*UserServiceCheckUserResult) FastWrite ¶
func (p *UserServiceCheckUserResult) FastWrite(buf []byte) int
for compatibility
func (*UserServiceCheckUserResult) FastWriteNocopy ¶
func (p *UserServiceCheckUserResult) FastWriteNocopy(buf []byte, binaryWriter bthrift.BinaryWriter) int
func (*UserServiceCheckUserResult) Field0DeepEqual ¶
func (p *UserServiceCheckUserResult) Field0DeepEqual(src *CheckUserResp) bool
func (*UserServiceCheckUserResult) GetResult ¶
func (p *UserServiceCheckUserResult) GetResult() interface{}
func (*UserServiceCheckUserResult) GetSuccess ¶
func (p *UserServiceCheckUserResult) GetSuccess() (v *CheckUserResp)
func (*UserServiceCheckUserResult) IsSetSuccess ¶
func (p *UserServiceCheckUserResult) IsSetSuccess() bool
func (*UserServiceCheckUserResult) Read ¶
func (p *UserServiceCheckUserResult) Read(iprot thrift.TProtocol) (err error)
func (*UserServiceCheckUserResult) ReadField0 ¶
func (p *UserServiceCheckUserResult) ReadField0(iprot thrift.TProtocol) error
func (*UserServiceCheckUserResult) SetSuccess ¶
func (p *UserServiceCheckUserResult) SetSuccess(x interface{})
func (*UserServiceCheckUserResult) String ¶
func (p *UserServiceCheckUserResult) String() string
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) CheckUser ¶
func (p *UserServiceClient) CheckUser(ctx context.Context, req *CheckUserReq) (r *CheckUserResp, err error)
func (*UserServiceClient) Client_ ¶
func (p *UserServiceClient) Client_() thrift.TClient
func (*UserServiceClient) CreateUser ¶
func (p *UserServiceClient) CreateUser(ctx context.Context, req *CreateUserReq) (r *CreateUserResp, err error)
func (*UserServiceClient) MGetUser ¶
func (p *UserServiceClient) MGetUser(ctx context.Context, req *MGetUserReq) (r *MGetUserResp, err error)
type UserServiceCreateUserArgs ¶
type UserServiceCreateUserArgs struct {
Req *CreateUserReq `thrift:"req,1" json:"req"`
}
func NewUserServiceCreateUserArgs ¶
func NewUserServiceCreateUserArgs() *UserServiceCreateUserArgs
func (*UserServiceCreateUserArgs) BLength ¶
func (p *UserServiceCreateUserArgs) BLength() int
func (*UserServiceCreateUserArgs) DeepEqual ¶
func (p *UserServiceCreateUserArgs) DeepEqual(ano *UserServiceCreateUserArgs) bool
func (*UserServiceCreateUserArgs) FastRead ¶
func (p *UserServiceCreateUserArgs) FastRead(buf []byte) (int, error)
func (*UserServiceCreateUserArgs) FastReadField1 ¶
func (p *UserServiceCreateUserArgs) FastReadField1(buf []byte) (int, error)
func (*UserServiceCreateUserArgs) FastWrite ¶
func (p *UserServiceCreateUserArgs) FastWrite(buf []byte) int
for compatibility
func (*UserServiceCreateUserArgs) FastWriteNocopy ¶
func (p *UserServiceCreateUserArgs) FastWriteNocopy(buf []byte, binaryWriter bthrift.BinaryWriter) int
func (*UserServiceCreateUserArgs) Field1DeepEqual ¶
func (p *UserServiceCreateUserArgs) Field1DeepEqual(src *CreateUserReq) bool
func (*UserServiceCreateUserArgs) GetFirstArgument ¶
func (p *UserServiceCreateUserArgs) GetFirstArgument() interface{}
func (*UserServiceCreateUserArgs) GetReq ¶
func (p *UserServiceCreateUserArgs) GetReq() (v *CreateUserReq)
func (*UserServiceCreateUserArgs) IsSetReq ¶
func (p *UserServiceCreateUserArgs) IsSetReq() bool
func (*UserServiceCreateUserArgs) Read ¶
func (p *UserServiceCreateUserArgs) Read(iprot thrift.TProtocol) (err error)
func (*UserServiceCreateUserArgs) ReadField1 ¶
func (p *UserServiceCreateUserArgs) ReadField1(iprot thrift.TProtocol) error
func (*UserServiceCreateUserArgs) SetReq ¶
func (p *UserServiceCreateUserArgs) SetReq(val *CreateUserReq)
func (*UserServiceCreateUserArgs) String ¶
func (p *UserServiceCreateUserArgs) String() string
type UserServiceCreateUserResult ¶
type UserServiceCreateUserResult struct {
Success *CreateUserResp `thrift:"success,0" json:"success,omitempty"`
}
func NewUserServiceCreateUserResult ¶
func NewUserServiceCreateUserResult() *UserServiceCreateUserResult
func (*UserServiceCreateUserResult) BLength ¶
func (p *UserServiceCreateUserResult) BLength() int
func (*UserServiceCreateUserResult) DeepEqual ¶
func (p *UserServiceCreateUserResult) DeepEqual(ano *UserServiceCreateUserResult) bool
func (*UserServiceCreateUserResult) FastRead ¶
func (p *UserServiceCreateUserResult) FastRead(buf []byte) (int, error)
func (*UserServiceCreateUserResult) FastReadField0 ¶
func (p *UserServiceCreateUserResult) FastReadField0(buf []byte) (int, error)
func (*UserServiceCreateUserResult) FastWrite ¶
func (p *UserServiceCreateUserResult) FastWrite(buf []byte) int
for compatibility
func (*UserServiceCreateUserResult) FastWriteNocopy ¶
func (p *UserServiceCreateUserResult) FastWriteNocopy(buf []byte, binaryWriter bthrift.BinaryWriter) int
func (*UserServiceCreateUserResult) Field0DeepEqual ¶
func (p *UserServiceCreateUserResult) Field0DeepEqual(src *CreateUserResp) bool
func (*UserServiceCreateUserResult) GetResult ¶
func (p *UserServiceCreateUserResult) GetResult() interface{}
func (*UserServiceCreateUserResult) GetSuccess ¶
func (p *UserServiceCreateUserResult) GetSuccess() (v *CreateUserResp)
func (*UserServiceCreateUserResult) IsSetSuccess ¶
func (p *UserServiceCreateUserResult) IsSetSuccess() bool
func (*UserServiceCreateUserResult) Read ¶
func (p *UserServiceCreateUserResult) Read(iprot thrift.TProtocol) (err error)
func (*UserServiceCreateUserResult) ReadField0 ¶
func (p *UserServiceCreateUserResult) ReadField0(iprot thrift.TProtocol) error
func (*UserServiceCreateUserResult) SetSuccess ¶
func (p *UserServiceCreateUserResult) SetSuccess(x interface{})
func (*UserServiceCreateUserResult) String ¶
func (p *UserServiceCreateUserResult) String() string
type UserServiceMGetUserArgs ¶
type UserServiceMGetUserArgs struct {
Req *MGetUserReq `thrift:"req,1" json:"req"`
}
func NewUserServiceMGetUserArgs ¶
func NewUserServiceMGetUserArgs() *UserServiceMGetUserArgs
func (*UserServiceMGetUserArgs) BLength ¶
func (p *UserServiceMGetUserArgs) BLength() int
func (*UserServiceMGetUserArgs) DeepEqual ¶
func (p *UserServiceMGetUserArgs) DeepEqual(ano *UserServiceMGetUserArgs) bool
func (*UserServiceMGetUserArgs) FastRead ¶
func (p *UserServiceMGetUserArgs) FastRead(buf []byte) (int, error)
func (*UserServiceMGetUserArgs) FastReadField1 ¶
func (p *UserServiceMGetUserArgs) FastReadField1(buf []byte) (int, error)
func (*UserServiceMGetUserArgs) FastWrite ¶
func (p *UserServiceMGetUserArgs) FastWrite(buf []byte) int
for compatibility
func (*UserServiceMGetUserArgs) FastWriteNocopy ¶
func (p *UserServiceMGetUserArgs) FastWriteNocopy(buf []byte, binaryWriter bthrift.BinaryWriter) int
func (*UserServiceMGetUserArgs) Field1DeepEqual ¶
func (p *UserServiceMGetUserArgs) Field1DeepEqual(src *MGetUserReq) bool
func (*UserServiceMGetUserArgs) GetFirstArgument ¶
func (p *UserServiceMGetUserArgs) GetFirstArgument() interface{}
func (*UserServiceMGetUserArgs) GetReq ¶
func (p *UserServiceMGetUserArgs) GetReq() (v *MGetUserReq)
func (*UserServiceMGetUserArgs) IsSetReq ¶
func (p *UserServiceMGetUserArgs) IsSetReq() bool
func (*UserServiceMGetUserArgs) Read ¶
func (p *UserServiceMGetUserArgs) Read(iprot thrift.TProtocol) (err error)
func (*UserServiceMGetUserArgs) ReadField1 ¶
func (p *UserServiceMGetUserArgs) ReadField1(iprot thrift.TProtocol) error
func (*UserServiceMGetUserArgs) SetReq ¶
func (p *UserServiceMGetUserArgs) SetReq(val *MGetUserReq)
func (*UserServiceMGetUserArgs) String ¶
func (p *UserServiceMGetUserArgs) String() string
type UserServiceMGetUserResult ¶
type UserServiceMGetUserResult struct {
Success *MGetUserResp `thrift:"success,0" json:"success,omitempty"`
}
func NewUserServiceMGetUserResult ¶
func NewUserServiceMGetUserResult() *UserServiceMGetUserResult
func (*UserServiceMGetUserResult) BLength ¶
func (p *UserServiceMGetUserResult) BLength() int
func (*UserServiceMGetUserResult) DeepEqual ¶
func (p *UserServiceMGetUserResult) DeepEqual(ano *UserServiceMGetUserResult) bool
func (*UserServiceMGetUserResult) FastRead ¶
func (p *UserServiceMGetUserResult) FastRead(buf []byte) (int, error)
func (*UserServiceMGetUserResult) FastReadField0 ¶
func (p *UserServiceMGetUserResult) FastReadField0(buf []byte) (int, error)
func (*UserServiceMGetUserResult) FastWrite ¶
func (p *UserServiceMGetUserResult) FastWrite(buf []byte) int
for compatibility
func (*UserServiceMGetUserResult) FastWriteNocopy ¶
func (p *UserServiceMGetUserResult) FastWriteNocopy(buf []byte, binaryWriter bthrift.BinaryWriter) int
func (*UserServiceMGetUserResult) Field0DeepEqual ¶
func (p *UserServiceMGetUserResult) Field0DeepEqual(src *MGetUserResp) bool
func (*UserServiceMGetUserResult) GetResult ¶
func (p *UserServiceMGetUserResult) GetResult() interface{}
func (*UserServiceMGetUserResult) GetSuccess ¶
func (p *UserServiceMGetUserResult) GetSuccess() (v *MGetUserResp)
func (*UserServiceMGetUserResult) IsSetSuccess ¶
func (p *UserServiceMGetUserResult) IsSetSuccess() bool
func (*UserServiceMGetUserResult) Read ¶
func (p *UserServiceMGetUserResult) Read(iprot thrift.TProtocol) (err error)
func (*UserServiceMGetUserResult) ReadField0 ¶
func (p *UserServiceMGetUserResult) ReadField0(iprot thrift.TProtocol) error
func (*UserServiceMGetUserResult) SetSuccess ¶
func (p *UserServiceMGetUserResult) SetSuccess(x interface{})
func (*UserServiceMGetUserResult) String ¶
func (p *UserServiceMGetUserResult) 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.