freedns

package
v0.0.0-...-0409178 Latest Latest
Warning

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

Go to latest
Published: Sep 22, 2021 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 Config

type Config struct {
	FastUpstream   string
	CleanUpstream  string
	PublicUpstream string
	Listen         string
	LogLevel       string
}

Config stores the configuration for the Server

type Error

type Error string

Error is the freedns error type

func (Error) Error

func (e Error) Error() string

type Server

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

Server is type of the freedns server instance

func NewServer

func NewServer(cfg Config) (*Server, error)

NewServer creates a new freedns server instance.

func (*Server) Run

func (s *Server) Run() error

Run tcp and udp server.

func (*Server) Shutdown

func (s *Server) Shutdown()

Shutdown shuts down the freedns server

Jump to

Keyboard shortcuts

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