miop

package
v1.14.9 Latest Latest
Warning

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

Go to latest
Published: Nov 7, 2023 License: MIT Imports: 0 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Body

type Body struct {
	ReqHeader RequestHeader `json:"reqHead"`
	ReqBody   RequestBody   `json:"reqBody"`
	RepHeader ReplyHeader   `json:"repHeader"`
	RepBody   ReplyBody     `json:"repBody"`
}
type Header struct {
	Magic       string `json:"magic"`
	Version     string `json:"version"`
	ByteOrder   bool   `json:"byteOrder"`
	MessageType int    `json:"messageType"`
	Size        int    `json:"size"`
}

type MiopPacket

type MiopPacket struct {
	Hdr Header `json:"header"`
	Bd  Body   `json:"body"`
}

func CreateRepPacket

func CreateRepPacket(params interface{}) MiopPacket

func CreateReqPacket

func CreateReqPacket(op string, params []interface{}, adaptId int) MiopPacket

type ReplyBody

type ReplyBody struct {
	OperationResult interface{} `json:"operationresult"`
}

type ReplyHeader

type ReplyHeader struct {
	Context   string `json:"context"`
	RequestId int    `json:"requestId"`
	Status    int    `json:"status"`
}

type RequestBody

type RequestBody struct {
	Body []interface{} `json:"body"`
}

type RequestHeader

type RequestHeader struct {
	Context          string `json:"context"`
	RequestId        int    `json:"requestId"`
	ResponseExpected bool   `json:"responseExpected"`
	Key              int    `json:"key"`
	Operation        string `json:"operation"`
}

Jump to

Keyboard shortcuts

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