user

package
v0.0.0-...-4cc9216 Latest Latest
Warning

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

Go to latest
Published: Jun 14, 2024 License: MIT Imports: 7 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 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) FastRead

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

func (*LoginRequest) FastReadField1

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

func (*LoginRequest) FastReadField2

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

func (*LoginRequest) FastWrite

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

for compatibility

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) Read

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

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

func (*LoginRequest) Write

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

type LoginResponse

type LoginResponse struct {
	Token string `thrift:"token,1" frugal:"1,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) FastRead

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

func (*LoginResponse) FastReadField1

func (p *LoginResponse) FastReadField1(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 string) bool

func (*LoginResponse) GetToken

func (p *LoginResponse) GetToken() (v string)

func (*LoginResponse) InitDefault

func (p *LoginResponse) InitDefault()

func (*LoginResponse) Read

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

func (*LoginResponse) ReadField1

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

func (*LoginResponse) SetToken

func (p *LoginResponse) SetToken(val string)

func (*LoginResponse) String

func (p *LoginResponse) String() string

func (*LoginResponse) Write

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

type RegisterRequest

type RegisterRequest struct {
	Username string `thrift:"username,1" frugal:"1,default,string" json:"username"`
	Password string `thrift:"password,2" frugal:"2,default,string" json:"password"`
}
var UserServiceRegisterArgs_Req_DEFAULT *RegisterRequest

func NewRegisterRequest

func NewRegisterRequest() *RegisterRequest

func (*RegisterRequest) BLength

func (p *RegisterRequest) BLength() int

func (*RegisterRequest) DeepEqual

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

func (*RegisterRequest) FastRead

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

func (*RegisterRequest) FastReadField1

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

func (*RegisterRequest) FastReadField2

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

func (*RegisterRequest) FastWrite

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

for compatibility

func (*RegisterRequest) FastWriteNocopy

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

func (*RegisterRequest) Field1DeepEqual

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

func (*RegisterRequest) Field2DeepEqual

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

func (*RegisterRequest) GetPassword

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

func (*RegisterRequest) GetUsername

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

func (*RegisterRequest) InitDefault

func (p *RegisterRequest) InitDefault()

func (*RegisterRequest) Read

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

func (*RegisterRequest) ReadField1

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

func (*RegisterRequest) ReadField2

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

func (*RegisterRequest) SetPassword

func (p *RegisterRequest) SetPassword(val string)

func (*RegisterRequest) SetUsername

func (p *RegisterRequest) SetUsername(val string)

func (*RegisterRequest) String

func (p *RegisterRequest) String() string

func (*RegisterRequest) Write

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

type RegisterResponse

type RegisterResponse struct {
	Token string `thrift:"token,1" frugal:"1,default,string" json:"token"`
}
var UserServiceRegisterResult_Success_DEFAULT *RegisterResponse

func NewRegisterResponse

func NewRegisterResponse() *RegisterResponse

func (*RegisterResponse) BLength

func (p *RegisterResponse) BLength() int

func (*RegisterResponse) DeepEqual

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

func (*RegisterResponse) FastRead

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

func (*RegisterResponse) FastReadField1

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

func (*RegisterResponse) FastWrite

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

for compatibility

func (*RegisterResponse) FastWriteNocopy

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

func (*RegisterResponse) Field1DeepEqual

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

func (*RegisterResponse) GetToken

func (p *RegisterResponse) GetToken() (v string)

func (*RegisterResponse) InitDefault

func (p *RegisterResponse) InitDefault()

func (*RegisterResponse) Read

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

func (*RegisterResponse) ReadField1

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

func (*RegisterResponse) SetToken

func (p *RegisterResponse) SetToken(val string)

func (*RegisterResponse) String

func (p *RegisterResponse) String() string

func (*RegisterResponse) Write

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

type UserService

type UserService interface {
	Login(ctx context.Context, req *LoginRequest) (r *LoginResponse, err error)

	Register(ctx context.Context, req *RegisterRequest) (r *RegisterResponse, 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) Client_

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

func (*UserServiceClient) Login

func (p *UserServiceClient) Login(ctx context.Context, req *LoginRequest) (r *LoginResponse, err error)

func (*UserServiceClient) Register

func (p *UserServiceClient) Register(ctx context.Context, req *RegisterRequest) (r *RegisterResponse, err error)

type 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

func (*UserServiceLoginArgs) Write

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

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 (*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

func (*UserServiceLoginResult) Write

func (p *UserServiceLoginResult) 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

type UserServiceRegisterArgs

type UserServiceRegisterArgs struct {
	Req *RegisterRequest `thrift:"req,1" frugal:"1,default,RegisterRequest" json:"req"`
}

func NewUserServiceRegisterArgs

func NewUserServiceRegisterArgs() *UserServiceRegisterArgs

func (*UserServiceRegisterArgs) BLength

func (p *UserServiceRegisterArgs) BLength() int

func (*UserServiceRegisterArgs) DeepEqual

func (*UserServiceRegisterArgs) FastRead

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

func (*UserServiceRegisterArgs) FastReadField1

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

func (*UserServiceRegisterArgs) FastWrite

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

for compatibility

func (*UserServiceRegisterArgs) FastWriteNocopy

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

func (*UserServiceRegisterArgs) Field1DeepEqual

func (p *UserServiceRegisterArgs) Field1DeepEqual(src *RegisterRequest) bool

func (*UserServiceRegisterArgs) GetFirstArgument

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

func (*UserServiceRegisterArgs) GetReq

func (p *UserServiceRegisterArgs) GetReq() (v *RegisterRequest)

func (*UserServiceRegisterArgs) InitDefault

func (p *UserServiceRegisterArgs) InitDefault()

func (*UserServiceRegisterArgs) IsSetReq

func (p *UserServiceRegisterArgs) IsSetReq() bool

func (*UserServiceRegisterArgs) Read

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

func (*UserServiceRegisterArgs) ReadField1

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

func (*UserServiceRegisterArgs) SetReq

func (p *UserServiceRegisterArgs) SetReq(val *RegisterRequest)

func (*UserServiceRegisterArgs) String

func (p *UserServiceRegisterArgs) String() string

func (*UserServiceRegisterArgs) Write

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

type UserServiceRegisterResult

type UserServiceRegisterResult struct {
	Success *RegisterResponse `thrift:"success,0,optional" frugal:"0,optional,RegisterResponse" json:"success,omitempty"`
}

func NewUserServiceRegisterResult

func NewUserServiceRegisterResult() *UserServiceRegisterResult

func (*UserServiceRegisterResult) BLength

func (p *UserServiceRegisterResult) BLength() int

func (*UserServiceRegisterResult) DeepEqual

func (*UserServiceRegisterResult) FastRead

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

func (*UserServiceRegisterResult) FastReadField0

func (p *UserServiceRegisterResult) FastReadField0(buf []byte) (int, error)

func (*UserServiceRegisterResult) FastWrite

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

for compatibility

func (*UserServiceRegisterResult) FastWriteNocopy

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

func (*UserServiceRegisterResult) Field0DeepEqual

func (p *UserServiceRegisterResult) Field0DeepEqual(src *RegisterResponse) bool

func (*UserServiceRegisterResult) GetResult

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

func (*UserServiceRegisterResult) GetSuccess

func (p *UserServiceRegisterResult) GetSuccess() (v *RegisterResponse)

func (*UserServiceRegisterResult) InitDefault

func (p *UserServiceRegisterResult) InitDefault()

func (*UserServiceRegisterResult) IsSetSuccess

func (p *UserServiceRegisterResult) IsSetSuccess() bool

func (*UserServiceRegisterResult) Read

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

func (*UserServiceRegisterResult) ReadField0

func (p *UserServiceRegisterResult) ReadField0(iprot thrift.TProtocol) error

func (*UserServiceRegisterResult) SetSuccess

func (p *UserServiceRegisterResult) SetSuccess(x interface{})

func (*UserServiceRegisterResult) String

func (p *UserServiceRegisterResult) String() string

func (*UserServiceRegisterResult) Write

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

Directories

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

Jump to

Keyboard shortcuts

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