core

package
v1.0.1 Latest Latest
Warning

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

Go to latest
Published: Oct 11, 2022 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GenGUID

func GenGUID() (string, error)

Types

type Logger

type Logger func(c echo.Context)

type Services

type Services struct {
	Tokens TokenService
	Users  UserService
	Logger Logger
}

func (*Services) Reset

func (services *Services) Reset()

type TokenService

type TokenService interface {
	Create(uaa.User) (string, error)
	ByUser(uaa.User) (string, error)
	Exists(string) bool
	Reset()
}

type UserService

type UserService interface {
	ByUsername(string) (uaa.User, error)
	Add(string, string) (uaa.User, error)
	Reset()
}

Jump to

Keyboard shortcuts

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