Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type App

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

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

InitServices ties the services together before running

func (*App) Run

func (app *App) Run()

Run is a separated main-function to ease testing

Source Files