koala

package module
v0.0.3 Latest Latest
Warning

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

Go to latest
Published: Jun 4, 2020 License: MIT Imports: 9 Imported by: 0

README

killer-koala

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type App

type App struct {
	Config *AppConfig
	// contains filtered or unexported fields
}

func NewAppWithConfig

func NewAppWithConfig(config *AppConfig) App

func (*App) AddHandler

func (a *App) AddHandler(handler routing.Handler)

func (*App) AddMiddleware

func (a *App) AddMiddleware(mf echo.MiddlewareFunc)

func (*App) AddStaticFolder

func (a *App) AddStaticFolder(prefix, folderName string)

func (*App) AddViewHandler

func (a *App) AddViewHandler(viewHandler routing.ViewHandler)

func (*App) Database

func (a *App) Database() *mongo.Database

func (*App) Serve

func (a *App) Serve()

type AppConfig

type AppConfig struct {
	MongoDBUrl  string
	MongoDBName string
	PublicKey   string
	PrivateKey  string
	Port        string
}

type Router

type Router interface {
	GET(path string, h echo.HandlerFunc, m ...echo.MiddlewareFunc) *echo.Route
	POST(path string, h echo.HandlerFunc, m ...echo.MiddlewareFunc) *echo.Route
	PUT(path string, h echo.HandlerFunc, m ...echo.MiddlewareFunc) *echo.Route
	DELETE(path string, h echo.HandlerFunc, m ...echo.MiddlewareFunc) *echo.Route
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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