httptoken

package
v0.0.0-...-ac57ee9 Latest Latest
Warning

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

Go to latest
Published: Jun 19, 2020 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type CookieToken

type CookieToken struct {
	Name   string
	Ticket *ticket.Ticket
}

func (*CookieToken) Authorize

func (*CookieToken) Invalidate

func (t *CookieToken) Invalidate(w http.ResponseWriter)

func (*CookieToken) Write

type Token

type Token interface {
	Write(w http.ResponseWriter, m encoding.BinaryMarshaler) error
	Authorize(w http.ResponseWriter, r *http.Request, p encoding.BinaryUnmarshaler) error
	Invalidate(w http.ResponseWriter)
}

Jump to

Keyboard shortcuts

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