firewall

package
v0.0.0 Latest Latest
Warning

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

Go to latest
Published: Jul 11, 2020 License: MIT Imports: 2 Imported by: 0

README

firewall GoDoc

Package firewall allow to guard http handlers

Download:

go get -u github.com/vardius/go-api-boilerplate/pkg/http/middleware/firewall

Package firewall allow to guard http handlers

Documentation

Overview

Package firewall allow to guard handlers

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func IsGranted

func IsGranted(ctx context.Context, role identity.Role) bool

IsGranted returns false if Identity is not set within request's context or user does not have required role, true otherwise

Types

This section is empty.

Jump to

Keyboard shortcuts

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