gen

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: 11 Imported by: 0

Documentation

Index

Constants

View Source
const (
	UNKNOWN_FORMAT Format = ""
	JSON_FORMAT           = "http://www.sepl.wifa.uni-leipzig.de/ontlogies/device-repo#json"
	PLAIN_FORMAT          = "http://www.sepl.wifa.uni-leipzig.de/ontlogies/device-repo#PlainText"
)
View Source
const TermSymbol = rdf.TermLiteral + 1

Variables

This section is empty.

Functions

func CreateNewEndpoint

func CreateNewEndpoint(db interfaces.Persistence, endpointMsg EndpointGenMsg, owner string) (endpoint model.Endpoint, err error)

Types

type EndpointGenMsg

type EndpointGenMsg struct {
	Endpoint        string               `json:"endpoint"`
	ProtocolHandler string               `json:"protocol_handler"`
	Parts           []EndpointGenMsgPart `json:"parts"`
}

type EndpointGenMsgPart

type EndpointGenMsgPart struct {
	Msg            string `json:"msg"`
	MsgSegmentName string `json:"msg_segment_name"`
}

type Format

type Format string

func ValueTypeFromMessage

func ValueTypeFromMessage(db interfaces.Persistence, msg string) (valueType model.ValueType, format Format, struc interface{}, err error)

Jump to

Keyboard shortcuts

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