httpserver

package
v1.9.0 Latest Latest
Warning

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

Go to latest
Published: Mar 31, 2024 License: MIT Imports: 9 Imported by: 0

Documentation

Overview

Package httpserver provides functionalities for serving content to the user.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type DashboardServer added in v1.1.1

type DashboardServer struct {
	InputChan chan []byte
	// contains filtered or unexported fields
}

DashboardServer is the HTTP server serving the frontend-related content.

func NewDashboardServer added in v1.6.1

func NewDashboardServer(inputChan chan []byte) *DashboardServer

NewDashboardServer initializes a Dashboard HTTP server using the provided inputChan.

func (*DashboardServer) ServeHTTP added in v1.1.1

func (d *DashboardServer) ServeHTTP(w http.ResponseWriter, r *http.Request)

ServeHTTP handles the HTTP interaction with the server.

type Driver

type Driver struct {
	BaseURL string
	Client  *http.Client
}

func (Driver) ExtractMetrics

func (d Driver) ExtractMetrics() (string, error)

Jump to

Keyboard shortcuts

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