server

package
v0.0.0-...-0806cf7 Latest Latest
Warning

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

Go to latest
Published: Nov 5, 2020 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AccessPoint

type AccessPoint struct {
	SSID     string `json:"ssid"`
	Strength int    `json:"strength"`
}

AccessPoint json response

type HTTPServer

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

HTTPServer wraps http server API

func NewHTTPServer

func NewHTTPServer(
	onConnect func(string) (string, error),
	onStatus func() (string, error),
	onListAP func() ([]AccessPoint, error),
) HTTPServer

NewHTTPServer init an http server wrapper

func (*HTTPServer) Serve

func (srv *HTTPServer) Serve() error

Serve starts an http server

Jump to

Keyboard shortcuts

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