echo_server

package
v0.0.21 Latest Latest
Warning

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

Go to latest
Published: Apr 15, 2024 License: MIT Imports: 11 Imported by: 0

Documentation

Index

Constants

View Source
const (
	DefaultHost     = "0.0.0.0"
	DefaultLogLevel = "DEV"
	DefaultPort     = 3001
)

Variables

This section is empty.

Functions

func InitiateModule

func InitiateModule(scope string) fx.Option

Types

type Config

type Config struct {
	AllowHeaders string
	AllowMethods string
	AllowOrigins string
	Host         string
	LogLevel     string
	Port         int
}

type HTTPServer

type HTTPServer struct {
	// contains filtered or unexported fields
}

func (*HTTPServer) GetServer

func (s *HTTPServer) GetServer() *echo.Echo

func (*HTTPServer) PrintDebugLogs

func (s *HTTPServer) PrintDebugLogs()

type Params

type Params struct {
	fx.In

	Lifecycle fx.Lifecycle
	Logger    *zap.Logger
}

Jump to

Keyboard shortcuts

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