core

package
v0.0.0-...-8c9ab3b Latest Latest
Warning

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

Go to latest
Published: Aug 21, 2022 License: GPL-3.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Config

type Config struct {
	DataDir       string `json:"data_dir,omitempty"`
	Listen        string `json:"listen,omitempty"`
	Secret        string `json:"secret,omitempty"`
	HydraAdminURL string `json:"hydra_admin_url"`
	Issuer        string `json:"issuer"`
	Version       string `json:"-"`
	AdminDisabled bool   `json:"admin_disabled,omitempty"`
	SecureCookie  bool   `json:"secure_cookie,omitempty"`
}

func LoadConfig

func LoadConfig(file string) (c *Config, err error)

type User

type User struct {
	Username string
	Email    string
	Password string
	Created  string
	Secret   string
	Claims   map[string]string
	Admin    bool
	Disabled bool
	Locked   int
}

type Users

type Users []*User

func (Users) Len

func (u Users) Len() int

func (Users) Less

func (u Users) Less(i, j int) bool

func (Users) Swap

func (u Users) Swap(i, j int)

Jump to

Keyboard shortcuts

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