auth

package
v0.0.0-...-7075b2f Latest Latest
Warning

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

Go to latest
Published: Aug 10, 2023 License: MIT Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var File_authService_proto protoreflect.FileDescriptor

Functions

func NewAuthenticationEndpoints

func NewAuthenticationEndpoints() []*api.Endpoint

func RegisterAuthenticationHandler

func RegisterAuthenticationHandler(s server.Server, hdlr AuthenticationHandler, opts ...server.HandlerOption) error

Types

type AuthenticationHandler

type AuthenticationHandler interface {
	GetImgCaptcha(context.Context, *ImgCaptchaRequ, *ImgCaptchaResp) error
	GetSmsCaptcha(context.Context, *SmsCaptchaRequ, *SmsCaptchaResp) error
}

type AuthenticationService

type AuthenticationService interface {
	GetImgCaptcha(ctx context.Context, in *ImgCaptchaRequ, opts ...client.CallOption) (*ImgCaptchaResp, error)
	GetSmsCaptcha(ctx context.Context, in *SmsCaptchaRequ, opts ...client.CallOption) (*SmsCaptchaResp, error)
}

func NewAuthenticationService

func NewAuthenticationService(name string, c client.Client) AuthenticationService

type ImgCaptchaRequ

type ImgCaptchaRequ struct {
	Uuid string `protobuf:"bytes,1,opt,name=uuid,proto3" json:"uuid,omitempty"`
	// contains filtered or unexported fields
}

func (*ImgCaptchaRequ) Descriptor deprecated

func (*ImgCaptchaRequ) Descriptor() ([]byte, []int)

Deprecated: Use ImgCaptchaRequ.ProtoReflect.Descriptor instead.

func (*ImgCaptchaRequ) GetUuid

func (x *ImgCaptchaRequ) GetUuid() string

func (*ImgCaptchaRequ) ProtoMessage

func (*ImgCaptchaRequ) ProtoMessage()

func (*ImgCaptchaRequ) ProtoReflect

func (x *ImgCaptchaRequ) ProtoReflect() protoreflect.Message

func (*ImgCaptchaRequ) Reset

func (x *ImgCaptchaRequ) Reset()

func (*ImgCaptchaRequ) String

func (x *ImgCaptchaRequ) String() string

type ImgCaptchaResp

type ImgCaptchaResp struct {
	Image []byte `protobuf:"bytes,1,opt,name=image,proto3" json:"image,omitempty"`
	// contains filtered or unexported fields
}

func (*ImgCaptchaResp) Descriptor deprecated

func (*ImgCaptchaResp) Descriptor() ([]byte, []int)

Deprecated: Use ImgCaptchaResp.ProtoReflect.Descriptor instead.

func (*ImgCaptchaResp) GetImage

func (x *ImgCaptchaResp) GetImage() []byte

func (*ImgCaptchaResp) ProtoMessage

func (*ImgCaptchaResp) ProtoMessage()

func (*ImgCaptchaResp) ProtoReflect

func (x *ImgCaptchaResp) ProtoReflect() protoreflect.Message

func (*ImgCaptchaResp) Reset

func (x *ImgCaptchaResp) Reset()

func (*ImgCaptchaResp) String

func (x *ImgCaptchaResp) String() string

type SmsCaptchaRequ

type SmsCaptchaRequ struct {
	Uuid      string `protobuf:"bytes,1,opt,name=uuid,proto3" json:"uuid,omitempty"`
	ImageCode string `protobuf:"bytes,2,opt,name=imageCode,proto3" json:"imageCode,omitempty"`
	PhoneNum  string `protobuf:"bytes,3,opt,name=phoneNum,proto3" json:"phoneNum,omitempty"`
	// contains filtered or unexported fields
}

func (*SmsCaptchaRequ) Descriptor deprecated

func (*SmsCaptchaRequ) Descriptor() ([]byte, []int)

Deprecated: Use SmsCaptchaRequ.ProtoReflect.Descriptor instead.

func (*SmsCaptchaRequ) GetImageCode

func (x *SmsCaptchaRequ) GetImageCode() string

func (*SmsCaptchaRequ) GetPhoneNum

func (x *SmsCaptchaRequ) GetPhoneNum() string

func (*SmsCaptchaRequ) GetUuid

func (x *SmsCaptchaRequ) GetUuid() string

func (*SmsCaptchaRequ) ProtoMessage

func (*SmsCaptchaRequ) ProtoMessage()

func (*SmsCaptchaRequ) ProtoReflect

func (x *SmsCaptchaRequ) ProtoReflect() protoreflect.Message

func (*SmsCaptchaRequ) Reset

func (x *SmsCaptchaRequ) Reset()

func (*SmsCaptchaRequ) String

func (x *SmsCaptchaRequ) String() string

type SmsCaptchaResp

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

func (*SmsCaptchaResp) Descriptor deprecated

func (*SmsCaptchaResp) Descriptor() ([]byte, []int)

Deprecated: Use SmsCaptchaResp.ProtoReflect.Descriptor instead.

func (*SmsCaptchaResp) ProtoMessage

func (*SmsCaptchaResp) ProtoMessage()

func (*SmsCaptchaResp) ProtoReflect

func (x *SmsCaptchaResp) ProtoReflect() protoreflect.Message

func (*SmsCaptchaResp) Reset

func (x *SmsCaptchaResp) Reset()

func (*SmsCaptchaResp) String

func (x *SmsCaptchaResp) String() string

Jump to

Keyboard shortcuts

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