server

package
v0.0.0-...-aec2e1a Latest Latest
Warning

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

Go to latest
Published: Jul 21, 2022 License: Unlicense Imports: 20 Imported by: 0

Documentation

Index

Constants

View Source
const (
	Offline = iota
	Online
	Unknown
)

Variables

This section is empty.

Functions

This section is empty.

Types

type Server

type Server struct {
	Queue   queue.Queue
	Storage storage.Storage
	// contains filtered or unexported fields
}

func NewServer

func NewServer(cfg *config.Config, capture bool, sqltype int, device string, queueInstance queue.Queue) (*Server, error)

func (*Server) Close

func (s *Server) Close()

func (*Server) GetMonitorData

func (s *Server) GetMonitorData() (count int, res map[string]float64)

func (*Server) Run

func (s *Server) Run()

func (*Server) Status

func (s *Server) Status() string

func (*Server) UpdateConfig

func (s *Server) UpdateConfig(newCfg *config.Config)

Jump to

Keyboard shortcuts

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