entities

package
v0.0.0-...-e52266a Latest Latest
Warning

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

Go to latest
Published: May 1, 2023 License: MIT Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ParameterStorer

type ParameterStorer interface {
	Get(key string) (string, error)
}

type RegistrationRequest

type RegistrationRequest struct {
	Username *string `json:"username"`
	Password *string `json:"password"`
}

type TokenHandler

type TokenHandler interface {
	GetTokens(username, password *string) (accessToken, refreshToken *string, err error)
	RefreshAccessToken(token *string) (accessToken, refreshToken *string, err error)
}

type TokenRequest

type TokenRequest struct {
	Username     *string `form:"username"`
	Password     *string `form:"password"`
	RefreshToken *string `form:"refresh_token"`
}

type UserHandler

type UserHandler interface {
	RegisterUser(username, password *string) (sub *string, err error)
	ListUsers() (users []UserModel, err error)
}

type UserModel

type UserModel struct {
	Username *string    `json:"username"`
	Status   *string    `json:"status"`
	Enabled  *bool      `json:"enabled"`
	Created  *time.Time `json:"created"`
}

type UserTokenHandler

type UserTokenHandler interface {
	TokenHandler
	UserHandler
}

Jump to

Keyboard shortcuts

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