extstat

package
v0.3.6 Latest Latest
Warning

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

Go to latest
Published: Mar 19, 2024 License: AGPL-3.0 Imports: 15 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewServer

func NewServer(username, password string) *server

Types

type Config

type Config struct {
	Enabled  bool          `yaml:"enabled"`
	Addr     string        `yaml:"addr"`
	Interval time.Duration `yaml:"interval,omitempty"`
}

func Defaults

func Defaults() *Config

type Service

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

func New

func New(instanceID string, cfg *Config) *Service

func (*Service) OnInstall

func (s *Service) OnInstall()

func (*Service) Run

func (s *Service) Run()

func (*Service) Running

func (s *Service) Running() bool

func (*Service) Shutdown

func (s *Service) Shutdown() error

Jump to

Keyboard shortcuts

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