stats

package
v0.7.2 Latest Latest
Warning

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

Go to latest
Published: Nov 16, 2023 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type StatsServer

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

StatsServer is a server for collecting and reporting statistics.

func NewStatsServer

func NewStatsServer(ctx context.Context) (*StatsServer, error)

NewStatsServer returns a new StatsServer.

func (*StatsServer) Close

func (s *StatsServer) Close() error

Close closes the StatsServer.

func (*StatsServer) ListenAndServe

func (s *StatsServer) ListenAndServe() error

ListenAndServe starts the StatsServer.

func (*StatsServer) Shutdown

func (s *StatsServer) Shutdown(ctx context.Context) error

Shutdown gracefully shuts down the StatsServer.

Jump to

Keyboard shortcuts

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