echo

package module
v2.2.0 Latest Latest
Warning

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

Go to latest
Published: Apr 14, 2020 License: MIT Imports: 7 Imported by: 0

README

GoZix Echo

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

Overview

Package echo provides dependency injection definitions.

Index

Constants

View Source
const (
	// TagController is alias of controller.Controller.
	TagController = configurator.TagController

	// TagConfigurator is alias of configurator.TagConfigurator.
	TagConfigurator = configurator.TagConfigurator

	// TagMiddleware is alias of configurator.TagMiddleware.
	TagMiddleware = configurator.TagMiddleware
)
View Source
const BundleName = "echo"

BundleName is default definition name.

Variables

This section is empty.

Functions

This section is empty.

Types

type Bundle

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

Bundle implements the glue.Bundle interface.

func NewBundle

func NewBundle(options ...Option) *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.

type Option

type Option interface {
	// contains filtered or unexported methods
}

Option interface.

func ErrHandler

func ErrHandler(defName string) Option

ErrHandler option. Deprecated: Use container definitions overriding. Will be removed in 3.0.

Directories

Path Synopsis
Package errors provides implementations of custom errors for the echo framework.
Package errors provides implementations of custom errors for the echo framework.
internal
command
Package command contains cli command definitions.
Package command contains cli command definitions.
configurator
Package configurator provide container definitions.
Package configurator provide container definitions.
Package middleware provide implementations of custom middleware for the echo framework.
Package middleware provide implementations of custom middleware for the echo framework.
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