Documentation
¶
Index ¶
- type App
- func (this *App) Bus() gopi.Bus
- func (this *App) Close() error
- func (this *App) Display() gopi.Display
- func (this *App) Emit(e gopi.Event)
- func (this *App) Flags() gopi.Flags
- func (this *App) I2C() gopi.I2C
- func (this *App) Init(name string, units []string) error
- func (this *App) Log() gopi.Logger
- func (this *App) Platform() gopi.Platform
- func (this *App) Run() int
- func (this *App) Start(args []string) int
- func (this *App) String() string
- func (this *App) Timer() gopi.Timer
- func (this *App) UnitInstance(name string) gopi.Unit
- func (this *App) UnitInstancesByName(name string) []gopi.Unit
- func (this *App) WaitForSignal(ctx context.Context, signals ...os.Signal) error
- type Logger
- func (this *Logger) Clone(name string) gopi.Logger
- func (this *Logger) Debug(args ...interface{})
- func (this *Logger) Error(err error) error
- func (this *Logger) Init(writer io.Writer, name string, debug bool) error
- func (this *Logger) IsDebug() bool
- func (this *Logger) Name() string
- func (this *Logger) String() string
- type Publisher
- func (this *Publisher) Close() error
- func (this *Publisher) Emit(queue uint, value interface{})
- func (this *Publisher) Len(queue uint) int
- func (this *Publisher) Subscribe(queue uint, capacity int, callback func(value interface{})) gopi.Channel
- func (this *Publisher) SubscribeInt(queue uint, capacity int) <-chan interface{}
- func (this *Publisher) Unsubscribe(stop gopi.Channel)
- func (this *Publisher) UnsubscribeInt(c <-chan interface{}) bool
- type Unit
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Logger ¶
type Logger struct { Unit // contains filtered or unexported fields }
Logger is the base struct for any logger
type Publisher ¶
func (*Publisher) Subscribe ¶
func (this *Publisher) Subscribe(queue uint, capacity int, callback func(value interface{})) gopi.Channel
Subscribe receives emitted messages until Unsubscribe is called
func (*Publisher) SubscribeInt ¶
func (*Publisher) Unsubscribe ¶
func (this *Publisher) Unsubscribe(stop gopi.Channel)
Unsubscribe waits until the receive loop has completed
func (*Publisher) UnsubscribeInt ¶
Click to show internal directories.
Click to hide internal directories.