handlers

package
v0.0.0-...-b7f90a5 Latest Latest
Warning

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

Go to latest
Published: Nov 20, 2017 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewRenamers

func NewRenamers(c *config.Config) *[]Renamer

Types

type AppendHandler

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

func (AppendHandler) Handle

func (a AppendHandler) Handle(m *monitors.Monitors) bool

func (*AppendHandler) Initialize

func (b *AppendHandler) Initialize(c *config.Config)

func (AppendHandler) ShouldHandle

func (a AppendHandler) ShouldHandle() bool

type Handler

type Handler interface {
	Initialize(*config.Config)
	ShouldHandle() bool
	Handle(*monitors.Monitors) bool
}

type Handlers

type Handlers []Handler

func NewHandlers

func NewHandlers(c *config.Config) *Handlers

func (Handlers) Handle

func (h Handlers) Handle(m *monitors.Monitors)

type RemoveHandler

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

func (RemoveHandler) Handle

func (r RemoveHandler) Handle(m *monitors.Monitors) bool

func (*RemoveHandler) Initialize

func (b *RemoveHandler) Initialize(c *config.Config)

func (RemoveHandler) ShouldHandle

func (r RemoveHandler) ShouldHandle() bool

type RenameHandler

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

func (RenameHandler) Handle

func (r RenameHandler) Handle(m *monitors.Monitors) bool

func (*RenameHandler) Initialize

func (r *RenameHandler) Initialize(c *config.Config)

func (RenameHandler) ShouldHandle

func (r RenameHandler) ShouldHandle() bool

type Renamer

type Renamer interface {
	Initialize(*config.Config)
	CanRename(*monitors.Desktop, int) bool
	Rename(*monitors.Desktop, int) bool
}

Jump to

Keyboard shortcuts

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