dune

package module
v0.0.0-...-5370319 Latest Latest
Warning

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

Go to latest
Published: Oct 3, 2021 License: MIT Imports: 10 Imported by: 1

README

dune

A FAIRE.

Licence

MIT.


Copyright (c) 2021 losyme.

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Logger

type Logger interface {
}

type Server

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

func NewServer

func NewServer(sc *ServerConfig, handler http.Handler, logger *log.Logger) (*Server, error)

func (*Server) ListenAndServe

func (s *Server) ListenAndServe() error

func (*Server) Shutdown

func (s *Server) Shutdown(ctx context.Context) error

type ServerConfig

type ServerConfig struct {
	Port int
	TLS  *TLS
}

type TLS

type TLS struct {
	Host     string
	Cert     string
	Key      string
	AuthType int
	CA       string
}

Jump to

Keyboard shortcuts

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