server

package
v0.0.0-...-4feb759 Latest Latest
Warning

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

Go to latest
Published: Jul 27, 2023 License: MIT Imports: 12 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 {
	// Debug enables debug mode.
	Debug bool
	// Email provides the address to provide with challenges.
	Email string
	// HTTPAddr indicates the address to use for HTTP connections.
	HTTPAddr string
	// HTTPSAddr indicates the address to use for HTTPS connections.
	HTTPSAddr string
	// StorageDir indicates where certificates should be stored
	StorageDir string
	// Conman is a pointer to a Conman instance.
	Conman *conman.Conman
}

Config provides the configuration for the i5 server.

type Server

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

Server listens for incoming connections and routes them accordingly.

func New

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

New creates a new server from the provided configuration.

func (*Server) Close

func (s *Server) Close()

Close shuts down the server.

Jump to

Keyboard shortcuts

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