gui

package
v0.0.0-...-e164f83 Latest Latest
Warning

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

Go to latest
Published: Apr 6, 2024 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type GUI

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

func New

func New(logger Logger) *GUI

func (*GUI) Draw

func (g *GUI) Draw() error

func (*GUI) Log

func (g *GUI) Log(content string)

func (*GUI) RegisterOnStartHandler

func (g *GUI) RegisterOnStartHandler(handler func(token string)) *GUI

func (*GUI) RegisterOnStopHandler

func (g *GUI) RegisterOnStopHandler(handler func()) *GUI

func (*GUI) UpdateStats

func (g *GUI) UpdateStats(stats map[string]int)

type Log

type Log struct {
	CreatedAt time.Time
	Content   string
}

type Logger

type Logger interface {
	Log(content string)
	GetLogs() []Log
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL
JackTT - Gopher 🇻🇳