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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AESCrypto

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

func NewAESCrypto

func NewAESCrypto(key []byte) (*AESCrypto, error)

func (*AESCrypto) Decrypt

func (a *AESCrypto) Decrypt(data []byte) ([]byte, error)

func (*AESCrypto) DecryptString

func (a *AESCrypto) DecryptString(data string) (string, error)

func (*AESCrypto) Encrypt

func (a *AESCrypto) Encrypt(data []byte) ([]byte, error)

func (*AESCrypto) EncryptString

func (a *AESCrypto) EncryptString(data string) (string, error)

type Base64Repository

type Base64Repository struct {
}

func NewBase64Repository

func NewBase64Repository() *Base64Repository

func (*Base64Repository) Decode

func (br *Base64Repository) Decode(s string) (string, error)

func (*Base64Repository) Encode

func (br *Base64Repository) Encode(data string) string

type FileSystemRepository

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

func NewFileSystemRepository

func NewFileSystemRepository(rootPath string) (*FileSystemRepository, error)

func (*FileSystemRepository) Delete

func (fr *FileSystemRepository) Delete(fileName string) error

func (*FileSystemRepository) Read

func (fr *FileSystemRepository) Read(fileName string) ([]byte, error)

func (*FileSystemRepository) Write

func (fr *FileSystemRepository) Write(fileName string, data []byte) error

type UUIDGenerator

type UUIDGenerator struct {
}

func NewUUIDGenerator

func NewUUIDGenerator() *UUIDGenerator

func (*UUIDGenerator) GetUUID

func (ug *UUIDGenerator) GetUUID() string

Jump to

Keyboard shortcuts

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