ports

package
v0.0.0-...-d66a43f Latest Latest
Warning

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

Go to latest
Published: Mar 9, 2023 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 AuthenticationRepository

type AuthenticationRepository interface {
	Add(entity.User) error
	Exists(string) (bool, error)
	Get(string) (entity.User, error)
}

type AuthenticationService

type AuthenticationService interface {
	Register(string, string) (*entity.TokenDetails, error)
	LogIn(string, string) (*entity.TokenDetails, error)
}

type AuthorizationService

type AuthorizationService interface {
	CreateTokensAndMetaData(string) (*entity.TokenDetails, error)
	VerifyToken(string, string) (*jwt.Token, error)
}

type CacheRepository

type CacheRepository interface {
	Set(string, interface{}, time.Duration) (interface{}, error)
	Get(string) (interface{}, error)
}

type URLRepository

type URLRepository interface {
	Add(aggregate.URL) (string, error)
	Exists(string) (bool, error)
	Get(string) (aggregate.URL, error)
}

type URLService

type URLService interface {
	Add(string, *entity.User) (string, error)
	Get(string) (aggregate.URL, error)
}

Jump to

Keyboard shortcuts

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