auth

package
v1.1.5 Latest Latest
Warning

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

Go to latest
Published: Nov 4, 2022 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AuthConfig

type AuthConfig struct {
	Db state.DBManager
}

type AuthService

type AuthService interface {
	// Auth GPRC validators
	Unary() grpc.UnaryServerInterceptor
	Stream() grpc.StreamServerInterceptor

	// Usable API's
	GenerateNewKey(name, description string) (*auth_state.AuthStateModel, error)
	ListKeys() ([]*auth_state.AuthStateModel, error)
	UpdateKey(id int64, name, description string) error
	DeleteKey(id int64) error
}

func NewAuthService

func NewAuthService(cfg AuthConfig) (AuthService, error)

Directories

Path Synopsis
Package mock is a generated GoMock package.
Package mock is a generated GoMock package.
mock
Package mock is a generated GoMock package.
Package mock is a generated GoMock package.

Jump to

Keyboard shortcuts

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