mapper

package
v0.0.6 Latest Latest
Warning

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

Go to latest
Published: Aug 23, 2019 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

View Source
const MapperName = "params"

Variables

This section is empty.

Functions

func BuildParamKey

func BuildParamKey(paramSpace string, key []byte) []byte

Types

type Mapper

type Mapper struct {
	*mapper.BaseMapper
	// contains filtered or unexported fields
}

func GetMapper

func GetMapper(ctx context.Context) *Mapper

func NewMapper

func NewMapper() *Mapper

func (*Mapper) Copy

func (mapper *Mapper) Copy() mapper.IMapper

func (Mapper) GetModuleParamSet

func (mapper Mapper) GetModuleParamSet(module string) (set types.ParamSet, exists bool)

func (Mapper) GetModuleParams

func (mapper Mapper) GetModuleParams(module string) (set types.ParamSet, exists bool)

func (Mapper) GetParam

func (mapper Mapper) GetParam(paramSpace string, key string) (value interface{}, exists bool)

func (Mapper) GetParamSet

func (mapper Mapper) GetParamSet(params types.ParamSet)

func (Mapper) GetParams

func (mapper Mapper) GetParams() (params []types.ParamSet)

func (Mapper) RegisterParamSet

func (mapper Mapper) RegisterParamSet(ps ...types.ParamSet)

func (Mapper) SetParam

func (mapper Mapper) SetParam(paramSpace string, key string, value interface{})

func (Mapper) SetParamSet

func (mapper Mapper) SetParamSet(params types.ParamSet)

func (Mapper) Validate

func (mapper Mapper) Validate(paramSpace string, key string, value string) btypes.Error

Jump to

Keyboard shortcuts

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