Documentation
¶
Index ¶
- type DatabaseMockRepository
- type DbRepository
- type DbRepositoryInterface
- type FsMockRepository
- func (repo *FsMockRepository) CopyFile(srcPath string, dstPath string) error
- func (repo *FsMockRepository) Create(path string, body []byte) error
- func (repo *FsMockRepository) CreateDir(path string) error
- func (repo *FsMockRepository) HomeDir() (string, error)
- func (repo *FsMockRepository) IsDir(path string) (bool, error)
- func (repo *FsMockRepository) IsExist(path string) bool
- func (repo *FsMockRepository) ListFiles(path string) ([]string, error)
- func (repo *FsMockRepository) Remove(path string) error
- func (repo *FsMockRepository) WorkDir() (string, error)
- type FsRepository
- func (repo *FsRepository) CopyFile(srcPath string, dstPath string) error
- func (repo *FsRepository) Create(path string, body []byte) error
- func (repo *FsRepository) CreateDir(path string) error
- func (repo *FsRepository) HomeDir() (string, error)
- func (repo *FsRepository) IsDir(path string) (bool, error)
- func (repo *FsRepository) IsExist(path string) bool
- func (repo *FsRepository) ListFiles(path string) ([]string, error)
- func (repo *FsRepository) Remove(path string) error
- func (repo *FsRepository) WorkDir() (string, error)
- type FsRepositoryInterface
- type LogRepository
- type LogRepositoryInterface
- type Repos
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type DatabaseMockRepository ¶
type DatabaseMockRepository struct {
DbRepository
}
func (*DatabaseMockRepository) IsDBExist ¶
func (repo *DatabaseMockRepository) IsDBExist() bool
type DbRepository ¶
type DbRepository struct{}
func (*DbRepository) Delete ¶
func (repo *DbRepository) Delete(partition string, rangev string) error
func (*DbRepository) Get ¶
func (repo *DbRepository) Get(partition string, rangev string, result interface{}) error
func (*DbRepository) List ¶
func (repo *DbRepository) List(partition string, result interface{}) error
func (*DbRepository) Put ¶
func (repo *DbRepository) Put(data interface{}) error
type DbRepositoryInterface ¶
type FsMockRepository ¶
type FsMockRepository struct {
Files []string
}
func (*FsMockRepository) CopyFile ¶
func (repo *FsMockRepository) CopyFile(srcPath string, dstPath string) error
func (*FsMockRepository) Create ¶
func (repo *FsMockRepository) Create(path string, body []byte) error
func (*FsMockRepository) CreateDir ¶
func (repo *FsMockRepository) CreateDir(path string) error
func (*FsMockRepository) HomeDir ¶
func (repo *FsMockRepository) HomeDir() (string, error)
func (*FsMockRepository) IsExist ¶
func (repo *FsMockRepository) IsExist(path string) bool
func (*FsMockRepository) ListFiles ¶
func (repo *FsMockRepository) ListFiles(path string) ([]string, error)
func (*FsMockRepository) Remove ¶
func (repo *FsMockRepository) Remove(path string) error
func (*FsMockRepository) WorkDir ¶
func (repo *FsMockRepository) WorkDir() (string, error)
type FsRepository ¶
type FsRepository struct{}
func (*FsRepository) CopyFile ¶
func (repo *FsRepository) CopyFile(srcPath string, dstPath string) error
func (*FsRepository) CreateDir ¶
func (repo *FsRepository) CreateDir(path string) error
func (*FsRepository) HomeDir ¶
func (repo *FsRepository) HomeDir() (string, error)
func (*FsRepository) IsExist ¶
func (repo *FsRepository) IsExist(path string) bool
func (*FsRepository) Remove ¶
func (repo *FsRepository) Remove(path string) error
func (*FsRepository) WorkDir ¶
func (repo *FsRepository) WorkDir() (string, error)
type FsRepositoryInterface ¶
type FsRepositoryInterface interface { IsExist(path string) bool IsDir(path string) (bool, error) CreateDir(path string) error Create(path string, body []byte) error HomeDir() (string, error) WorkDir() (string, error) Remove(path string) error CopyFile(srcPath string, dstPath string) error ListFiles(path string) ([]string, error) }
type LogRepository ¶
type LogRepository struct{}
func (*LogRepository) Err ¶
func (l *LogRepository) Err(err error)
func (*LogRepository) Info ¶
func (l *LogRepository) Info(message string, a ...any)
type LogRepositoryInterface ¶
type Repos ¶
type Repos struct { Fs FsRepositoryInterface Db DbRepositoryInterface Log LogRepositoryInterface }
Click to show internal directories.
Click to hide internal directories.