Documentation ¶
Index ¶
- func NewQueue() *queue
- 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) Fonts() gopi.FontManager
- func (this *App) GPIO() gopi.GPIO
- func (this *App) I2C() gopi.I2C
- func (this *App) Init(name string, units []string) error
- func (this *App) Input() gopi.InputManager
- func (this *App) LIRC() gopi.LIRC
- func (this *App) Log() gopi.Logger
- func (this *App) Platform() gopi.Platform
- func (this *App) Run() int
- func (this *App) SPI() gopi.SPI
- func (this *App) Start(app gopi.App, args []string) error
- func (this *App) String() string
- func (this *App) Surfaces() gopi.SurfaceManager
- 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) Info(args ...interface{})
- 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
- func (this *Logger) Warn(args ...interface{})
- type PubSub
- type Publisher
- func (this *Publisher) Close()
- func (this *Publisher) Emit(num uint, value interface{})
- func (this *Publisher) Init(num uint) *queue
- func (this *Publisher) NextToken() gopi.Channel
- func (this *Publisher) Subscribe(num uint, callback func(value interface{})) gopi.Channel
- func (this *Publisher) Unsubscribe(token gopi.Channel)
- type Unit
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type App ¶
type App struct {
// contains filtered or unexported fields
}
func (*App) UnitInstance ¶
func (*App) UnitInstancesByName ¶
type Logger ¶
type Logger struct { Unit // contains filtered or unexported fields }
Logger is the base struct for any logger
type PubSub ¶ added in v2.0.27
func (*PubSub) Emit ¶ added in v2.0.27
func (this *PubSub) Emit(value interface{})
Emit an event onto all subscriber channels, this method will block until all subscribers receive the value
func (*PubSub) Subscribe ¶ added in v2.0.27
func (this *PubSub) Subscribe() <-chan interface{}
Subscribe returns a new channel on which emitting events can occur
func (*PubSub) Unsubscribe ¶ added in v2.0.27
func (this *PubSub) Unsubscribe(subscriber <-chan interface{})
Unsubscribe closes a channel and removes it from the list of channels which emitting can happen on
Click to show internal directories.
Click to hide internal directories.