context

package
v0.5.0 Latest Latest
Warning

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

Go to latest
Published: Dec 27, 2019 License: MIT Imports: 10 Imported by: 0

Documentation

Index

Constants

View Source
const (
	CommandMode = "command"
	InsertMode  = "insert"
	SearchMode  = "search"

	ChatFocus = iota
	ThreadFocus
)

Variables

This section is empty.

Functions

This section is empty.

Types

type AppContext

type AppContext struct {
	Version    string
	Usage      string
	EventQueue chan termbox.Event
	Service    *service.SlackService
	Body       *termui.Grid
	View       *views.View
	Config     *config.Config
	Debug      bool
	Mode       string
	Focus      int
	Notify     *notificator.Notificator
}

func CreateAppContext

func CreateAppContext(flgConfig string, flgToken string, flgDebug bool, version string, usage string) (*AppContext, error)

CreateAppContext creates an application context which can be passed and referenced througout the application

Jump to

Keyboard shortcuts

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