echo

package
v0.1.18 Latest Latest
Warning

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

Go to latest
Published: May 14, 2024 License: MIT Imports: 12 Imported by: 0

Documentation

Index

Constants

View Source
const (
	DefaultHost           = "0.0.0.0"
	DefaultLogLevel       = "DEV"
	DefaultPort           = 3001
	DefaultCSRFProtection = false
	DefaultCSRFSecure     = false
	DefaultCSRFDomain     = "localhost"
)

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
	CSRFProtection bool
	CSRFSecure     bool
	CSRFDomain     string
	Host           string
	LogLevel       string
	Port           int
}

type Module added in v0.1.9

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

func (*Module) GetServer added in v0.1.9

func (m *Module) GetServer() *echo.Echo

func (*Module) PrintDebugLogs added in v0.1.9

func (m *Module) 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