comm

package
v2.19.2 Latest Latest
Warning

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

Go to latest
Published: Feb 5, 2026 License: GPL-3.0 Imports: 7 Imported by: 0

Documentation

Overview

Package comm provides functionallity to communitate with elephant

Index

Constants

View Source
const (
	QueryRequestHandlerPos     = 0
	ActivateRequestHandlerPos  = 1
	SubscribeRequestHandlerPos = 2
	MenuRequestHandlerPos      = 3
	StateRequestHandlerPos     = 4
	Protobuf                   = 0
	JSON                       = 1
)

Variables

View Source
var (
	Socket string
)

connection id

Functions

func StartListen

func StartListen()

Types

type MessageHandler

type MessageHandler interface {
	Handle(format uint8, cid uint32, conn net.Conn, data []byte)
}

Directories

Path Synopsis
Package client provides simple functions to communicate with the socket.
Package client provides simple functions to communicate with the socket.
Package handlers providers all the communication handlers
Package handlers providers all the communication handlers

Jump to

Keyboard shortcuts

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