echo

package module
v3.0.1 Latest Latest
Warning

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

Go to latest
Published: Jan 19, 2024 License: MIT Imports: 9 Imported by: 1

README

GoZix Echo

License Documentation

Release Build Status Go Report Card Code Coverage

The bundle provide a Echo integration to GoZix application.

Installation

go get github.com/gozix/echo/v3

Dependencies

Configuration

{
  "echo": {
    "debug": false,
    "level": "debug",
    "static": {
      "prefix": "/",
      "root": ""
    },
    "hide_banner": false,
    "hide_port": false 
  }
}

Built-in Tags

Symbol Value Description
TagController echo.controller Add a controller
TagConfigurator echo.configurator Add a configurator
TagMiddleware echo.middleware Add a middleware

Documentation

You can find documentation on pkg.go.dev and read source code if needed.

Questions

If you have any questions, feel free to create an issue.

Documentation

Index

Constants

View Source
const BundleName = "echo"

BundleName is default definition name.

Variables

This section is empty.

Functions

func AsConfigurator

func AsConfigurator() di.ProvideOption

AsConfigurator is syntax sugar for the di container.

func AsController

func AsController() di.ProvideOption

AsController is syntax sugar for the di container.

func AsMiddleware

func AsMiddleware(priority int64) di.ProvideOption

AsMiddleware is syntax sugar for the di container.

Types

type Bundle

type Bundle struct{}

Bundle implements the glue.Bundle interface.

func NewBundle

func NewBundle() *Bundle

NewBundle create bundle instance.

func (*Bundle) Build

func (b *Bundle) Build(builder di.Builder) error

Build implements the glue.Bundle interface.

func (*Bundle) DependsOn

func (b *Bundle) DependsOn() []string

DependsOn implements the glue.DependsOn interface.

func (*Bundle) Name

func (b *Bundle) Name() string

Name implements the glue.Bundle interface.

type Configurator

type Configurator = configurator.Configurator

Configurator is type alias of configurator.Configurator.

type Controller

type Controller = configurator.Controller

Controller is type alias of controller.Controller.

Directories

Path Synopsis
internal
Package mock provide dependency injection definitions.
Package mock provide dependency injection definitions.

Jump to

Keyboard shortcuts

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