application

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Jun 4, 2020 License: MIT Imports: 16 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Application

type Application struct {

	// Service related
	ServiceMapMutex *sync.Mutex
	ServiceMap      map[string]service.ServiceData
	// contains filtered or unexported fields
}

func NewApplication

func NewApplication(
	ctx context.Context,
	privKey crypto.PrivKey,
	cert *x509.Certificate,
	host, port string,
	relayService bool,
) (*Application, error)

func (*Application) GetHost

func (app *Application) GetHost() host.Host

func (*Application) GetService

func (app *Application) GetService(name string) service.ServiceData

func (*Application) InjectService

func (app *Application) InjectService(srv service.Service)

func (*Application) SetGossipPeerFilter

func (app *Application) SetGossipPeerFilter(f floodsub.PeerFilter)

func (*Application) Start

func (app *Application) Start() error

func (*Application) Stop

func (app *Application) Stop() error

func (*Application) Wait

func (app *Application) Wait()

Jump to

Keyboard shortcuts

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