hub

package
v1.24.5 Latest Latest
Warning

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

Go to latest
Published: Apr 28, 2024 License: Apache-2.0 Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Run

func Run(ctx context.Context, options *Options) error

Types

type EdgeHubServer

type EdgeHubServer struct {
	tunnel.GrpcTunnelServer
	// contains filtered or unexported fields
}

func New

func New(options *Options) (*EdgeHubServer, error)

func (*EdgeHubServer) HTTPAPI

func (s *EdgeHubServer) HTTPAPI() http.Handler

func (*EdgeHubServer) Run

func (s *EdgeHubServer) Run(ctx context.Context) error

type Options added in v1.23.8

type Options struct {
	Listen         string      `json:"listen,omitempty"`
	ListenGrpc     string      `json:"listenGrpc,omitempty"`
	Host           string      `json:"host,omitempty" validate:"required"`
	ServerID       string      `json:"serverID,omitempty" validate:"required"`
	TLS            *system.TLS `json:"tls,omitempty"`
	EdgeServerAddr string      `json:"edgeServerAddr,omitempty"`
}

func NewDefaultOptions added in v1.23.8

func NewDefaultOptions() *Options

Jump to

Keyboard shortcuts

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