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: 0

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
domain
internal

Jump to

Keyboard shortcuts

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