server

package
v0.0.2 Latest Latest
Warning

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

Go to latest
Published: Mar 2, 2024 License: MIT Imports: 15 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func HandleRequestBody

func HandleRequestBody(c *gin.Context, contentType string, out interface{}) error

func Setup

func Setup(serverConfig ConfigSchema) (*http.Server, *gin.Engine)

func Start

func Start(srv *http.Server)

Types

type ConfigSchema

type ConfigSchema struct {
	Port       string
	AccessLog  bool `yaml:"accessLog"`
	Production bool
}

Jump to

Keyboard shortcuts

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