infra

package
v0.0.0-...-111a370 Latest Latest
Warning

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

Go to latest
Published: Sep 25, 2019 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewCorsConfig

func NewCorsConfig(disabled, all bool, origins, methods, headers, expose []string) *cors.Config

NewCorsConfig generates a new cors config with the given parameters

Types

type GinServer

type GinServer struct {
	Router *gin.Engine
	// contains filtered or unexported fields
}

GinServer is the struct gathering all the server details

func NewServer

func NewServer(host string, port int, mode string, corsc *cors.Config) GinServer

NewServer creates the gin Server

func (GinServer) Start

func (s GinServer) Start()

Start tells the router to start listening

Jump to

Keyboard shortcuts

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