authorization

package
v0.0.0-...-0ac0b20 Latest Latest
Warning

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

Go to latest
Published: Jan 9, 2020 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Helios

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

Helios represents an authorization service instance

func NewAuthorization

func NewAuthorization(expressions []string) *Helios

NewAuthorization creates a new authorization service with a given set of rules

func (*Helios) Middleware

func (h *Helios) Middleware(next http.Handler) http.Handler

Middleware evaluates authorization rules against a request

Jump to

Keyboard shortcuts

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