auth

package
v0.0.0-...-107fb91 Latest Latest
Warning

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

Go to latest
Published: Jun 1, 2021 License: MIT Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func DecryptAndValidate

func DecryptAndValidate(es string, obj interface{}) error

func Delete

func Delete(w http.ResponseWriter)

func EncryptAndSign

func EncryptAndSign(obj interface{}) (string, error)

func Init

func Init(key, coder string)

func Put

func Put(w http.ResponseWriter, s *Session)

Types

type PatreonState

type PatreonState struct {
	ReturnTo string `json:"return_to"`
	IV       string `json:"iv"`
}

type Session

type Session struct {
	Patreon     patreon.PatreonSession
	SessionDate time.Time
}

func Get

func Get(req *http.Request) *Session

func (Session) MarshalJSON

func (s Session) MarshalJSON() ([]byte, error)

func (*Session) UnmarshalJSON

func (s *Session) UnmarshalJSON(j []byte) error

func (*Session) Update

func (s *Session) Update()

Jump to

Keyboard shortcuts

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