demouser

package
v0.0.0-...-2486f02 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jul 1, 2024 License: Apache-2.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var KitexUnusedProtection = struct{}{}

KitexUnusedProtection is used to prevent 'imported and not used' error.

Functions

This section is empty.

Types

type BaseResp

type BaseResp struct {
	StatusCode    int64  `thrift:"status_code,1" json:"status_code"`
	StatusMessage string `thrift:"status_message,2" json:"status_message"`
	ServiceTime   int64  `thrift:"service_time,3" json:"service_time"`
}
var CheckUserResponse_BaseResp_DEFAULT *BaseResp
var CreateUserResponse_BaseResp_DEFAULT *BaseResp
var MGetUserResponse_BaseResp_DEFAULT *BaseResp

func NewBaseResp

func NewBaseResp() *BaseResp

func (*BaseResp) BLength

func (p *BaseResp) BLength() int

func (*BaseResp) DeepEqual

func (p *BaseResp) DeepEqual(ano *BaseResp) bool

func (*BaseResp) FastRead

func (p *BaseResp) FastRead(buf []byte) (int, error)

func (*BaseResp) FastReadField1

func (p *BaseResp) FastReadField1(buf []byte) (int, error)

func (*BaseResp) FastReadField2

func (p *BaseResp) FastReadField2(buf []byte) (int, error)

func (*BaseResp) FastReadField3

func (p *BaseResp) FastReadField3(buf []byte) (int, error)

func (*BaseResp) FastWrite

func (p *BaseResp) FastWrite(buf []byte) int

for compatibility

func (*BaseResp) FastWriteNocopy

func (p *BaseResp) FastWriteNocopy(buf []byte, binaryWriter bthrift.BinaryWriter) int

func (*BaseResp) Field1DeepEqual

func (p *BaseResp) Field1DeepEqual(src int64) bool

func (*BaseResp) Field2DeepEqual

func (p *BaseResp) Field2DeepEqual(src string) bool

func (*BaseResp) Field3DeepEqual

func (p *BaseResp) Field3DeepEqual(src int64) bool

func (*BaseResp) GetServiceTime

func (p *BaseResp) GetServiceTime() (v int64)

func (*BaseResp) GetStatusCode

func (p *BaseResp) GetStatusCode() (v int64)

func (*BaseResp) GetStatusMessage

func (p *BaseResp) GetStatusMessage() (v string)

func (*BaseResp) IsValid

func (p *BaseResp) IsValid() error

func (*BaseResp) Read

func (p *BaseResp) Read(iprot thrift.TProtocol) (err error)

func (*BaseResp) ReadField1

func (p *BaseResp) ReadField1(iprot thrift.TProtocol) error

func (*BaseResp) ReadField2

func (p *BaseResp) ReadField2(iprot thrift.TProtocol) error

func (*BaseResp) ReadField3

func (p *BaseResp) ReadField3(iprot thrift.TProtocol) error

func (*BaseResp) SetServiceTime

func (p *BaseResp) SetServiceTime(val int64)

func (*BaseResp) SetStatusCode

func (p *BaseResp) SetStatusCode(val int64)

func (*BaseResp) SetStatusMessage

func (p *BaseResp) SetStatusMessage(val string)

func (*BaseResp) String

func (p *BaseResp) String() string

func (*BaseResp) Write

func (p *BaseResp) Write(oprot thrift.TProtocol) (err error)

type CheckUserRequest

type CheckUserRequest struct {
	Username string `thrift:"username,1" json:"username"`
	Password string `thrift:"password,2" json:"password"`
}
var UserServiceCheckUserArgs_Req_DEFAULT *CheckUserRequest

func NewCheckUserRequest

func NewCheckUserRequest() *CheckUserRequest

func (*CheckUserRequest) BLength

func (p *CheckUserRequest) BLength() int

func (*CheckUserRequest) DeepEqual

func (p *CheckUserRequest) DeepEqual(ano *CheckUserRequest) bool

func (*CheckUserRequest) FastRead

func (p *CheckUserRequest) FastRead(buf []byte) (int, error)

func (*CheckUserRequest) FastReadField1

func (p *CheckUserRequest) FastReadField1(buf []byte) (int, error)

func (*CheckUserRequest) FastReadField2

func (p *CheckUserRequest) FastReadField2(buf []byte) (int, error)

func (*CheckUserRequest) FastWrite

func (p *CheckUserRequest) FastWrite(buf []byte) int

for compatibility

func (*CheckUserRequest) FastWriteNocopy

func (p *CheckUserRequest) FastWriteNocopy(buf []byte, binaryWriter bthrift.BinaryWriter) int

func (*CheckUserRequest) Field1DeepEqual

func (p *CheckUserRequest) Field1DeepEqual(src string) bool

func (*CheckUserRequest) Field2DeepEqual

func (p *CheckUserRequest) Field2DeepEqual(src string) bool

func (*CheckUserRequest) GetPassword

func (p *CheckUserRequest) GetPassword() (v string)

func (*CheckUserRequest) GetUsername

func (p *CheckUserRequest) GetUsername() (v string)

func (*CheckUserRequest) IsValid

func (p *CheckUserRequest) IsValid() error

func (*CheckUserRequest) Read

func (p *CheckUserRequest) Read(iprot thrift.TProtocol) (err error)

func (*CheckUserRequest) ReadField1

func (p *CheckUserRequest) ReadField1(iprot thrift.TProtocol) error

func (*CheckUserRequest) ReadField2

func (p *CheckUserRequest) ReadField2(iprot thrift.TProtocol) error

func (*CheckUserRequest) SetPassword

func (p *CheckUserRequest) SetPassword(val string)

func (*CheckUserRequest) SetUsername

func (p *CheckUserRequest) SetUsername(val string)

func (*CheckUserRequest) String

func (p *CheckUserRequest) String() string

func (*CheckUserRequest) Write

func (p *CheckUserRequest) Write(oprot thrift.TProtocol) (err error)

type CheckUserResponse

type CheckUserResponse struct {
	UserId   int64     `thrift:"user_id,1" json:"user_id"`
	BaseResp *BaseResp `thrift:"base_resp,2" json:"base_resp"`
}
var UserServiceCheckUserResult_Success_DEFAULT *CheckUserResponse

func NewCheckUserResponse

func NewCheckUserResponse() *CheckUserResponse

func (*CheckUserResponse) BLength

func (p *CheckUserResponse) BLength() int

func (*CheckUserResponse) DeepEqual

func (p *CheckUserResponse) DeepEqual(ano *CheckUserResponse) bool

func (*CheckUserResponse) FastRead

func (p *CheckUserResponse) FastRead(buf []byte) (int, error)

func (*CheckUserResponse) FastReadField1

func (p *CheckUserResponse) FastReadField1(buf []byte) (int, error)

func (*CheckUserResponse) FastReadField2

func (p *CheckUserResponse) FastReadField2(buf []byte) (int, error)

func (*CheckUserResponse) FastWrite

func (p *CheckUserResponse) FastWrite(buf []byte) int

for compatibility

func (*CheckUserResponse) FastWriteNocopy

func (p *CheckUserResponse) FastWriteNocopy(buf []byte, binaryWriter bthrift.BinaryWriter) int

func (*CheckUserResponse) Field1DeepEqual

func (p *CheckUserResponse) Field1DeepEqual(src int64) bool

func (*CheckUserResponse) Field2DeepEqual

func (p *CheckUserResponse) Field2DeepEqual(src *BaseResp) bool

func (*CheckUserResponse) GetBaseResp

func (p *CheckUserResponse) GetBaseResp() (v *BaseResp)

func (*CheckUserResponse) GetUserId

func (p *CheckUserResponse) GetUserId() (v int64)

func (*CheckUserResponse) IsSetBaseResp

func (p *CheckUserResponse) IsSetBaseResp() bool

func (*CheckUserResponse) IsValid

func (p *CheckUserResponse) IsValid() error

func (*CheckUserResponse) Read

func (p *CheckUserResponse) Read(iprot thrift.TProtocol) (err error)

func (*CheckUserResponse) ReadField1

func (p *CheckUserResponse) ReadField1(iprot thrift.TProtocol) error

func (*CheckUserResponse) ReadField2

func (p *CheckUserResponse) ReadField2(iprot thrift.TProtocol) error

func (*CheckUserResponse) SetBaseResp

func (p *CheckUserResponse) SetBaseResp(val *BaseResp)

func (*CheckUserResponse) SetUserId

func (p *CheckUserResponse) SetUserId(val int64)

func (*CheckUserResponse) String

func (p *CheckUserResponse) String() string

func (*CheckUserResponse) Write

func (p *CheckUserResponse) Write(oprot thrift.TProtocol) (err error)

type CreateUserRequest

type CreateUserRequest struct {
	Username string `thrift:"username,1" json:"username"`
	Password string `thrift:"password,2" json:"password"`
}
var UserServiceCreateUserArgs_Req_DEFAULT *CreateUserRequest

func NewCreateUserRequest

func NewCreateUserRequest() *CreateUserRequest

func (*CreateUserRequest) BLength

func (p *CreateUserRequest) BLength() int

func (*CreateUserRequest) DeepEqual

func (p *CreateUserRequest) DeepEqual(ano *CreateUserRequest) bool

func (*CreateUserRequest) FastRead

func (p *CreateUserRequest) FastRead(buf []byte) (int, error)

func (*CreateUserRequest) FastReadField1

func (p *CreateUserRequest) FastReadField1(buf []byte) (int, error)

func (*CreateUserRequest) FastReadField2

func (p *CreateUserRequest) FastReadField2(buf []byte) (int, error)

func (*CreateUserRequest) FastWrite

func (p *CreateUserRequest) FastWrite(buf []byte) int

for compatibility

func (*CreateUserRequest) FastWriteNocopy

func (p *CreateUserRequest) FastWriteNocopy(buf []byte, binaryWriter bthrift.BinaryWriter) int

func (*CreateUserRequest) Field1DeepEqual

func (p *CreateUserRequest) Field1DeepEqual(src string) bool

func (*CreateUserRequest) Field2DeepEqual

func (p *CreateUserRequest) Field2DeepEqual(src string) bool

func (*CreateUserRequest) GetPassword

func (p *CreateUserRequest) GetPassword() (v string)

func (*CreateUserRequest) GetUsername

func (p *CreateUserRequest) GetUsername() (v string)

func (*CreateUserRequest) IsValid

func (p *CreateUserRequest) IsValid() error

func (*CreateUserRequest) Read

func (p *CreateUserRequest) Read(iprot thrift.TProtocol) (err error)

func (*CreateUserRequest) ReadField1

func (p *CreateUserRequest) ReadField1(iprot thrift.TProtocol) error

func (*CreateUserRequest) ReadField2

func (p *CreateUserRequest) ReadField2(iprot thrift.TProtocol) error

func (*CreateUserRequest) SetPassword

func (p *CreateUserRequest) SetPassword(val string)

func (*CreateUserRequest) SetUsername

func (p *CreateUserRequest) SetUsername(val string)

func (*CreateUserRequest) String

func (p *CreateUserRequest) String() string

func (*CreateUserRequest) Write

func (p *CreateUserRequest) Write(oprot thrift.TProtocol) (err error)

type CreateUserResponse

type CreateUserResponse struct {
	BaseResp *BaseResp `thrift:"base_resp,1" json:"base_resp"`
}
var UserServiceCreateUserResult_Success_DEFAULT *CreateUserResponse

func NewCreateUserResponse

func NewCreateUserResponse() *CreateUserResponse

func (*CreateUserResponse) BLength

func (p *CreateUserResponse) BLength() int

func (*CreateUserResponse) DeepEqual

func (p *CreateUserResponse) DeepEqual(ano *CreateUserResponse) bool

func (*CreateUserResponse) FastRead

func (p *CreateUserResponse) FastRead(buf []byte) (int, error)

func (*CreateUserResponse) FastReadField1

func (p *CreateUserResponse) FastReadField1(buf []byte) (int, error)

func (*CreateUserResponse) FastWrite

func (p *CreateUserResponse) FastWrite(buf []byte) int

for compatibility

func (*CreateUserResponse) FastWriteNocopy

func (p *CreateUserResponse) FastWriteNocopy(buf []byte, binaryWriter bthrift.BinaryWriter) int

func (*CreateUserResponse) Field1DeepEqual

func (p *CreateUserResponse) Field1DeepEqual(src *BaseResp) bool

func (*CreateUserResponse) GetBaseResp

func (p *CreateUserResponse) GetBaseResp() (v *BaseResp)

func (*CreateUserResponse) IsSetBaseResp

func (p *CreateUserResponse) IsSetBaseResp() bool

func (*CreateUserResponse) IsValid

func (p *CreateUserResponse) IsValid() error

func (*CreateUserResponse) Read

func (p *CreateUserResponse) Read(iprot thrift.TProtocol) (err error)

func (*CreateUserResponse) ReadField1

func (p *CreateUserResponse) ReadField1(iprot thrift.TProtocol) error

func (*CreateUserResponse) SetBaseResp

func (p *CreateUserResponse) SetBaseResp(val *BaseResp)

func (*CreateUserResponse) String

func (p *CreateUserResponse) String() string

func (*CreateUserResponse) Write

func (p *CreateUserResponse) Write(oprot thrift.TProtocol) (err error)

type ErrCode

type ErrCode int64
const (
	ErrCode_SuccessCode                ErrCode = 0
	ErrCode_ServiceErrCode             ErrCode = 10001
	ErrCode_ParamErrCode               ErrCode = 10002
	ErrCode_UserAlreadyExistErrCode    ErrCode = 10003
	ErrCode_AuthorizationFailedErrCode ErrCode = 10004
)

func ErrCodeFromString

func ErrCodeFromString(s string) (ErrCode, error)

func ErrCodePtr

func ErrCodePtr(v ErrCode) *ErrCode

func (*ErrCode) Scan

func (p *ErrCode) Scan(value interface{}) (err error)

func (ErrCode) String

func (p ErrCode) String() string

func (*ErrCode) Value

func (p *ErrCode) Value() (driver.Value, error)

type MGetUserRequest

type MGetUserRequest struct {
	UserIds []int64 `thrift:"user_ids,1" json:"user_ids"`
}
var UserServiceMGetUserArgs_Req_DEFAULT *MGetUserRequest

func NewMGetUserRequest

func NewMGetUserRequest() *MGetUserRequest

func (*MGetUserRequest) BLength

func (p *MGetUserRequest) BLength() int

func (*MGetUserRequest) DeepEqual

func (p *MGetUserRequest) DeepEqual(ano *MGetUserRequest) bool

func (*MGetUserRequest) FastRead

func (p *MGetUserRequest) FastRead(buf []byte) (int, error)

func (*MGetUserRequest) FastReadField1

func (p *MGetUserRequest) FastReadField1(buf []byte) (int, error)

func (*MGetUserRequest) FastWrite

func (p *MGetUserRequest) FastWrite(buf []byte) int

for compatibility

func (*MGetUserRequest) FastWriteNocopy

func (p *MGetUserRequest) FastWriteNocopy(buf []byte, binaryWriter bthrift.BinaryWriter) int

func (*MGetUserRequest) Field1DeepEqual

func (p *MGetUserRequest) Field1DeepEqual(src []int64) bool

func (*MGetUserRequest) GetUserIds

func (p *MGetUserRequest) GetUserIds() (v []int64)

func (*MGetUserRequest) IsValid

func (p *MGetUserRequest) IsValid() error

func (*MGetUserRequest) Read

func (p *MGetUserRequest) Read(iprot thrift.TProtocol) (err error)

func (*MGetUserRequest) ReadField1

func (p *MGetUserRequest) ReadField1(iprot thrift.TProtocol) error

func (*MGetUserRequest) SetUserIds

func (p *MGetUserRequest) SetUserIds(val []int64)

func (*MGetUserRequest) String

func (p *MGetUserRequest) String() string

func (*MGetUserRequest) Write

func (p *MGetUserRequest) Write(oprot thrift.TProtocol) (err error)

type MGetUserResponse

type MGetUserResponse struct {
	Users    []*User   `thrift:"users,1" json:"users"`
	BaseResp *BaseResp `thrift:"base_resp,2" json:"base_resp"`
}
var UserServiceMGetUserResult_Success_DEFAULT *MGetUserResponse

func NewMGetUserResponse

func NewMGetUserResponse() *MGetUserResponse

func (*MGetUserResponse) BLength

func (p *MGetUserResponse) BLength() int

func (*MGetUserResponse) DeepEqual

func (p *MGetUserResponse) DeepEqual(ano *MGetUserResponse) bool

func (*MGetUserResponse) FastRead

func (p *MGetUserResponse) FastRead(buf []byte) (int, error)

func (*MGetUserResponse) FastReadField1

func (p *MGetUserResponse) FastReadField1(buf []byte) (int, error)

func (*MGetUserResponse) FastReadField2

func (p *MGetUserResponse) FastReadField2(buf []byte) (int, error)

func (*MGetUserResponse) FastWrite

func (p *MGetUserResponse) FastWrite(buf []byte) int

for compatibility

func (*MGetUserResponse) FastWriteNocopy

func (p *MGetUserResponse) FastWriteNocopy(buf []byte, binaryWriter bthrift.BinaryWriter) int

func (*MGetUserResponse) Field1DeepEqual

func (p *MGetUserResponse) Field1DeepEqual(src []*User) bool

func (*MGetUserResponse) Field2DeepEqual

func (p *MGetUserResponse) Field2DeepEqual(src *BaseResp) bool

func (*MGetUserResponse) GetBaseResp

func (p *MGetUserResponse) GetBaseResp() (v *BaseResp)

func (*MGetUserResponse) GetUsers

func (p *MGetUserResponse) GetUsers() (v []*User)

func (*MGetUserResponse) IsSetBaseResp

func (p *MGetUserResponse) IsSetBaseResp() bool

func (*MGetUserResponse) IsValid

func (p *MGetUserResponse) IsValid() error

func (*MGetUserResponse) Read

func (p *MGetUserResponse) Read(iprot thrift.TProtocol) (err error)

func (*MGetUserResponse) ReadField1

func (p *MGetUserResponse) ReadField1(iprot thrift.TProtocol) error

func (*MGetUserResponse) ReadField2

func (p *MGetUserResponse) ReadField2(iprot thrift.TProtocol) error

func (*MGetUserResponse) SetBaseResp

func (p *MGetUserResponse) SetBaseResp(val *BaseResp)

func (*MGetUserResponse) SetUsers

func (p *MGetUserResponse) SetUsers(val []*User)

func (*MGetUserResponse) String

func (p *MGetUserResponse) String() string

func (*MGetUserResponse) Write

func (p *MGetUserResponse) Write(oprot thrift.TProtocol) (err error)

type User

type User struct {
	UserId   int64  `thrift:"user_id,1" json:"user_id"`
	Username string `thrift:"username,2" json:"username"`
	Avatar   string `thrift:"avatar,3" json:"avatar"`
}

func NewUser

func NewUser() *User

func (*User) BLength

func (p *User) BLength() int

func (*User) DeepEqual

func (p *User) DeepEqual(ano *User) bool

func (*User) FastRead

func (p *User) FastRead(buf []byte) (int, error)

func (*User) FastReadField1

func (p *User) FastReadField1(buf []byte) (int, error)

func (*User) FastReadField2

func (p *User) FastReadField2(buf []byte) (int, error)

func (*User) FastReadField3

func (p *User) FastReadField3(buf []byte) (int, error)

func (*User) FastWrite

func (p *User) FastWrite(buf []byte) int

for compatibility

func (*User) FastWriteNocopy

func (p *User) FastWriteNocopy(buf []byte, binaryWriter bthrift.BinaryWriter) int

func (*User) Field1DeepEqual

func (p *User) Field1DeepEqual(src int64) bool

func (*User) Field2DeepEqual

func (p *User) Field2DeepEqual(src string) bool

func (*User) Field3DeepEqual

func (p *User) Field3DeepEqual(src string) bool

func (*User) GetAvatar

func (p *User) GetAvatar() (v string)

func (*User) GetUserId

func (p *User) GetUserId() (v int64)

func (*User) GetUsername

func (p *User) GetUsername() (v string)

func (*User) IsValid

func (p *User) IsValid() error

func (*User) Read

func (p *User) Read(iprot thrift.TProtocol) (err error)

func (*User) ReadField1

func (p *User) ReadField1(iprot thrift.TProtocol) error

func (*User) ReadField2

func (p *User) ReadField2(iprot thrift.TProtocol) error

func (*User) ReadField3

func (p *User) ReadField3(iprot thrift.TProtocol) error

func (*User) SetAvatar

func (p *User) SetAvatar(val string)

func (*User) SetUserId

func (p *User) SetUserId(val int64)

func (*User) SetUsername

func (p *User) SetUsername(val string)

func (*User) String

func (p *User) String() string

func (*User) Write

func (p *User) Write(oprot thrift.TProtocol) (err error)

type UserService

type UserService interface {
	CreateUser(ctx context.Context, req *CreateUserRequest) (r *CreateUserResponse, err error)

	MGetUser(ctx context.Context, req *MGetUserRequest) (r *MGetUserResponse, err error)

	CheckUser(ctx context.Context, req *CheckUserRequest) (r *CheckUserResponse, err error)
}

type UserServiceCheckUserArgs

type UserServiceCheckUserArgs struct {
	Req *CheckUserRequest `thrift:"req,1" json:"req"`
}

func NewUserServiceCheckUserArgs

func NewUserServiceCheckUserArgs() *UserServiceCheckUserArgs

func (*UserServiceCheckUserArgs) BLength

func (p *UserServiceCheckUserArgs) BLength() int

func (*UserServiceCheckUserArgs) DeepEqual

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 *CheckUserRequest) bool

func (*UserServiceCheckUserArgs) GetFirstArgument

func (p *UserServiceCheckUserArgs) GetFirstArgument() interface{}

func (*UserServiceCheckUserArgs) GetReq

func (p *UserServiceCheckUserArgs) GetReq() (v *CheckUserRequest)

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 (*UserServiceCheckUserArgs) String

func (p *UserServiceCheckUserArgs) String() string

func (*UserServiceCheckUserArgs) Write

func (p *UserServiceCheckUserArgs) Write(oprot thrift.TProtocol) (err error)

type UserServiceCheckUserResult

type UserServiceCheckUserResult struct {
	Success *CheckUserResponse `thrift:"success,0,optional" json:"success,omitempty"`
}

func NewUserServiceCheckUserResult

func NewUserServiceCheckUserResult() *UserServiceCheckUserResult

func (*UserServiceCheckUserResult) BLength

func (p *UserServiceCheckUserResult) BLength() int

func (*UserServiceCheckUserResult) DeepEqual

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 *CheckUserResponse) bool

func (*UserServiceCheckUserResult) GetResult

func (p *UserServiceCheckUserResult) GetResult() interface{}

func (*UserServiceCheckUserResult) GetSuccess

func (p *UserServiceCheckUserResult) GetSuccess() (v *CheckUserResponse)

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

func (*UserServiceCheckUserResult) Write

func (p *UserServiceCheckUserResult) Write(oprot thrift.TProtocol) (err error)

type UserServiceClient

type UserServiceClient struct {
	// contains filtered or unexported fields
}

func NewUserServiceClient

func NewUserServiceClient(c thrift.TClient) *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 *CheckUserRequest) (r *CheckUserResponse, err error)

func (*UserServiceClient) Client_

func (p *UserServiceClient) Client_() thrift.TClient

func (*UserServiceClient) CreateUser

func (p *UserServiceClient) CreateUser(ctx context.Context, req *CreateUserRequest) (r *CreateUserResponse, err error)

func (*UserServiceClient) MGetUser

func (p *UserServiceClient) MGetUser(ctx context.Context, req *MGetUserRequest) (r *MGetUserResponse, err error)

type UserServiceCreateUserArgs

type UserServiceCreateUserArgs struct {
	Req *CreateUserRequest `thrift:"req,1" json:"req"`
}

func NewUserServiceCreateUserArgs

func NewUserServiceCreateUserArgs() *UserServiceCreateUserArgs

func (*UserServiceCreateUserArgs) BLength

func (p *UserServiceCreateUserArgs) BLength() int

func (*UserServiceCreateUserArgs) DeepEqual

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 *CreateUserRequest) bool

func (*UserServiceCreateUserArgs) GetFirstArgument

func (p *UserServiceCreateUserArgs) GetFirstArgument() interface{}

func (*UserServiceCreateUserArgs) GetReq

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 (*UserServiceCreateUserArgs) String

func (p *UserServiceCreateUserArgs) String() string

func (*UserServiceCreateUserArgs) Write

func (p *UserServiceCreateUserArgs) Write(oprot thrift.TProtocol) (err error)

type UserServiceCreateUserResult

type UserServiceCreateUserResult struct {
	Success *CreateUserResponse `thrift:"success,0,optional" json:"success,omitempty"`
}

func NewUserServiceCreateUserResult

func NewUserServiceCreateUserResult() *UserServiceCreateUserResult

func (*UserServiceCreateUserResult) BLength

func (p *UserServiceCreateUserResult) BLength() int

func (*UserServiceCreateUserResult) DeepEqual

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 *CreateUserResponse) bool

func (*UserServiceCreateUserResult) GetResult

func (p *UserServiceCreateUserResult) GetResult() interface{}

func (*UserServiceCreateUserResult) GetSuccess

func (p *UserServiceCreateUserResult) GetSuccess() (v *CreateUserResponse)

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

func (*UserServiceCreateUserResult) Write

func (p *UserServiceCreateUserResult) Write(oprot thrift.TProtocol) (err error)

type UserServiceMGetUserArgs

type UserServiceMGetUserArgs struct {
	Req *MGetUserRequest `thrift:"req,1" json:"req"`
}

func NewUserServiceMGetUserArgs

func NewUserServiceMGetUserArgs() *UserServiceMGetUserArgs

func (*UserServiceMGetUserArgs) BLength

func (p *UserServiceMGetUserArgs) BLength() int

func (*UserServiceMGetUserArgs) DeepEqual

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 *MGetUserRequest) bool

func (*UserServiceMGetUserArgs) GetFirstArgument

func (p *UserServiceMGetUserArgs) GetFirstArgument() interface{}

func (*UserServiceMGetUserArgs) GetReq

func (p *UserServiceMGetUserArgs) GetReq() (v *MGetUserRequest)

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 *MGetUserRequest)

func (*UserServiceMGetUserArgs) String

func (p *UserServiceMGetUserArgs) String() string

func (*UserServiceMGetUserArgs) Write

func (p *UserServiceMGetUserArgs) Write(oprot thrift.TProtocol) (err error)

type UserServiceMGetUserResult

type UserServiceMGetUserResult struct {
	Success *MGetUserResponse `thrift:"success,0,optional" json:"success,omitempty"`
}

func NewUserServiceMGetUserResult

func NewUserServiceMGetUserResult() *UserServiceMGetUserResult

func (*UserServiceMGetUserResult) BLength

func (p *UserServiceMGetUserResult) BLength() int

func (*UserServiceMGetUserResult) DeepEqual

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 *MGetUserResponse) bool

func (*UserServiceMGetUserResult) GetResult

func (p *UserServiceMGetUserResult) GetResult() interface{}

func (*UserServiceMGetUserResult) GetSuccess

func (p *UserServiceMGetUserResult) GetSuccess() (v *MGetUserResponse)

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

func (*UserServiceMGetUserResult) Write

func (p *UserServiceMGetUserResult) Write(oprot thrift.TProtocol) (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

Directories

Path Synopsis
Code generated by Kitex v0.4.3.
Code generated by Kitex v0.4.3.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL