ident

package module
v0.0.0-...-fd8d5be Latest Latest
Warning

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

Go to latest
Published: Apr 7, 2018 License: MIT Imports: 14 Imported by: ? modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AuthByPasswordHandler

func AuthByPasswordHandler(env *infra.Environment) http.HandlerFunc

func AuthByTOTPHandler

func AuthByTOTPHandler(env *infra.Environment) http.HandlerFunc

func CreateUserHandler

func CreateUserHandler(env *infra.Environment) http.HandlerFunc

func ExistsUserHandler

func ExistsUserHandler(env *infra.Environment) http.HandlerFunc

func GetPublicKeyHandler

func GetPublicKeyHandler(env *infra.Environment) http.HandlerFunc

func MethodNotAllowedHandler

func MethodNotAllowedHandler(w http.ResponseWriter, r *http.Request)

func NotFoundHandler

func NotFoundHandler(w http.ResponseWriter, r *http.Request)

func TOTPQRCodeHandler

func TOTPQRCodeHandler(env *infra.Environment) http.HandlerFunc

func UpdateEmailHandler

func UpdateEmailHandler(env *infra.Environment) http.HandlerFunc

func VerifyEmailHandler

func VerifyEmailHandler(env *infra.Environment) http.HandlerFunc

func VerifyTOTPHandler

func VerifyTOTPHandler(env *infra.Environment) http.HandlerFunc

Types

type Server

type Server struct {
	// contains filtered or unexported fields
}

Server is a main application object.

func NewServer

func NewServer(addr string, privKeyPath string, cfg infra.Config) (*Server, error)

NewServer returns a new server.

func (*Server) Run

func (s *Server) Run() error

Run the server.

func (*Server) Shutdown

func (s *Server) Shutdown(os.Signal)

Shutdown shuts down the server gracefully.

Directories

Path Synopsis
cmd
ident command
domain
internal
cmd/genHandler command
cmd/keygen command

Jump to

Keyboard shortcuts

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