prepare

package
v0.0.0-...-55bacb3 Latest Latest
Warning

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

Go to latest
Published: Oct 11, 2019 License: GPL-3.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// CRC16("github.com/privatix/dapp-openvpn/adapter/prepare") = 0x8C92
	ErrGetEndpoint errors.Error = 0x8C92<<8 + iota
	ErrMakeConfig
)

Errors.

Variables

This section is empty.

Functions

func ClientConfig

func ClientConfig(logger log.Logger, channel string,
	adapterConfig *config.Config, getEndpoint GetEndpointFunc) error

ClientConfig prepares configuration for Client. By the channel ID, finds a endpoint on a session server. Creates client configuration files for using a product.

Types

type GetEndpointFunc

type GetEndpointFunc func(clientKey string) (*data.Endpoint, error)

GetEndpointFunc gets controller's channel endpoint for a give client key.

Jump to

Keyboard shortcuts

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