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
}

Source Files