server

package
v0.0.0-...-7cf99fd Latest Latest
Warning

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

Go to latest
Published: Aug 5, 2021 License: MIT Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type SMSServer

type SMSServer interface {
	Send(ctx context.Context, sms *request.SMSRequest) error
	Verify(ctx context.Context, sms *request.SMSRequest) error
}

func NewSMSService

func NewSMSService() SMSServer

type UserServer

type UserServer interface {
	RegisterByUsername(ctx context.Context, in *request.RegisterByUsernameRequest) error
	RegisterByMobile(ctx context.Context, in *request.RegisterByMobileRequest) error
	RegisterByEmail(ctx context.Context, in *request.RegisterByEmailRequest) error
	LoginByAccount(ctx context.Context, in *request.LoginByAccountRequest) (out *response.LoginResponse, err error)
	LoginByToken(ctx context.Context, t string) (out *response.LoginResponse, err error)
}

func NewUserService

func NewUserService() UserServer

Jump to

Keyboard shortcuts

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