server

package
Version: v0.0.0-...-97cbbeb Latest Latest
Warning

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

Go to latest
Published: Dec 16, 2019 License: Apache-2.0 Imports: 15 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 {
	Port         int
	MapboxToken  string
	WriteTimeout time.Duration
	ReadTimeout  time.Duration
	IdleTimeout  time.Duration
	LogLevel     string
}

func DefaultConfig

func DefaultConfig() Config

type Server

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

func New

func New(port int) (server Server, err error)

func (Server) Run

func (s Server) Run()

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
t or T : Toggle theme light dark auto
y or Y : Canonical URL