server

package
v0.0.0-...-5b66c9e Latest Latest
Warning

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

Go to latest
Published: Oct 28, 2020 License: MIT Imports: 17 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func JoinURL

func JoinURL(base string, paths ...string) string

JoinURL joins a url

Types

type Options

type Options struct {
	TLSCert string
	TLSKey  string
	Addr    string
}

Options options for the server

type Server

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

Server provides all of the settings and method to run a server

func NewServer

func NewServer(o Options) (s *Server)

NewServer creates a new instance of server

func (*Server) Start

func (c *Server) Start()

Start starts the server

Jump to

Keyboard shortcuts

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