security

package
v0.0.0-...-ca57207 Latest Latest
Warning

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

Go to latest
Published: Aug 29, 2021 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

Functions

This section is empty.

Types

type FakeSecurity

type FakeSecurity struct {
}

FakeSecurity always returns true for the given request.

func ProvideFakeSecurity

func ProvideFakeSecurity() *FakeSecurity

func (*FakeSecurity) Verify

func (s *FakeSecurity) Verify(_ *http.Request) bool

type Security

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

func ProvideSecurityService

func ProvideSecurityService(cfg *config.Config) *Security

func (*Security) Verify

func (s *Security) Verify(req *http.Request) bool

Verify is a wrapper around `verify`

Jump to

Keyboard shortcuts

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