observer

package
v0.0.0-...-d49e4fc Latest Latest
Warning

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

Go to latest
Published: Jun 4, 2025 License: MIT Imports: 18 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type JSONOutput

type JSONOutput struct {
	Output io.Writer
	// contains filtered or unexported fields
}

func NewJSONOutput

func NewJSONOutput() *JSONOutput

NewJSON displays the market as json format

func (*JSONOutput) Update

func (j *JSONOutput) Update(info exchange.MarketDisplayInfo)

type MarketAPIServer

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

func NewMarketAPIServer

func NewMarketAPIServer() *MarketAPIServer

func (*MarketAPIServer) Update

func (j *MarketAPIServer) Update(info exchange.MarketDisplayInfo)

type MarketAlerter

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

func NewMarketAlerter

func NewMarketAlerter() (*MarketAlerter, error)

func (*MarketAlerter) Update

func (j *MarketAlerter) Update(info exchange.MarketDisplayInfo)

type PolybarConfig

type PolybarConfig struct {
	ShortOnlyOnWeekend bool
}

type PolybarOutput

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

func NewPolybarOutput

func NewPolybarOutput(config PolybarConfig) *PolybarOutput

func (*PolybarOutput) Update

func (polybar *PolybarOutput) Update(info exchange.MarketDisplayInfo)

type TemplateOutput

type TemplateOutput struct {
	Output   io.Writer
	Template *template.Template
}

func NewTemplateOutput

func NewTemplateOutput(format string) TemplateOutput

func (TemplateOutput) Update

func (t TemplateOutput) Update(info exchange.MarketDisplayInfo)

type WaybarConfig

type WaybarConfig struct {
	ShortOnlyOnWeekend bool
}

type WaybarOutput

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

func NewWaybarOutput

func NewWaybarOutput(config WaybarConfig) *WaybarOutput

func (*WaybarOutput) Update

func (waybar *WaybarOutput) Update(info exchange.MarketDisplayInfo)

Jump to

Keyboard shortcuts

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