httpserver

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Dec 29, 2023 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Logger

func Logger(log logger.Logger) gin.HandlerFunc

A Logger Middleware for gin engine, it's store our logs in formatted. Just demo, need check for better interface

func NewService

func NewService(name string) *ginService

Types

type Config

type Config struct {
	Port         int    `json:"http_port"`
	BindAddr     string `json:"http_bind_addr"`
	GinNoDefault bool   `json:"http_no_default"`
}

type GinService

type GinService interface {
	Port() int
	// contains filtered or unexported methods
}

Jump to

Keyboard shortcuts

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