server

package
v0.0.0-...-9e9632e Latest Latest
Warning

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

Go to latest
Published: Aug 5, 2020 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

View Source
const (
	KeyboardChan chanEnum = iota
	ResizeChan
)

Variables

This section is empty.

Functions

This section is empty.

Types

type ChanEnum

type ChanEnum interface {
	// contains filtered or unexported methods
}

type Server

type Server struct {
	types.ErrorChannel
	*graphics.Graphics
	// contains filtered or unexported fields
}

func New

func New(ctx context.Context, widgets map[ChanEnum][]types.Widget) *Server

func (*Server) GetRenderChan

func (s *Server) GetRenderChan() chan types.Message

func (*Server) StartRendering

func (s *Server) StartRendering(async bool)

func (*Server) Stop

func (s *Server) Stop()

func (*Server) SubscribeWidget

func (s *Server) SubscribeWidget(key ChanEnum, widget types.Widget)

Jump to

Keyboard shortcuts

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