Documentation ¶
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 LogMockRepository
- type LogRepository
- type LogRepositoryInterface
- 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 DBKeyNotFoundError = 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 NewDBRepository ¶ added in v0.0.10
func NewDBRepository() *DBRepository
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
func (*DBRepository) Read ¶ added in v0.0.10
func (repo *DBRepository) Read(key string) (interface{}, error)
func (*DBRepository) Write ¶ added in v0.0.10
func (repo *DBRepository) Write(key string, value interface{}) 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:"100"` 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 LogMockRepository ¶
type LogMockRepository struct {
// contains filtered or unexported fields
}
func (*LogMockRepository) Fatalf ¶
func (repo *LogMockRepository) Fatalf(format string, a ...any)
func (*LogMockRepository) GetAll ¶
func (repo *LogMockRepository) GetAll() string
func (*LogMockRepository) Printf ¶
func (repo *LogMockRepository) Printf(format string, a ...any)
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 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) 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.