application

package
v0.0.0-...-fd23dd1 Latest Latest
Warning

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

Go to latest
Published: Jan 21, 2019 License: OSL-3.0 Imports: 11 Imported by: 6

Documentation

Index

Constants

View Source
const (
	TokenName = "csrftoken"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type Service

type Service interface {
	Generate(session *web.Session) string
	IsValid(request *web.Request) bool
}

type ServiceImpl

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

func (*ServiceImpl) Generate

func (s *ServiceImpl) Generate(session *web.Session) string

func (*ServiceImpl) Inject

func (s *ServiceImpl) Inject(l flamingo.Logger, cfg *struct {
	Secret string  `inject:"config:csrf.secret"`
	Ttl    float64 `inject:"config:csrf.ttl"`
})

func (*ServiceImpl) IsValid

func (s *ServiceImpl) IsValid(request *web.Request) bool

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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