events

package
v2.3.3 Latest Latest
Warning

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

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

Documentation

Index

Constants

View Source
const (
	// TopicTypeInit ..
	TopicTypeInit = "init"
	// TopicTypeAdd ..
	TopicTypeAdd = "add"
	// TopicTypeDelete ..
	TopicTypeDelete = "delete"
	// TopicTypeUpdate ..
	TopicTypeUpdate = "update"
	// TopicTypeShow ..
	TopicTypeShow = "show"
	// TopicTypeHide ..
	TopicTypeHide = "hide"
)
View Source
const TopicAgv = "go.micro.topic.agv"

TopicAgv ..

View Source
const TopicPoint = "go.micro.topic.map.point"

TopicPoint ..

View Source
const TopicQBMessage = "go.micro.topic.qbmessage"
View Source
const TopicRoute = "go.micro.topic.map.route"

TopicRoute ..

View Source
const TopicSMessage string = "go.micro.topic.smessage"
View Source
const TopicSegment = "go.micro.topic.map.segment"

TopicSegment ..

View Source
const TopicStation = "go.micro.topic.map.station"

TopicStation ..

Variables

This section is empty.

Functions

func Marshal

func Marshal(msg interface{}) []byte

func MarshalQBMessage

func MarshalQBMessage(msg QBMessage) []byte

func MarshalSMessage

func MarshalSMessage(msg SMessage) []byte

Types

type QBMessage

type QBMessage struct {
	TsID       uint16
	Priority   uint16
	Code       uint16
	Ikey       uint16
	Parameters []uint16
}

func UnmarshalQBMessage

func UnmarshalQBMessage(data []byte) *QBMessage

func (QBMessage) Marshal

func (qb QBMessage) Marshal() []byte

func (QBMessage) String

func (qb QBMessage) String() string

func (*QBMessage) Unmarshal

func (qb *QBMessage) Unmarshal(data []byte) *QBMessage

type SMessage

type SMessage struct {
	Index          uint16
	Magic1         uint16
	Magic2         uint16
	Magic3         uint16
	Ts             uint16
	OrderStatus    uint16
	CarrierNo      uint16
	CarrierStatus  uint16
	CarrierStation uint16
}

func UnmarshalSMessage

func UnmarshalSMessage(data []byte) *SMessage

func (SMessage) Marshal

func (s SMessage) Marshal() []byte

func (SMessage) String

func (s SMessage) String() string

func (*SMessage) Unmarshal

func (s *SMessage) Unmarshal(data []byte) *SMessage

Jump to

Keyboard shortcuts

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