httpserver

package
v2.0.6 Latest Latest
Warning

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

Go to latest
Published: May 11, 2022 License: BSD-2-Clause Imports: 15 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Logger

func Logger(log logger.Logger) fiber.Handler

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

func New

func New(name string, config *fiber.Config) *fiberService

Types

type Config

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

type FiberService added in v2.0.2

type FiberService interface {
	// block until ready
	Port() int
	// contains filtered or unexported methods
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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