httpd

package
v0.0.0-...-1a29ab9 Latest Latest
Warning

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

Go to latest
Published: Mar 8, 2021 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type HTTPd

type HTTPd interface {
	Serve(ctx context.Context, addr string) error
}

HTTPd is the interface for usra to provide the HTTP daemon.

type Host

type Host struct {
	ID                int       `db:"id"`
	UUID              uuid.UUID `db:"uuid"`
	Name              string    `db:"name"`
	ServiceLeaseID    int       `db:"service_lease_id"`
	ManagementLeaseID int       `db:"management_lease_id"`
}

Host is

type Key

type Key struct {
	ID     int    `db:"id"`
	Key    string `db:"key"`
	UserID int    `db:"user_id"`
}

Key is

type Lease

type Lease struct {
	ID        int         `db:"id"`
	IPAddress types.IP    `db:"ip_address"`
	Network   types.IPNet `db:"network"`
	Gateway   *types.IP   `db:"gateway"`
	DNSServer *types.IP   `db:"dns_server"`
}

Lease is

type User

type User struct {
	ID   int    `db:"id"`
	Name string `db:"name"`
}

User is

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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