config

package
Version: v0.0.2 Latest Latest
Warning

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

Go to latest
Published: Jun 7, 2020 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 Repository

type Repository interface {
	JWTSecret() (*auth.JWTSecret, error)
	SuperAdmin() (string, error)
	SetJWTSecret([]byte) error
	SetSuperAdmin(string) error
	SessionKey() ([]byte, error)
	SetSessionKey([]byte) error
}

Repository provides an interface for persisting config options.

type Service

type Service interface {
	JWTSecret() (*auth.JWTSecret, error)
	SuperAdmin() (string, error)
	SetJWTSecret([]byte) error
	CreateSuperAdmin(string) (user *model.User, password string, err error)
	ResetSuperAdmin() error
	SessionKey() ([]byte, error)
	SetSessionKey([]byte) error
}

Service provides an interface for manipulating configs.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
t or T : Toggle theme light dark auto
y or Y : Canonical URL