auth

package
v0.0.0-...-f5f9226 Latest Latest
Warning

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

Go to latest
Published: Jul 4, 2020 License: Apache-2.0 Imports: 19 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AuthSrv

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

func NewAuthSrv

func NewAuthSrv() *AuthSrv

func (*AuthSrv) Login

func (s *AuthSrv) Login(ctx context.Context, req *pb.LoginRequest) (*pb.LoginResponse, error)

func (*AuthSrv) Register

func (s *AuthSrv) Register(ctx context.Context, req *pb.RegisterRequest) (*pb.RegisterResponse, error)

func (*AuthSrv) UsernameUsed

func (s *AuthSrv) UsernameUsed(ctx context.Context, username string) (r bool)

Jump to

Keyboard shortcuts

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