inmemory

package
v1.0.4 Latest Latest
Warning

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

Go to latest
Published: Oct 31, 2021 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type InMemoryStore

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

func NewInMemoryStore

func NewInMemoryStore() *InMemoryStore

func (*InMemoryStore) DeleteAuthToken

func (ims *InMemoryStore) DeleteAuthToken(token string) error

func (*InMemoryStore) DeleteResetPasswordToken

func (ims *InMemoryStore) DeleteResetPasswordToken(token string) error

func (*InMemoryStore) GetAuthTokenPID

func (ims *InMemoryStore) GetAuthTokenPID(tokenValue string) (authcore.PID, error)

func (*InMemoryStore) GetResetPasswordTokenPID

func (ims *InMemoryStore) GetResetPasswordTokenPID(tokenValue string) (authcore.PID, error)

func (*InMemoryStore) StoreAuthToken

func (ims *InMemoryStore) StoreAuthToken(token *authcore.Token, pid authcore.PID) error

func (*InMemoryStore) StoreResetPasswordToken

func (ims *InMemoryStore) StoreResetPasswordToken(token *authcore.Token, pid authcore.PID) error

type Session

type Session struct {
	Token *authcore.Token
	PID   authcore.PID
}

Jump to

Keyboard shortcuts

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