Documentation
¶
Overview ¶
Package repository is a generated GoMock package.
Index ¶
- Variables
- type DBRepository
- type DBRepositoryInterface
- type Env
- type FsRepository
- 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) ListDirs(path string) ([]string, error)
- func (repo *FsRepository) ListFiles(path string) ([]string, error)
- func (repo *FsRepository) Read(path string) ([]byte, error)
- func (repo *FsRepository) Remove(path string) error
- func (repo *FsRepository) WorkDir() (string, error)
- type FsRepositoryInterface
- type LogRepository
- type LogRepositoryInterface
- type MockLogRepositoryInterface
- type MockLogRepositoryInterfaceMockRecorder
- type Prompt
- func (prompt *Prompt) Ask(message string, notice string, value *string) error
- func (prompt *Prompt) AskSuggest(message string, notice string, suggestion []string, value *string, ...) error
- func (prompt *Prompt) Confirm(message string, value *bool) error
- func (prompt *Prompt) Select(options []string, value *string) error
- func (prompt *Prompt) Text(message string, notice string, value *string) error
- type PromptInterface
- type Repos
Constants ¶
This section is empty.
Variables ¶
View Source
var ErrDBKeyNotFound = errors.New("no such key")
Functions ¶
This section is empty.
Types ¶
type DBRepository ¶ added in v0.0.10
type DBRepository struct {
// contains filtered or unexported fields
}
func (*DBRepository) Count ¶ added in v0.0.10
func (repo *DBRepository) Count() int
func (*DBRepository) Keys ¶ added in v0.0.10
func (repo *DBRepository) Keys() []string
func (*DBRepository) Omit ¶ added in v0.0.10
func (repo *DBRepository) Omit(key string) error
type DBRepositoryInterface ¶ added in v0.0.10
type Env ¶ added in v0.0.10
type Env struct { WALKHTTP_URL_BASE string `env:"WALKHTTP_URL_BASE" envDefault:"https://example.com"` WALKHTTP_PERSIST_COUNT int `env:"WALKHTTP_PERSIST_COUNT" envDefault:"1000"` WALKHTTP_REQUEST_BODY string `env:"WALKHTTP_REQUEST_BODY" envDefault:"include"` WALKHTTP_RESPONSE_BODY string `env:"WALKHTTP_RESPONSE_BODY" envDefault:"include"` }
type FsRepository ¶
type FsRepository struct{}
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 Read(path string) ([]byte, error) ListDirs(path string) ([]string, error) ListFiles(path string) ([]string, error) }
type LogRepository ¶
type LogRepository struct {
// contains filtered or unexported fields
}
func (*LogRepository) Fatalf ¶
func (repo *LogRepository) Fatalf(format string, a ...any)
func (*LogRepository) GetAll ¶
func (repo *LogRepository) GetAll() string
func (*LogRepository) Printf ¶
func (repo *LogRepository) Printf(format string, a ...any)
type LogRepositoryInterface ¶
type MockLogRepositoryInterface ¶ added in v0.0.12
type MockLogRepositoryInterface struct {
// contains filtered or unexported fields
}
MockLogRepositoryInterface is a mock of LogRepositoryInterface interface.
func NewMockLogRepositoryInterface ¶ added in v0.0.12
func NewMockLogRepositoryInterface(ctrl *gomock.Controller) *MockLogRepositoryInterface
NewMockLogRepositoryInterface creates a new mock instance.
func (*MockLogRepositoryInterface) EXPECT ¶ added in v0.0.12
func (m *MockLogRepositoryInterface) EXPECT() *MockLogRepositoryInterfaceMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
func (*MockLogRepositoryInterface) Fatalf ¶ added in v0.0.12
func (m *MockLogRepositoryInterface) Fatalf(format string, a ...any)
Fatalf mocks base method.
func (*MockLogRepositoryInterface) GetAll ¶ added in v0.0.12
func (m *MockLogRepositoryInterface) GetAll() string
GetAll mocks base method.
func (*MockLogRepositoryInterface) Printf ¶ added in v0.0.12
func (m *MockLogRepositoryInterface) Printf(format string, a ...any)
Printf mocks base method.
type MockLogRepositoryInterfaceMockRecorder ¶ added in v0.0.12
type MockLogRepositoryInterfaceMockRecorder struct {
// contains filtered or unexported fields
}
MockLogRepositoryInterfaceMockRecorder is the mock recorder for MockLogRepositoryInterface.
func (*MockLogRepositoryInterfaceMockRecorder) Fatalf ¶ added in v0.0.12
func (mr *MockLogRepositoryInterfaceMockRecorder) Fatalf(format any, a ...any) *gomock.Call
Fatalf indicates an expected call of Fatalf.
func (*MockLogRepositoryInterfaceMockRecorder) GetAll ¶ added in v0.0.12
func (mr *MockLogRepositoryInterfaceMockRecorder) GetAll() *gomock.Call
GetAll indicates an expected call of GetAll.
type PromptInterface ¶
type PromptInterface interface { Confirm(message string, value *bool) error Ask(message string, notice string, value *string) error AskSuggest(message string, notice string, suggestion []string, value *string, validate func(string) error) error Text(message string, notice string, value *string) error Select(options []string, value *string) error }
type Repos ¶
type Repos struct { Fs FsRepositoryInterface Prompt PromptInterface Log LogRepositoryInterface DB DBRepositoryInterface Env Env }
Source Files
¶
Click to show internal directories.
Click to hide internal directories.