exporter

package
v0.7.0 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type CashCollector added in v0.5.0

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

func NewCashCollector added in v0.5.0

func NewCashCollector(client *goksei.Client, username string) *CashCollector

func (*CashCollector) Collect added in v0.5.0

func (c *CashCollector) Collect(ch chan<- prometheus.Metric)

func (*CashCollector) Describe added in v0.5.0

func (c *CashCollector) Describe(ch chan<- *prometheus.Desc)

type Error added in v0.5.0

type Error struct {
	Account string
	Method  string
	Params  []string
	Cause   error
}

func (Error) Error added in v0.5.0

func (e Error) Error() string

type Exporter

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

func New

func New(ksei config.KSEI) (*Exporter, error)

func (*Exporter) Collectors added in v0.5.0

func (e *Exporter) Collectors() []prometheus.Collector

type ShareCollector added in v0.5.0

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

func NewShareCollector added in v0.5.0

func NewShareCollector(client *goksei.Client, username string, portfolio goksei.PortfolioType) *ShareCollector

func (*ShareCollector) Collect added in v0.5.0

func (c *ShareCollector) Collect(ch chan<- prometheus.Metric)

func (*ShareCollector) Describe added in v0.5.0

func (c *ShareCollector) Describe(ch chan<- *prometheus.Desc)

Jump to

Keyboard shortcuts

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