server

package
v0.0.0-...-495eea3 Latest Latest
Warning

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

Go to latest
Published: Feb 21, 2023 License: MIT Imports: 6 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 {
	Host     string `conf:"host"`
	Port     string `conf:"port"`
	TLS      bool   `conf:"tls"`
	DevCert  bool   `conf:"devcert"`
	CertFile string `conf:"certfile"`
	KeyFile  string `conf:"keyfile"`
	Handler  http.Handler
}

type Server

type Server struct {
	*http.Server
	// contains filtered or unexported fields
}

func New

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

New will setup the API listener

func (*Server) ListenAndServe

func (s *Server) ListenAndServe() error

ListenAndServe will listen for requests

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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