sprawl: github.com/sprawl/sprawl/app Index | Files

package app

import "github.com/sprawl/sprawl/app"

Index

Package Files

app.go

type App Uses

type App struct {
    Storage *db.Storage
    P2p     *p2p.P2p
    Server  *service.Server
    Logger  interfaces.Logger
    // contains filtered or unexported fields
}

App ties Sprawl's services together

func (*App) InitServices Uses

func (app *App) InitServices(config interfaces.Config, Logger interfaces.Logger)

InitServices ties the services together before running

func (*App) Run Uses

func (app *App) Run()

Run is a separated main-function to ease testing

Package app imports 12 packages (graph). Updated 2019-12-14. Refresh now. Tools for package owners.