ir

package
v0.8.1 Latest Latest
Warning

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

Go to latest
Published: Mar 3, 2024 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 Connection

type Connection struct {
	SenderSide    PortAddr
	ReceiverSides []ReceiverConnectionSide
}

Connection represents connections between ports.

type FuncCall

type FuncCall struct {
	Ref string
	IO  FuncIO
	Msg *Msg
}

FuncCall represents a function within the program.

type FuncIO

type FuncIO struct {
	In  []PortAddr
	Out []PortAddr
}

FuncIO represents the input/output ports of a function.

type Msg

type Msg struct {
	Type  MsgType
	Bool  bool
	Int   int64
	Float float64
	Str   string
	List  []Msg
	Map   map[string]Msg
}

Msg represents a message.

type MsgType

type MsgType int32

MsgType is an enumeration of message types.

const (
	MsgTypeUnspecified MsgType = 0
	MsgTypeBool        MsgType = 1
	MsgTypeInt         MsgType = 2
	MsgTypeFloat       MsgType = 3
	MsgTypeString      MsgType = 4
	MsgTypeList        MsgType = 5
	MsgTypeMap         MsgType = 6
)

type PortAddr

type PortAddr struct {
	Path string
	Port string
	Idx  uint32
}

PortAddr represents the address of a port.

type PortInfo

type PortInfo struct {
	PortAddr PortAddr
	BufSize  uint32
}

PortInfo contains information about each port.

type Program

type Program struct {
	Ports       []PortInfo
	Connections []Connection
	Funcs       []FuncCall
}

Program represents the main structure containing ports, connections, and funcs.

type ReceiverConnectionSide

type ReceiverConnectionSide struct {
	PortAddr PortAddr
}

ReceiverConnectionSide represents the receiver side of a connection.

Jump to

Keyboard shortcuts

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