lib

package
v1.0.6 Latest Latest
Warning

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

Go to latest
Published: Apr 8, 2020 License: MPL-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

View Source
const (
	GRPCMaxRecvMsgSize = 10 * 1024 * 1024
	GRPCMaxSendMsgSize = 10 * 1024 * 1024

	INDIServerMaxRecvMsgSize = 49152
	INDIServerMaxSendMsgSize = 2048

	ModeSolo    = "solo"
	ModeShare   = "share"
	ModeRobotic = "robotic"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type INDIDriver

type INDIDriver struct {
	Binary   string      `json:"binary"`
	Skeleton interface{} `json:"skeleton"`
	Family   string      `json:"family"`
	Label    string      `json:"label"`
	Version  string      `json:"version"`
	Role     string      `json:"role"`
	Custom   bool        `json:"custom"`
	Name     string      `json:"name"`
}

[

{"binary": "indi_asi_ccd", "skeleton": null, "family": "CCDs", "label": "ZWO CCD", "version": "1.5", "role": "", "custom": false, "name": "ZWO CCD"},
{"binary": "indi_ieq_telescope", "skeleton": null, "family": "Telescopes", "label": "iOptron CEM25", "version": "1.8", "role": "", "custom": false, "name": "iEQ"},
{"binary": "indi_asi_focuser", "skeleton": null, "family": "Focusers", "label": "ASI EAF", "version": "1.5", "role": "", "custom": false, "name": "ASI EAF"}

]

type INDIProfile

type INDIProfile struct {
	ID          uint32 `json:"id"`
	Name        string `json:"name"`
	Port        uint32 `json:"port"`
	AutoStart   uint32 `json:"autostart"`
	AutoConnect uint32 `json:"autoconnect"`
}

{"id": 1, "name": "Simulators", "port": 7624, "autostart": 0, "autoconnect": 0}

type XmlFlattener

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

XmlFlattener reads XML from INDI-server by chunks and returns elements

func NewXmlFlattener

func NewXmlFlattener() *XmlFlattener

NewXMLReader returns XmlReader

func (*XmlFlattener) ConvertChunkToJSON

func (r *XmlFlattener) ConvertChunkToJSON(chunk []byte) [][]byte

func (*XmlFlattener) ConvertJSONToXML

func (r *XmlFlattener) ConvertJSONToXML(jsonData []byte) ([]byte, error)

func (*XmlFlattener) FeedChunk

func (r *XmlFlattener) FeedChunk(chunk []byte) [][]byte

Jump to

Keyboard shortcuts

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