client

package
v0.0.0-...-8444db5 Latest Latest
Warning

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

Go to latest
Published: Jan 18, 2022 License: AGPL-3.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

View Source
const (
	ServiceName service.Name = "tunnel-client"
)

Variables

This section is empty.

Functions

func ServiceProvider

func ServiceProvider(funcs ...tunnel.ClientConfigFunc) service.Provider

Types

type BackoffStrategy

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

func NewBackoffStrategy

func NewBackoffStrategy(base time.Duration, exponentialFactor float32) *BackoffStrategy

func (*BackoffStrategy) Delay

func (s *BackoffStrategy) Delay() time.Duration

func (*BackoffStrategy) Sleep

func (s *BackoffStrategy) Sleep()

type Service

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

func From

func From(container *service.Container) (*Service, error)

From retrieves the gateway client service in the given service container.

func Must

func Must(container *service.Container) *Service

Must retrieves the gateway client service in the given service container or panic otherwise.

func (*Service) Client

func (s *Service) Client() *tunnel.Client

Jump to

Keyboard shortcuts

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