apikey

package
v0.0.0-...-b9f8332 Latest Latest
Warning

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

Go to latest
Published: Dec 22, 2024 License: AGPL-3.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Service

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

func NewService

func NewService(adb *db.AuthDb) *Service

func (*Service) Add

func (s *Service) Add(credentials models.ApiKeyAuthCredentialsInstance) error

func (*Service) CheckCredentials

func (s *Service) CheckCredentials(creds models.ApiKeyAuthCredentialsInstance) bool

func (*Service) Close

func (s *Service) Close() error

func (*Service) Delete

func (s *Service) Delete(keyName string) (found bool, err error)

func (*Service) DeleteAll

func (s *Service) DeleteAll() error

func (*Service) GetAll

Jump to

Keyboard shortcuts

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