providers

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: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type CacheProvider

type CacheProvider interface {
	Set(key string, value string) *shared.Error
	Get(key string) (string, *shared.Error)
	Delete(key string) *shared.Error
}

type EncrypterProvider

type EncrypterProvider interface {
	Hash(text string) (string, *shared.Error)
	Compare(text string, hash string) (bool, *shared.Error)
}

type SessionData

type SessionData struct {
	Key            string
	UserId         string
	ExpirationDate string
}

type SessionProvider

type SessionProvider interface {
	Generate(userId string) (*SessionData, *shared.Error)
}

Directories

Path Synopsis
Package mock_providers is a generated GoMock package.
Package mock_providers is a generated GoMock package.

Jump to

Keyboard shortcuts

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