auth

package
v0.0.0-...-b178995 Latest Latest
Warning

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

Go to latest
Published: Jul 19, 2020 License: MIT Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Can

func Can(w http.ResponseWriter, r *http.Request, action, resource string) bool

func Check

func Check(req *http.Request) bool

func Forbidden

func Forbidden(w http.ResponseWriter)

func Setup

func Setup(conf *config.Config, l log.Logger) error

Types

type Auth

type Auth struct {
	ID string

	Username string
	Password string
	// contains filtered or unexported fields
}

Jump to

Keyboard shortcuts

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