endpoints

package
v0.0.0-...-68fa39e Latest Latest
Warning

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

Go to latest
Published: Nov 5, 2021 License: GPL-3.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 EndpointDB

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

EndpointDB contains a set of endpoints

func NewEndpointsDB

func NewEndpointsDB(ctx context.Context, file string) *EndpointDB

NewEndpointsDB gives an EndpointDB instance

func (*EndpointDB) Get

func (e *EndpointDB) Get(endpoint string) (string, error)

type EndpointsAdvert

type EndpointsAdvert struct {
	Endpoints []EndpointsAdvertEndpoint `json:"endpoints"`
}

type EndpointsAdvertEndpoint

type EndpointsAdvertEndpoint struct {
	Host   string `json:"host"`
	Remote string `json:"remote"`
}

Jump to

Keyboard shortcuts

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