v1

package
v0.0.0-...-0f89c16 Latest Latest
Warning

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

Go to latest
Published: Oct 7, 2021 License: BSD-3-Clause Imports: 29 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewValidate

func NewValidate() validate

func RunServer

func RunServer(srv Service, addr string) error

func RunServerWithTLS

func RunServerWithTLS(srv Service, addr string) error

Types

type Key

type Key string
const (
	JWTKey Key = "user"
)

type Repository

type Repository interface {
	Login(ctx context.Context, in *authv1.LoginRequest) (*userv1.UserLoginResponse, error)
}

func NewRepoManager

func NewRepoManager() Repository

type Service

type Service interface {
	authv1.AuthenServiceServer
}

func NewService

func NewService(repo Repository, validator validate) Service

type UserInfo

type UserInfo struct {
	Id       uint64 `json:"id,omitempty"`
	Username string `json:"username,omitempty"`
	Email    string `json:"email,omitempty"`
	Role     string `json:"role,omitempty"`
}

Jump to

Keyboard shortcuts

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