koala

package module
v0.0.2 Latest Latest
Warning

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

Go to latest
Published: Feb 10, 2020 License: MIT Imports: 9 Imported by: 0 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.

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 added in v0.0.2

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