server

package
v0.0.0-...-9828505 Latest Latest
Warning

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

Go to latest
Published: Apr 24, 2024 License: GPL-3.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func New

func New() *mux.Router

New instantates new mux router

func Start

func Start(r *mux.Router, cfg *Config)

Start starts mux server

Types

type Config

type Config struct {
	Address             string
	ReadTimeoutSeconds  int
	WriteTimeoutSeconds int
	Debug               bool
	CORSAllowedOrigins  []string
}

Config represents server specific config

Jump to

Keyboard shortcuts

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