auth

package
v0.0.0-...-99fda48 Latest Latest
Warning

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

Go to latest
Published: Jun 5, 2024 License: MIT Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Register

func Register(gRPC *grpc.Server, log *slog.Logger, authService AuthService)

Types

type AuthService

type AuthService interface {
	Login(ctx context.Context, dto authservice.LoginDTO) (string, error)
	Register(ctx context.Context, dto authservice.RegisterDTO) (int64, error)
	IsAdmin(ctx context.Context, dto authservice.IsAdminDTO) (bool, error)
}

Jump to

Keyboard shortcuts

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