mapper

package
v0.0.0-...-fe6dcde Latest Latest
Warning

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

Go to latest
Published: Feb 9, 2020 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var Manifest *module.Manifest

Functions

func NewModule

func NewModule(wrap *module.Wrap) (module.Module, error)

Types

type Config

type Config struct {
	base.Config
	Mapping    map[string]interface{} `json:"Mapping"`
	ReceiverId string                 `json:"ReceiverId"`
	Default    interface{}            `json:"Default"`
	FromKey    string                 `json:"FromKey"`
	ToKey      string                 `json:"ToKey"`
}

type Configurer

type Configurer interface {
	base.Configurer
}

type Module

type Module struct {
	base.Module
	Mapping    map[string]interface{}
	ReceiverId string
	Default    interface{}
	FromKey    string
	ToKey      string
}

func NewRouter

func NewRouter(w *module.Wrap) (*Module, error)

func (*Module) Receive

func (p *Module) Receive(val interface{})

type Receiver

type Receiver interface {
	Receive(interface{})
}

Jump to

Keyboard shortcuts

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