endpoints

package
v0.0.0-...-ee37cb4 Latest Latest
Warning

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

Go to latest
Published: Feb 24, 2023 License: MIT Imports: 7 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() *EndpointDB

NewEndpointsDB gives an EndpointDB instance

func (*EndpointDB) Add

func (e *EndpointDB) Add(endpoint string, target *EndpointDialer)

func (*EndpointDB) Get

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

func (*EndpointDB) Remove

func (e *EndpointDB) Remove(endpoint string)

type EndpointDialer

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

func NewEndpointDialer

func NewEndpointDialer(socket *websocket.Conn) *EndpointDialer

func (*EndpointDialer) Request

func (d *EndpointDialer) Request(req *http.Request) *http.Response

Jump to

Keyboard shortcuts

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