Documentation ¶
Index ¶
- Constants
- Variables
- func AddModule(identifier string, id []byte)
- func Cleanup()
- func LoadModules(path string)
- func NewIPCID(identifier string, id []byte)
- func NewIPCMessage(identifierKey string, messageType byte, data []byte) (*ipc.IPCRequest, error)
- func SetServerIdentifier(id []byte)
- type DataSource
- type IPCServer
- type ReturnData
Constants ¶
View Source
const ( AF_UNIX = "unix" // UNIX domain sockets AF_DGRAM = "unixgram" // UNIX domain datagram sockets as specified in net package )
CONSTANTS * The following constants are used for the IPC communication between the connector and the other modules.
Variables ¶
View Source
var IPCID []byte
View Source
var MODULEIDENTIFIERS map[string][]byte
IDENTIFIERS * To identify the module, the client will send a 4 byte identifier as part of the header.
View Source
var MSGTYPE map[string]byte
View Source
var SERVERIDENTIFIER [4]byte
Functions ¶
func LoadModules ¶
func LoadModules(path string)
func NewIPCMessage ¶
Function to create a new IPCMessage based on the identifier key
func SetServerIdentifier ¶
func SetServerIdentifier(id []byte)
Set the server identifier to the SERVERIDENTIFIER variable
Types ¶
type DataSource ¶
type DataSource struct { }
type IPCServer ¶
type IPCServer struct {
// contains filtered or unexported fields
}
TYPES * Types for the IPC communication between the connector and the other modules.
func NewIPCServer ¶
NewIPCServer creates a new IPC server and returns it.
func (*IPCServer) InitServerSocket ¶
Write a socket file and add it to the map
type ReturnData ¶
func (*ReturnData) GetLogs ¶
func (d *ReturnData) GetLogs(path string, filter string)
TODO: Where should we tell the server where to get the logs from?
Click to show internal directories.
Click to hide internal directories.