adapters

package
v0.0.0-...-e03766a Latest Latest
Warning

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

Go to latest
Published: Feb 9, 2022 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type EncrypterAdapter

type EncrypterAdapter struct{}

func NewEncrypterAdapter

func NewEncrypterAdapter() (*EncrypterAdapter, *shared.Error)

func (*EncrypterAdapter) Compare

func (encrypterAdapter *EncrypterAdapter) Compare(text string, hash string) (bool, *shared.Error)

func (*EncrypterAdapter) Hash

func (encrypterAdapter *EncrypterAdapter) Hash(text string) (string, *shared.Error)

type SessionAdapter

type SessionAdapter struct{}

func NewSessionAdapter

func NewSessionAdapter() (*SessionAdapter, *shared.Error)

func (*SessionAdapter) Generate

func (*SessionAdapter) Generate(
	userId string,
) (*providers.SessionData, *shared.Error)

Jump to

Keyboard shortcuts

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