displayservice

package
v1.0.1 Latest Latest
Warning

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

Go to latest
Published: Jan 7, 2024 License: MIT Imports: 17 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Renderer

type Renderer interface {
	Draw(wg *sync.WaitGroup, ctx context.Context)
	Listen(wg *sync.WaitGroup, cancel context.CancelFunc)
	TableCh() chan<- *displaymodel.Table
	SummaryTableCh() chan<- *displaymodel.Table
	Close() error
}

type RendererService

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

func NewRendererService

func NewRendererService(
	ctx context.Context,
	logger logservice.Logger,
	exitCh chan<- os.Signal,
) *RendererService

func (*RendererService) Close

func (r *RendererService) Close() error

func (*RendererService) Draw

func (r *RendererService) Draw(wg *sync.WaitGroup, ctx context.Context)

func (*RendererService) Listen

func (r *RendererService) Listen(wg *sync.WaitGroup, cancel context.CancelFunc)

func (*RendererService) SummaryTableCh

func (r *RendererService) SummaryTableCh() chan<- *displaymodel.Table

func (*RendererService) TableCh

func (r *RendererService) TableCh() chan<- *displaymodel.Table

type RendererV2Service

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

func NewRendererV2Service

func NewRendererV2Service(
	ctx context.Context,
	cfg *config.Config,
	exitCh chan<- os.Signal,
	collector statservice.Collector,
) *RendererV2Service

func (*RendererV2Service) Run

func (r *RendererV2Service) Run(wg *sync.WaitGroup)

func (*RendererV2Service) Write

func (r *RendererV2Service) Write(p []byte) (n int, err error)

Jump to

Keyboard shortcuts

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