tunnel

package
v0.1.19-b Latest Latest
Warning

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

Go to latest
Published: Jun 27, 2024 License: MIT Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewTunserver

func NewTunserver(handler http.Handler) http.Handler

NewTunserver creates a tunserver with the given HTTP handler

Types

type CMD

type CMD int

type Reqq

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

type Request

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

type Service

type Service struct {
	ID      string
	Address string
	Port    int
}

type Services

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

func NewServices

func NewServices(ctx context.Context, schedulerAPI api.Scheduler, nodeID string) *Services

func (*Services) Regiseter

func (s *Services) Regiseter(service *Service)

func (*Services) Remove

func (s *Services) Remove(service *Service)

type TunManager

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

type Tunclient

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

type Tunnel

type Tunnel struct {
	ID string
	// contains filtered or unexported fields
}

type Tunserver

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

func (*Tunserver) ServeHTTP

func (o *Tunserver) ServeHTTP(w http.ResponseWriter, r *http.Request)

ServeHTTP checks if the request path starts with the IPFS path prefix and delegates to the appropriate handler

Jump to

Keyboard shortcuts

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