auth

package
v0.0.0-...-312508d Latest Latest
Warning

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

Go to latest
Published: Oct 8, 2024 License: GPL-2.0 Imports: 9 Imported by: 0

Documentation

Overview

Code generated by Kitex v0.9.1. DO NOT EDIT.

Index

Constants

This section is empty.

Variables

View Source
var SendVerifyCodeArgs_Req_DEFAULT *core_api.SendVerifyCodeReq
View Source
var SendVerifyCodeResult_Success_DEFAULT *core_api.SendVerifyCodeResp
View Source
var SetPasswordArgs_Req_DEFAULT *core_api.SetPasswordReq
View Source
var SetPasswordResult_Success_DEFAULT *core_api.SetPasswordResp
View Source
var SignInArgs_Req_DEFAULT *core_api.SignInReq
View Source
var SignInResult_Success_DEFAULT *core_api.SignInResp

Functions

func NewInvoker

func NewInvoker(handler core_api.Auth, opts ...server.Option) server.Invoker

NewInvoker creates a server.Invoker with the given handler and options.

func NewServer

func NewServer(handler core_api.Auth, opts ...server.Option) server.Server

NewServer creates a server.Server with the given handler and options.

func NewServiceInfo

func NewServiceInfo() *kitex.ServiceInfo

NewServiceInfo creates a new ServiceInfo containing all methods

func NewServiceInfoForClient

func NewServiceInfoForClient() *kitex.ServiceInfo

NewServiceInfo creates a new ServiceInfo containing non-streaming methods

func NewServiceInfoForStreamClient

func NewServiceInfoForStreamClient() *kitex.ServiceInfo

func RegisterService

func RegisterService(svr server.Server, handler core_api.Auth, opts ...server.RegisterOption) error

Types

type Client

type Client interface {
	SignIn(ctx context.Context, Req *core_api.SignInReq, callOptions ...callopt.Option) (r *core_api.SignInResp, err error)
	SendVerifyCode(ctx context.Context, Req *core_api.SendVerifyCodeReq, callOptions ...callopt.Option) (r *core_api.SendVerifyCodeResp, err error)
	SetPassword(ctx context.Context, Req *core_api.SetPasswordReq, callOptions ...callopt.Option) (r *core_api.SetPasswordResp, err error)
}

Client is designed to provide IDL-compatible methods with call-option parameter for kitex framework.

func MustNewClient

func MustNewClient(destService string, opts ...client.Option) Client

MustNewClient creates a client for the service defined in IDL. It panics if any error occurs.

func NewClient

func NewClient(destService string, opts ...client.Option) (Client, error)

NewClient creates a client for the service defined in IDL.

type SendVerifyCodeArgs

type SendVerifyCodeArgs struct {
	Req *core_api.SendVerifyCodeReq
}

func (*SendVerifyCodeArgs) FastRead

func (p *SendVerifyCodeArgs) FastRead(buf []byte, _type int8, number int32) (n int, err error)

func (*SendVerifyCodeArgs) FastWrite

func (p *SendVerifyCodeArgs) FastWrite(buf []byte) (n int)

func (*SendVerifyCodeArgs) GetFirstArgument

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

func (*SendVerifyCodeArgs) GetReq

func (*SendVerifyCodeArgs) IsSetReq

func (p *SendVerifyCodeArgs) IsSetReq() bool

func (*SendVerifyCodeArgs) Marshal

func (p *SendVerifyCodeArgs) Marshal(out []byte) ([]byte, error)

func (*SendVerifyCodeArgs) Size

func (p *SendVerifyCodeArgs) Size() (n int)

func (*SendVerifyCodeArgs) Unmarshal

func (p *SendVerifyCodeArgs) Unmarshal(in []byte) error

type SendVerifyCodeResult

type SendVerifyCodeResult struct {
	Success *core_api.SendVerifyCodeResp
}

func (*SendVerifyCodeResult) FastRead

func (p *SendVerifyCodeResult) FastRead(buf []byte, _type int8, number int32) (n int, err error)

func (*SendVerifyCodeResult) FastWrite

func (p *SendVerifyCodeResult) FastWrite(buf []byte) (n int)

func (*SendVerifyCodeResult) GetResult

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

func (*SendVerifyCodeResult) GetSuccess

func (*SendVerifyCodeResult) IsSetSuccess

func (p *SendVerifyCodeResult) IsSetSuccess() bool

func (*SendVerifyCodeResult) Marshal

func (p *SendVerifyCodeResult) Marshal(out []byte) ([]byte, error)

func (*SendVerifyCodeResult) SetSuccess

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

func (*SendVerifyCodeResult) Size

func (p *SendVerifyCodeResult) Size() (n int)

func (*SendVerifyCodeResult) Unmarshal

func (p *SendVerifyCodeResult) Unmarshal(in []byte) error

type SetPasswordArgs

type SetPasswordArgs struct {
	Req *core_api.SetPasswordReq
}

func (*SetPasswordArgs) FastRead

func (p *SetPasswordArgs) FastRead(buf []byte, _type int8, number int32) (n int, err error)

func (*SetPasswordArgs) FastWrite

func (p *SetPasswordArgs) FastWrite(buf []byte) (n int)

func (*SetPasswordArgs) GetFirstArgument

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

func (*SetPasswordArgs) GetReq

func (*SetPasswordArgs) IsSetReq

func (p *SetPasswordArgs) IsSetReq() bool

func (*SetPasswordArgs) Marshal

func (p *SetPasswordArgs) Marshal(out []byte) ([]byte, error)

func (*SetPasswordArgs) Size

func (p *SetPasswordArgs) Size() (n int)

func (*SetPasswordArgs) Unmarshal

func (p *SetPasswordArgs) Unmarshal(in []byte) error

type SetPasswordResult

type SetPasswordResult struct {
	Success *core_api.SetPasswordResp
}

func (*SetPasswordResult) FastRead

func (p *SetPasswordResult) FastRead(buf []byte, _type int8, number int32) (n int, err error)

func (*SetPasswordResult) FastWrite

func (p *SetPasswordResult) FastWrite(buf []byte) (n int)

func (*SetPasswordResult) GetResult

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

func (*SetPasswordResult) GetSuccess

func (p *SetPasswordResult) GetSuccess() *core_api.SetPasswordResp

func (*SetPasswordResult) IsSetSuccess

func (p *SetPasswordResult) IsSetSuccess() bool

func (*SetPasswordResult) Marshal

func (p *SetPasswordResult) Marshal(out []byte) ([]byte, error)

func (*SetPasswordResult) SetSuccess

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

func (*SetPasswordResult) Size

func (p *SetPasswordResult) Size() (n int)

func (*SetPasswordResult) Unmarshal

func (p *SetPasswordResult) Unmarshal(in []byte) error

type SignInArgs

type SignInArgs struct {
	Req *core_api.SignInReq
}

func (*SignInArgs) FastRead

func (p *SignInArgs) FastRead(buf []byte, _type int8, number int32) (n int, err error)

func (*SignInArgs) FastWrite

func (p *SignInArgs) FastWrite(buf []byte) (n int)

func (*SignInArgs) GetFirstArgument

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

func (*SignInArgs) GetReq

func (p *SignInArgs) GetReq() *core_api.SignInReq

func (*SignInArgs) IsSetReq

func (p *SignInArgs) IsSetReq() bool

func (*SignInArgs) Marshal

func (p *SignInArgs) Marshal(out []byte) ([]byte, error)

func (*SignInArgs) Size

func (p *SignInArgs) Size() (n int)

func (*SignInArgs) Unmarshal

func (p *SignInArgs) Unmarshal(in []byte) error

type SignInResult

type SignInResult struct {
	Success *core_api.SignInResp
}

func (*SignInResult) FastRead

func (p *SignInResult) FastRead(buf []byte, _type int8, number int32) (n int, err error)

func (*SignInResult) FastWrite

func (p *SignInResult) FastWrite(buf []byte) (n int)

func (*SignInResult) GetResult

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

func (*SignInResult) GetSuccess

func (p *SignInResult) GetSuccess() *core_api.SignInResp

func (*SignInResult) IsSetSuccess

func (p *SignInResult) IsSetSuccess() bool

func (*SignInResult) Marshal

func (p *SignInResult) Marshal(out []byte) ([]byte, error)

func (*SignInResult) SetSuccess

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

func (*SignInResult) Size

func (p *SignInResult) Size() (n int)

func (*SignInResult) Unmarshal

func (p *SignInResult) Unmarshal(in []byte) error

Jump to

Keyboard shortcuts

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