db

package
v0.0.0-...-b1b1dfa Latest Latest
Warning

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

Go to latest
Published: Feb 4, 2024 License: GPL-3.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AddClient

func AddClient(client Client) error

func GetVultrAPIKey

func GetVultrAPIKey() (string, error)

func InitDb

func InitDb()

func SetDuckDnsDomain

func SetDuckDnsDomain(duckDnsDomain string)

func SetDuckDnsToken

func SetDuckDnsToken(duckDnsToken string)

func SetServer

func SetServer(server Server) error

func SetVultrApiKey

func SetVultrApiKey(vultrApiKey string)

Types

type ApiInitializeResponse

type ApiInitializeResponse struct {
	WireguardConf string `json:"conf"`
}

type Client

type Client struct {
	PrivateKey   string
	PublicKey    string
	PresharedKey string
	AllowedIPs   string
}

func GetClients

func GetClients() []Client

type Server

type Server struct {
	PrivateKey string
	PublicKey  string
	Address    string
	ListenPort int
}

func GetServer

func GetServer() (Server, error)

Jump to

Keyboard shortcuts

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