ginhttp

package
v0.0.0-...-1cb9ecb Latest Latest
Warning

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

Go to latest
Published: Jul 1, 2022 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Config

type Config interface {
	GetHTTPEnv() *HTTPEnv
}

type HTTPEnv

type HTTPEnv struct {
	HTTPAddr string `env:"HTTP_ADDR"`
	HTTPPort int    `env:"HTTP_PORT"`
}

HTTPEnv obtiene la configuracion desde el entorno

type HttpServer

type HttpServer struct {
	*http.Server
	*gin.Engine
}

func NewHttpServer

func NewHttpServer(config Config) HttpServer

func (HttpServer) Run

func (h HttpServer) Run(ctx context.Context) error

Directories

Path Synopsis
middleware

Jump to

Keyboard shortcuts

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