api

package
v0.0.0-...-e33bd30 Latest Latest
Warning

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

Go to latest
Published: May 7, 2020 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type App

type App struct {
	Router *mux.Router
}

App is the collection of all hard dependencies

func NewApp

func NewApp() *App

New initializes the app

func (*App) SetupRoutes

func (app *App) SetupRoutes()

SetupRoutes initializes the API endpoint routes

type Container

type Container struct {
	StoryHandler *handler.StoryHandler
	// contains filtered or unexported fields
}

Container is the singleton collection of all internal dependencies

func NewContainer

func NewContainer() *Container

NewContainer creates an empty singleton collection

func (*Container) GetStoryHandler

func (c *Container) GetStoryHandler() *handler.StoryHandler

GetStoryHandler gives singleton instance of a StoryHandler

Jump to

Keyboard shortcuts

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