Documentation ¶ Index ¶ func Can(w http.ResponseWriter, r *http.Request, action, resource string) bool func Check(req *http.Request) bool func Forbidden(w http.ResponseWriter) func Setup(conf *config.Config, l log.Logger) error type Auth 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 } Source Files ¶ View all Source files auth.go Click to show internal directories. Click to hide internal directories.