mapper

package
v0.1.18 Latest Latest
Warning

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

Go to latest
Published: Mar 12, 2022 License: Apache-2.0 Imports: 16 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func RegistersToCoils added in v0.1.9

func RegistersToCoils(registers []uint16) []bool

Types

type CSVMapper added in v0.1.2

type CSVMapper struct {
	// contains filtered or unexported fields
}

func NewCSVMapper added in v0.1.2

func NewCSVMapper(c config.MapperConfig, cmc []config.CSVMappingConfig) (*CSVMapper, error)

func (*CSVMapper) DoMap added in v0.1.9

func (m *CSVMapper) DoMap(r *message.Raw) (*message.Mapped, error)

func (*CSVMapper) Map added in v0.1.2

func (m *CSVMapper) Map(subscriber mangos.Socket, publisher mangos.Socket)

type JSONMapper added in v0.1.16

type JSONMapper struct {
	// contains filtered or unexported fields
}

func NewJSONMapper added in v0.1.16

func NewJSONMapper(c config.MapperConfig, jmc []config.JSONMappingConfig) (*JSONMapper, error)

func (*JSONMapper) DoMap added in v0.1.16

func (m *JSONMapper) DoMap(r *message.Raw) (*message.Mapped, error)

func (*JSONMapper) Map added in v0.1.16

func (m *JSONMapper) Map(subscriber mangos.Socket, publisher mangos.Socket)

type Mapper

type Mapper interface {
	Map(subscriber mangos.Socket, publisher mangos.Socket)
}

Mapper interface

type ModbusMapper

type ModbusMapper struct {
	// contains filtered or unexported fields
}

func (*ModbusMapper) DoMap added in v0.1.9

func (m *ModbusMapper) DoMap(r *message.Raw) (*message.Mapped, error)

func (*ModbusMapper) Map

func (m *ModbusMapper) Map(subscriber mangos.Socket, publisher mangos.Socket)

type Nmea0183Mapper

type Nmea0183Mapper struct {
	// contains filtered or unexported fields
}

func NewNmea0183Mapper

func NewNmea0183Mapper(c config.MapperConfig) (*Nmea0183Mapper, error)

func (*Nmea0183Mapper) DoMap added in v0.1.9

func (m *Nmea0183Mapper) DoMap(r *message.Raw) (*message.Mapped, error)

func (*Nmea0183Mapper) Map

func (m *Nmea0183Mapper) Map(subscriber mangos.Socket, publisher mangos.Socket)

type RealMapper added in v0.1.9

type RealMapper interface {
	DoMap(*message.Raw) (*message.Mapped, error)
}

type SendOnChangeMapper added in v0.1.18

type SendOnChangeMapper struct {
	// contains filtered or unexported fields
}

func NewSendOnChangeMapper added in v0.1.18

func NewSendOnChangeMapper(c config.CacheConfig) *SendOnChangeMapper

func (*SendOnChangeMapper) Map added in v0.1.18

func (m *SendOnChangeMapper) Map(subscriber mangos.Socket, publisher mangos.Socket)

type VirtualMapper

type VirtualMapper struct {
	// contains filtered or unexported fields
}

func NewVirtualMapper

func NewVirtualMapper(c config.MapperConfig) (*VirtualMapper, error)

func (*VirtualMapper) Map

func (m *VirtualMapper) Map(subscriber mangos.Socket, publisher mangos.Socket)

Jump to

Keyboard shortcuts

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