app

package
v2.3.1+incompatible Latest Latest
Warning

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

Go to latest
Published: Jan 14, 2018 License: MIT Imports: 8 Imported by: 2

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type EngineService

type EngineService struct {
	Front  controllers.FrontController `inject:"inline"`
	Feed   controllers.FeedController  `inject:"inline"`
	Config *confer.Config              `inject:""`
}

EngineService provides the API engine

func (*EngineService) New

func (e *EngineService) New() *gin.Engine

New creates a new instance of an API engine

type Phabulous

type Phabulous struct {
	Config  *confer.Config    `inject:""`
	Engine  *EngineService    `inject:""`
	Serve   *ServeService     `inject:""`
	Slacker *bot.SlackService `inject:""`
	Logger  *logrus.Logger    `inject:""`
}

Phabulous is the root node of the DI graph

func (*Phabulous) Boot

func (p *Phabulous) Boot(c *cli.Context)

Boot the upper part of the application.

type ServeService

type ServeService struct {
	Engine  *EngineService    `inject:""`
	Config  *confer.Config    `inject:""`
	Logger  *logrus.Logger    `inject:""`
	Slacker *bot.SlackService `inject:""`
	App     *Phabulous        `inject:""`
}

ServeService provides the serve command

func (*ServeService) Run

func (s *ServeService) Run(c *cli.Context)

Run starts up the HTTP server

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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