renderer

package
v0.0.0-...-d371226 Latest Latest
Warning

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

Go to latest
Published: Mar 18, 2024 License: MIT Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func EscapeTgMd

func EscapeTgMd(in string) string

Types

type GraphConfig

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

func NewGraphConfig

func NewGraphConfig() *GraphConfig

func (*GraphConfig) Height

func (g *GraphConfig) Height(height int) *GraphConfig

func (*GraphConfig) Width

func (g *GraphConfig) Width(width int) *GraphConfig

func (*GraphConfig) WithSMA

func (g *GraphConfig) WithSMA(show bool) *GraphConfig

type HistoryRenderer

type HistoryRenderer struct {
}

func NewHistoryRenderer

func NewHistoryRenderer() *HistoryRenderer

func (*HistoryRenderer) Graph

func (h *HistoryRenderer) Graph(entries []models.History, out io.Writer, cfg *GraphConfig) (startDate time.Time, endDate time.Time, err error)

func (*HistoryRenderer) Log

func (h *HistoryRenderer) Log(entries []models.History) (string, error)

func (*HistoryRenderer) Rates

func (h *HistoryRenderer) Rates(rates models.Rates) (string, error)

Jump to

Keyboard shortcuts

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