usecase_repository

package
v0.0.0-...-7e7cc72 Latest Latest
Warning

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

Go to latest
Published: Feb 20, 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 Base64Repository

type Base64Repository interface {
	Encode(string) string
	Decode(string) (string, error)
}

type CryptoRepository

type CryptoRepository interface {
	Encrypt(data []byte) ([]byte, error)
	Decrypt(data []byte) ([]byte, error)
	EncryptString(data string) (string, error)
	DecryptString(data string) (string, error)
}

type FileInfoRepository

type FileInfoRepository interface {
	Get(token domain.Token) (domain.FileInfo, error)
	Set(fileInfo domain.FileInfo) error
}

type FileSystemRepository

type FileSystemRepository interface {
	Read(fileName string) ([]byte, error)
	Write(fileName string, data []byte) error
	Delete(fileName string) error
}

type Logger

type Logger interface {
	Info(...interface{})
	Warn(...interface{})
	Error(...interface{})
	Errorf(string, ...interface{})
	Infof(string, ...interface{})
	WithField(string, interface{}) Logger
	Printf(string, ...interface{})
}

type UUIDGenerator

type UUIDGenerator interface {
	GetUUID() string
}

Jump to

Keyboard shortcuts

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