godi_example

package module
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: 1 Imported by: 0

README

Godi-example - godi example RESTful app

Godi-example is example golang application using godi DI container noartem/godi.

This starter kit currently provides:

  • Fully featured RESTful endpoints for authentication
  • JWT authentication and session
  • Application configuration via config file (yaml)
  • Request marshaling and data validation
  • API Docs using SwaggerUI

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AuthToken

type AuthToken struct {
	Token        string `json:"token"`
	RefreshToken string `json:"refresh_token"`
}

AuthToken holds authentication token details with refresh token

type IApi

type IApi interface {
	Start() error
}

IApi application api

type IController

type IController interface {
	Register(e *echo.Echo) error
	Middlewares() []echo.MiddlewareFunc
}

IController api controller

type User

type User struct {
	ID       uint   `json:"id"`
	Name     string `json:"name"`
	Password string `json:"-"`
	Email    string `json:"email"`
}

Directories

Path Synopsis
cmd
api
ent
pkg
api
Godi-example - example http server by github.com/noartem/godi
Godi-example - example http server by github.com/noartem/godi

Jump to

Keyboard shortcuts

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