emf

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Apr 15, 2020 License: MIT Imports: 13 Imported by: 0

Documentation

Index

Constants

View Source
const (
	Version string = "v1.0.0"
)

Constants for configuring the server

Variables

This section is empty.

Functions

This section is empty.

Types

type Controller

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

Controller : Contains all of the necessary components to configure and run a Cambridge Blockchain microservice api

func New

func New(configFile string, buildConfig configurer.BuildConfig, notificationCodes []notifications.NotificationType) (
	c *Controller)

New : Creates a default EMF server object, properly configured

func (*Controller) GetBuild

func (c *Controller) GetBuild() configurer.BuildConfig

GetBuild is a method to expose the config

func (*Controller) GetConfig

func (c *Controller) GetConfig() configurer.ConfigReader

GetConfig is a method to expose the config

func (*Controller) GetLogger

func (c *Controller) GetLogger() echo.Logger

GetLogger is a method to expose the logger

func (*Controller) GetMiddlewares

func (c *Controller) GetMiddlewares() *middleware.AllMiddlewares

GetMiddlewares is a method to expose the middlewares struct

func (*Controller) GetRouter

func (c *Controller) GetRouter() *router.Router

GetRouter is a method to expose the router

func (*Controller) GetServer

func (c *Controller) GetServer() *server.Server

GetServer is a method to expose the logger

Directories

Path Synopsis
Package bind is a precisely modified version of echo's DefaultBinder and the related code from https://raw.githubusercontent.com/labstack/echo/v4.1.13/bind.go Specific Changes: - lines 36-48 of that file are removed as calling bindData on json payloads breaks binding arrays - long lines are shortened to satisfy the linter, - variables from outside bind.go are imported from the latest echo package
Package bind is a precisely modified version of echo's DefaultBinder and the related code from https://raw.githubusercontent.com/labstack/echo/v4.1.13/bind.go Specific Changes: - lines 36-48 of that file are removed as calling bindData on json payloads breaks binding arrays - long lines are shortened to satisfy the linter, - variables from outside bind.go are imported from the latest echo package

Jump to

Keyboard shortcuts

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