Documentation ¶
Index ¶
- type Config
- type Resolver
- func (r *Resolver) ResolveApplication() *barbara.Application
- func (r *Resolver) ResolveBatteryInfoNotifierFactory() *battery.InfoNotifierFactory
- func (r *Resolver) ResolveEventDispatcher() *event.Dispatcher
- func (r *Resolver) ResolveModuleFactory() *barbara.ModuleFactory
- func (r *Resolver) ResolveX11RandrEventWatcher() *x11.RandrEventWatcher
- func (r *Resolver) ResolveXConnection() *xgb.Conn
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Config ¶
type Config struct { Primary barbara.WindowConfig `json:"primary"` Secondary barbara.WindowConfig `json:"secondary"` }
Config holds all application configuration.
func LoadConfig ¶
LoadConfig returns Barbara's configuration. It will either default to a directory under the user's home directory, or can be overridden via the environment.
type Resolver ¶
type Resolver struct {
// contains filtered or unexported fields
}
Resolver is a type that resolves Barbara's runtime dependencies. It handles wiring up types in the application, using plain Go.
func NewResolver ¶
NewResolver returns a new instance of Resolver.
func (*Resolver) ResolveApplication ¶
func (r *Resolver) ResolveApplication() *barbara.Application
ResolveApplication resolves the Application instance.
func (*Resolver) ResolveBatteryInfoNotifierFactory ¶
func (r *Resolver) ResolveBatteryInfoNotifierFactory() *battery.InfoNotifierFactory
ResolveBatteryInfoNotifierFactory resolves the application's battery InfoNotifierFactory instance.
func (*Resolver) ResolveEventDispatcher ¶
func (r *Resolver) ResolveEventDispatcher() *event.Dispatcher
ResolveEventDispatcher resolves the application's event dispatcher.
func (*Resolver) ResolveModuleFactory ¶
func (r *Resolver) ResolveModuleFactory() *barbara.ModuleFactory
ResolveModuleFactory resolves a new barbara.ModuleFactory instance, with available modules already registered with it.
func (*Resolver) ResolveX11RandrEventWatcher ¶
func (r *Resolver) ResolveX11RandrEventWatcher() *x11.RandrEventWatcher
ResolveX11RandrEventWatcher resolves a new x11.RandrEventWatcher instance.
func (*Resolver) ResolveXConnection ¶
ResolveXConnection resolves the application's X connection, setting up extensions, etc.