infra

package
v0.0.0-...-9bc110c Latest Latest
Warning

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

Go to latest
Published: Dec 25, 2024 License: MIT 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