server

package
v0.0.3 Latest Latest
Warning

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

Go to latest
Published: May 31, 2024 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

View Source
const (
	ApiPrefix        = "/api"
	PlaygroundPrefix = "/playground"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type Server

type Server = *gin.Engine

func New

func New(enableLogger bool, enableCors bool) (Server, error)

type Shutdown

type Shutdown = func(context.Context) error

func Run

func Run(_ context.Context, s Server, host string, port int) Shutdown

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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