security

package
v1.3.2 Latest Latest
Warning

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

Go to latest
Published: Oct 16, 2020 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Handler

func Handler(handler http.HandlerFunc, security *Config) http.HandlerFunc

func Sha512

func Sha512(s string) string

Types

type BasicConfig

type BasicConfig struct {
	Username           string `yaml:"username"`
	PasswordSha512Hash string `yaml:"password-sha512"`
}

func (*BasicConfig) IsValid

func (c *BasicConfig) IsValid() bool

type Config

type Config struct {
	Basic *BasicConfig `yaml:"basic"`
}

func (*Config) IsValid

func (c *Config) IsValid() bool

Jump to

Keyboard shortcuts

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