statisticsserver

package
v0.3.2 Latest Latest
Warning

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

Go to latest
Published: Aug 26, 2024 License: AGPL-3.0 Imports: 17 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type RequestData added in v0.3.2

type RequestData struct {
	Identifier          string
	Count               int
	Size                string
	IsRobotsTxtViolator string
}

type RequestDataSlice added in v0.3.2

type RequestDataSlice []*RequestData

func (RequestDataSlice) Len added in v0.3.2

func (rd RequestDataSlice) Len() int

Len is part of sort.Interface.

func (RequestDataSlice) Less added in v0.3.2

func (rd RequestDataSlice) Less(i, j int) bool

Less is part of sort.Interface. We use count as the primary sort key.

func (RequestDataSlice) Swap added in v0.3.2

func (rd RequestDataSlice) Swap(i, j int)

Swap is part of sort.Interface.

type StatisticsServer

type StatisticsServer struct {
	Host       string
	Port       int
	Statistics *statistics.Statistics
	Logger     *slog.Logger
	// contains filtered or unexported fields
}

StatisticsServer is the structure for the StatisticsServer.

func NewStatisticsServer

func NewStatisticsServer(ctx context.Context, logger *slog.Logger, host string, port int, st *statistics.Statistics,
) *StatisticsServer

NewStatisticsServer creates a new StatisticsServer instance.

func (*StatisticsServer) Serve

func (ss *StatisticsServer) Serve(ctx context.Context) error

Serve starts the statistics server.

Jump to

Keyboard shortcuts

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