config

package
v1.1.1 Latest Latest
Warning

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

Go to latest
Published: Aug 13, 2024 License: MIT Imports: 14 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 interface {
	comfig.Logger
	comfig.Listenerer

	jwt.Jwter
	zkp.AuthVerifierer
	cookies.Cookier

	Points() *Points
	PassportVerifier() *zk.Verifier
}

func New

func New(getter kv.Getter) Config

type Points

type Points struct {
	Admin string `fig:"admin,required"`
	URL   string `fig:"url,required"`

	Endpoint        string `fig:"endpoint"`
	DefaultVerified bool   `fig:"default_verified"`
	Disabled        bool   `fig:"disabled"`
}

func (*Points) VerifyAdmin added in v0.2.0

func (p *Points) VerifyAdmin(pass string) bool

Jump to

Keyboard shortcuts

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