Documentation ¶
Overview ¶
Package settings is a generated GoMock package.
Index ¶
- Variables
- func All() []setting
- func Bool(key string) (bool, error)
- func DecodeOtherSliceOrMap(other, res any) error
- func Delete(key string) error
- func Exists(key string) bool
- func Float(key string) (float64, error)
- func Init() error
- func Int(key string) (int64, error)
- func Json(key string, res any) error
- func Persist() error
- func SetBool(key string, val bool)
- func SetFloat(key string, val float64)
- func SetInt(key string, val int64)
- func SetJson(key string, val any) error
- func SetString(key string, val string)
- func SetTime(key string, val time.Time)
- func SetYaml(key string, val any) error
- func String(key string) (string, error)
- func Time(key string) (time.Time, error)
- func Yaml(key string, other, res any) error
- type API
- type MockAPI
- type MockAPIMockRecorder
- type Settings
Constants ¶
This section is empty.
Variables ¶
View Source
var ErrNotFound = errors.New("not found")
Functions ¶
func DecodeOtherSliceOrMap ¶
Types ¶
type MockAPI ¶
type MockAPI struct {
// contains filtered or unexported fields
}
MockAPI is a mock of API interface.
func NewMockAPI ¶
func NewMockAPI(ctrl *gomock.Controller) *MockAPI
NewMockAPI creates a new mock instance.
func (*MockAPI) EXPECT ¶
func (m *MockAPI) EXPECT() *MockAPIMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
type MockAPIMockRecorder ¶
type MockAPIMockRecorder struct {
// contains filtered or unexported fields
}
MockAPIMockRecorder is the mock recorder for MockAPI.
Click to show internal directories.
Click to hide internal directories.