view

package
v1.1.10 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Nov 22, 2021 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Index

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

func NewParamsView

func NewParamsView(rdbHandle *rdb.Handle, tableName string) 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

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL