server

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Feb 19, 2026 License: MIT Imports: 32 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Server

type Server struct {
	pb.UnimplementedTelemetryServiceServer
	// contains filtered or unexported fields
}

func New

func New(cfg config.ServerConfig, logger zerolog.Logger) *Server

func (*Server) Run

func (s *Server) Run(ctx context.Context) error

func (*Server) StreamTelemetry

func (s *Server) StreamTelemetry(stream pb.TelemetryService_StreamTelemetryServer) error

type Store

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

func NewStore

func NewStore() *Store

func (*Store) GetNodeSnapshot

func (s *Store) GetNodeSnapshot(nodeID string) (api.NodeSnapshot, error)

func (*Store) ListNodeSnapshots

func (s *Store) ListNodeSnapshots() []api.NodeSnapshot

func (*Store) SetNodeConnected

func (s *Store) SetNodeConnected(nodeID string, connected bool)

func (*Store) SetNodeRegistration

func (s *Store) SetNodeRegistration(reg *api.Registration)

func (*Store) SetNodeSourceIP

func (s *Store) SetNodeSourceIP(nodeID, sourceIP string)

func (*Store) TouchNode

func (s *Store) TouchNode(nodeID string, at int64)

Jump to

Keyboard shortcuts

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