Documentation ¶
Index ¶
- type MockParamsView
- func (view *MockParamsView) FindBigIntBy(accessor types.ParamAccessor) (*big.Int, error)
- func (view *MockParamsView) FindBoolBy(accessor types.ParamAccessor) (bool, error)
- func (view *MockParamsView) FindBy(accessor types.ParamAccessor) (string, error)
- func (view *MockParamsView) FindDurationBy(accessor types.ParamAccessor) (time.Duration, error)
- func (view *MockParamsView) FindInt64By(accessor types.ParamAccessor) (int64, error)
- func (view *MockParamsView) FindUint64By(accessor types.ParamAccessor) (uint64, error)
- func (view *MockParamsView) Set(accessor types.ParamAccessor, value string) error
- type Params
- type ParamsView
- func (view *ParamsView) FindBigIntBy(accessor types.ParamAccessor) (*big.Int, error)
- func (view *ParamsView) FindBoolBy(accessor types.ParamAccessor) (bool, error)
- func (view *ParamsView) FindBy(accessor types.ParamAccessor) (string, error)
- func (view *ParamsView) FindDurationBy(accessor types.ParamAccessor) (time.Duration, error)
- func (view *ParamsView) FindInt64By(accessor types.ParamAccessor) (int64, error)
- func (view *ParamsView) FindUint64By(accessor types.ParamAccessor) (uint64, error)
- func (view *ParamsView) Set(accessor types.ParamAccessor, value string) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type MockParamsView ¶
type MockParamsView struct {
testify_mock.Mock
}
func (*MockParamsView) FindBigIntBy ¶
func (view *MockParamsView) FindBigIntBy(accessor types.ParamAccessor) (*big.Int, error)
func (*MockParamsView) FindBoolBy ¶
func (view *MockParamsView) FindBoolBy(accessor types.ParamAccessor) (bool, error)
func (*MockParamsView) FindBy ¶
func (view *MockParamsView) FindBy(accessor types.ParamAccessor) (string, error)
func (*MockParamsView) FindDurationBy ¶
func (view *MockParamsView) FindDurationBy(accessor types.ParamAccessor) (time.Duration, error)
func (*MockParamsView) FindInt64By ¶
func (view *MockParamsView) FindInt64By(accessor types.ParamAccessor) (int64, error)
func (*MockParamsView) FindUint64By ¶
func (view *MockParamsView) FindUint64By(accessor types.ParamAccessor) (uint64, error)
func (*MockParamsView) Set ¶
func (view *MockParamsView) Set(accessor types.ParamAccessor, value string) error
type Params ¶
type Params interface { Set(accessor types.ParamAccessor, value string) error FindBy(accessor types.ParamAccessor) (string, error) FindInt64By(accessor types.ParamAccessor) (int64, error) FindBigIntBy(accessor types.ParamAccessor) (*big.Int, error) FindUint64By(accessor types.ParamAccessor) (uint64, error) FindDurationBy(accessor types.ParamAccessor) (time.Duration, error) FindBoolBy(accessor types.ParamAccessor) (bool, error) }
func NewMockParamsView ¶
func NewMockParamsView() Params
type ParamsView ¶
type ParamsView struct {
// contains filtered or unexported fields
}
A generic param view
func (*ParamsView) FindBigIntBy ¶
func (view *ParamsView) FindBigIntBy(accessor types.ParamAccessor) (*big.Int, error)
func (*ParamsView) FindBoolBy ¶
func (view *ParamsView) FindBoolBy(accessor types.ParamAccessor) (bool, error)
func (*ParamsView) FindBy ¶
func (view *ParamsView) FindBy(accessor types.ParamAccessor) (string, error)
func (*ParamsView) FindDurationBy ¶
func (view *ParamsView) FindDurationBy(accessor types.ParamAccessor) (time.Duration, error)
func (*ParamsView) FindInt64By ¶
func (view *ParamsView) FindInt64By(accessor types.ParamAccessor) (int64, error)
func (*ParamsView) FindUint64By ¶
func (view *ParamsView) FindUint64By(accessor types.ParamAccessor) (uint64, error)
func (*ParamsView) Set ¶
func (view *ParamsView) Set(accessor types.ParamAccessor, value string) error
Click to show internal directories.
Click to hide internal directories.