api

package
v0.0.0-...-2b407f8 Latest Latest
Warning

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

Go to latest
Published: Sep 11, 2020 License: MIT Imports: 8 Imported by: ? modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Overview

Godi-example - example http server by github.com/noartem/godi

API Docs for godi-example v1

	 Terms Of Service:  N/A
    Schemes: http
    Version: 2.0.0
    License: MIT http://opensource.org/licenses/MIT
    Contact: Noskov Artem <nowasmawesome@gmail.com> https://github.com/noartem
    Host: localhost:8080

    Consumes:
    - application/json

    Produces:
    - application/json

    Security:
    - bearer: []

    SecurityDefinitions:
    bearer:
         type: apiKey
         name: Authorization
         in: header

swagger:meta

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewApi

func NewApi(controllers []types.IController, config *config.Config) (types.IApi, *godi.BeanOptions, error)

NewApi create new application api

func Register

func Register(c *godi.Container) error

Register register factories

Types

type Api

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

Api application api

func (*Api) Start

func (api *Api) Start() error

Start start api server

type CustomValidator

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

func NewValidator

func NewValidator() (*CustomValidator, error)

func (*CustomValidator) Validate

func (cv *CustomValidator) Validate(i interface{}) error

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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