pingrelay_forwarder

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Nov 28, 2018 License: MIT Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AuthorizedKeys

type AuthorizedKeys struct {
	Name       string   `yaml:"name" json:"name"`
	PrivateKey string   `yaml:"server_private_key" json:"server_private_key"`
	PublicKey  string   `yaml:"client_public_key" json:"client_public_key"`
	Addressess []string `yaml:"addresses" json:"addresses"`
}

type Config

type Config struct {
	ClientAddress  string           `yaml:"client_address" json:"client_address"`
	ListenAddress  string           `yaml:"listen_address" json:"listen_address"`
	ServerDomain   string           `json:"server_domain"`
	ServerKey      string           `json:"server_key"`
	AuthorizedKeys []AuthorizedKeys `yaml:"authorized_clients" json:"authorized_clients"`
}

type Context

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

func New

func New(cfg Config) (*Context, error)

func (*Context) Start

func (s *Context) Start() error

Start the security gateway

func (*Context) Stop

func (s *Context) Stop() error

Stop the security gateway

Jump to

Keyboard shortcuts

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