eventsourcing

package
v0.0.0-...-c94490f Latest Latest
Warning

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

Go to latest
Published: Feb 18, 2019 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var AmqpConn *amqp_wrapper_lib.Connection

Functions

func InitEventHandling

func InitEventHandling(db interfaces.Persistence) (err error)

func PublisGatewayRemove

func PublisGatewayRemove(id string) (err error)

func PublishDeviceInstance

func PublishDeviceInstance(instance model.DeviceInstance, creator string) (err error)

func PublishDeviceInstanceRemove

func PublishDeviceInstanceRemove(id string) (err error)

func PublishDeviceType

func PublishDeviceType(dt model.DeviceType, owner string) (err error)

func PublishDeviceTypeRemove

func PublishDeviceTypeRemove(id string) (err error)

func PublishGateway

func PublishGateway(gw model.Gateway, owner string) (err error)

func PublishGatewayCommand

func PublishGatewayCommand(gw GatewayCommand) (err error)

func PublishGatewayRef

func PublishGatewayRef(gw model.GatewayRef, name string, owner string) (err error)

func PublishValueType

func PublishValueType(vt model.ValueType, owner string) (err error)

func PublishValueTypeRemove

func PublishValueTypeRemove(id string) (err error)

Types

type DeviceTypeCommand

type DeviceTypeCommand struct {
	Command    string           `json:"command"`
	Id         string           `json:"id"`
	Owner      string           `json:"owner"`
	DeviceType model.DeviceType `json:"device_type"`
}

type DeviceinstanceCommand

type DeviceinstanceCommand struct {
	Command        string               `json:"command"`
	Id             string               `json:"id"`
	Owner          string               `json:"owner"`
	DeviceInstance model.DeviceInstance `json:"device_instance"`
}

type GatewayCommand

type GatewayCommand struct {
	Command string   `json:"command"`
	Id      string   `json:"id"`
	Owner   string   `json:"owner"`
	Name    string   `json:"name"`
	Hash    string   `json:"hash"`
	Devices []string `json:"devices"`
}

type ValueTypeCommand

type ValueTypeCommand struct {
	Command   string          `json:"command"`
	Id        string          `json:"id"`
	Owner     string          `json:"owner"`
	ValueType model.ValueType `json:"value_type"`
}

Jump to

Keyboard shortcuts

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