controllers

package
v0.1.6-alpha Latest Latest
Warning

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

Go to latest
Published: Mar 17, 2024 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 Controller

type Controller struct {
	Log          *slog.Logger
	UserStorage  storage.UsersStorage
	KeyStorage   storage.KeysStorage
	TokenService token.TokenService
	KeyService   keys.KeyService
}

type JWKSetsController

type JWKSetsController struct {
	Controller
}

func (*JWKSetsController) GetJWKSets

func (c *JWKSetsController) GetJWKSets() (*string, error)

type LoginController

type LoginController struct {
	Controller
}

func (*LoginController) Login

func (c *LoginController) Login(username, password string) (*string, error)

type RefreshController

type RefreshController struct {
	Controller
}

func (*RefreshController) Refresh

func (r *RefreshController) Refresh(refreshToken string) (*string, error)

type RegisterController

type RegisterController struct {
	Controller
}

func (*RegisterController) Register

func (c *RegisterController) Register(username, password string) (*string, error)

type RotateController

type RotateController struct {
	Controller
}

func (*RotateController) RotateKeys

func (c *RotateController) RotateKeys() error

Jump to

Keyboard shortcuts

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