simbox

package
v0.0.0-...-3be6dbe Latest Latest
Warning

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

Go to latest
Published: Oct 11, 2023 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

View Source
const (
	TIMEC_ABS  uint8 = 0 + iota // Rules in absolute time
	TIMEC_NONE                  // Rules with no temporal components
	TIMEC_REL                   // Relative time aka periodic
)
View Source
const (
	ACTION_SET uint8 = 0 + iota
	ACTION_GET
	ACTION_SHOW
	ACTION_CONFIG
)

Variables

This section is empty.

Functions

This section is empty.

Types

type Prerror

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

func (Prerror) Error

func (e Prerror) Error() string

type Report

type Report struct {
}

type Rule

type Rule struct {
	Timec  uint8  // Time contraint type:
	Tick   uint64 // Tick (if appliable)
	Action uint8
	Object string
	Extra  string
}

func (Rule) String

func (rule Rule) String() string

type Simbox

type Simbox struct {
	Rules []Rule
}

func (*Simbox) Add

func (r *Simbox) Add(adds string) error

func (*Simbox) Del

func (r *Simbox) Del(idx int) error

func (*Simbox) Print

func (r *Simbox) Print() string

Jump to

Keyboard shortcuts

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