watcher

package
v0.1.2 Latest Latest
Warning

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

Go to latest
Published: Jul 6, 2020 License: MIT Imports: 18 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Code

func Code(directory string, c CodeCallback)

func Keyboard

func Keyboard(c KeyboardCallback)

Listen for keyboard inputs

func Queue

func Queue(storage *store.Store, apiClient *api.Api, callback func(structure *api.DefaultReplyStructure, err error))

func Sessions

func Sessions(storage *store.Store)

Function is used to see if a session has passed threshold times if it has, it will add the session to the send queue and update the state with new data.

Types

type CodeCallback

type CodeCallback func(event CodeEvent)

type CodeEvent

type CodeEvent struct {
	Id       string
	FilePath string
	FileName string
	Project  string
	Language string
	Git      string
	Branch   string
	Err      error
}

type Key

type Key uint16

type KeyEvent

type KeyEvent struct {
	Key  Key
	Rune rune
	Err  error
}

type KeyboardCallback

type KeyboardCallback func(event KeyEvent)

Jump to

Keyboard shortcuts

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