koala

package module
v0.0.0-...-f70f7d2 Latest Latest
Warning

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

Go to latest
Published: Jul 14, 2017 License: MIT Imports: 6 Imported by: 0

README

Koala

Koala is a framework for Go apps and it is currently in Alpha version.

Documentation

Index

Constants

This section is empty.

Variables

Config holds the app config

View Source
var ServerPort string

ServerPort holds the server port

Functions

This section is empty.

Types

type App

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

App represents a Koala Application

func NewApplication

func NewApplication(r *knife.Router, cors *cors.Cors) App

NewApplication creates an instance of App

func (*App) AddModule

func (a *App) AddModule(m Module)

AddModule adds a module for the application

func (*App) AddModules

func (a *App) AddModules(m []Module)

AddModules adds the modules for the application

func (*App) Run

func (a *App) Run() error

Run starts the application

func (*App) SetCors

func (a *App) SetCors(c *cors.Cors)

SetCors sets CORS support for the application

func (*App) SetRouter

func (a *App) SetRouter(r *knife.Router)

SetRouter sets the application router

type Module

type Module interface {
	Up()
}

Module defines the interface for modules.

Directories

Path Synopsis
Package errors intentionally mirrors the standard "errors" module.
Package errors intentionally mirrors the standard "errors" module.

Jump to

Keyboard shortcuts

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