internal

package
v0.0.0-...-ad944e5 Latest Latest
Warning

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

Go to latest
Published: Oct 16, 2018 License: MIT Imports: 14 Imported by: 0

Documentation

Index

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

func LoadConfig() (Config, error)

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

func NewResolver(config Config) *Resolver

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

func (r *Resolver) ResolveXConnection() *xgb.Conn

ResolveXConnection resolves the application's X connection, setting up extensions, etc.

Jump to

Keyboard shortcuts

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