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: 0

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