authserver

package module
v0.0.0-...-22f655d Latest Latest
Warning

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

Go to latest
Published: May 21, 2024 License: GPL-2.0 Imports: 10 Imported by: 1

README

authserver

authentication grpc server

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	ErrUnknown           = status.Error(codes.Unknown, "unknown error.")
	ErrInternal          = status.Error(codes.Internal, "internal error.")
	ErrUnauthenticated   = status.Error(codes.Unauthenticated, "wrong credentials.")
	ErrSessionNotFound   = status.Error(codes.Unauthenticated, "session not found.")
	ErrExpiredSession    = status.Error(codes.Unauthenticated, "session is expired.")
	ErrUserAlreadyExists = status.Error(codes.AlreadyExists, "user already exists.")
	ErrInvalidUserName   = status.Error(codes.InvalidArgument, "username is invalid.")
)

Functions

func RunAuthServer

func RunAuthServer(grpcHost, grpcWebHost string, db *db.DB)

Types

This section is empty.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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