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

package app

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


Package Files


type App Uses

type App struct {
    Storage interfaces.Storage
    P2p     *p2p.P2p
    Server  *service.Server
    Logger  interfaces.Logger

    WebsocketService interfaces.WebsocketService
    // 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 14 packages (graph) and is imported by 2 packages. Updated 2020-02-25. Refresh now. Tools for package owners.