models

package
v1.0.8 Latest Latest
Warning

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

Go to latest
Published: Apr 26, 2024 License: MIT Imports: 0 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Client

type Client struct {
	Creds    Creds
	ID       uint
	Address  string
	Nickname string

	PeerPublicKey   string
	PeerEndpoint    string
	PeerListenPort  uint
	NetworkAddress  string
	DnsServer       string
	RouteToExitNode bool
}

type Creds

type Creds struct {
	PublicKey  string
	PrivateKey string
}

type Network

type Network struct {
	Server  Server
	Clients []Client

	InterfaceName string
	ID            uint
	AddressPrefix string
	Address       string
	DnsServer     string
	IsExitNode    bool
}

type Server

type Server struct {
	Creds      Creds
	ListenPort uint
	Address    string
	Endpoint   string
}

Jump to

Keyboard shortcuts

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