server

package
v0.0.0-...-cdb2ca0 Latest Latest
Warning

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

Go to latest
Published: Jan 7, 2023 License: GPL-2.0 Imports: 26 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Configuration

type Configuration struct {
	LogLevel string

	Address string

	DictionaryFile string

	CertificateFile string
	KeyFile         string

	CacheSize int
}

Configuration encapsulates all configurable parameters of a Server

func NewConfiguration

func NewConfiguration() Configuration

NewConfiguration instantiates a Configuration with default settings.

type Server

type Server interface {
	Start()
	Stop()
}

Server is an interface with simple methods to start or stop a T9 server.

func New

func New(configuration Configuration) (Server, error)

New instantiates a server using the designated Configuration, or an error if the configuration is invalid.

Jump to

Keyboard shortcuts

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