registry

package
v0.0.0-...-32f009b Latest Latest
Warning

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

Go to latest
Published: Dec 7, 2018 License: MIT Imports: 33 Imported by: 3

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Config

type Config struct {
	EthWSEndpoint string
}

type Registry

type Registry struct {
	// contains filtered or unexported fields
}

keep track of all running DApps

func NewDAppRegistry

func NewDAppRegistry(h host.Host, conf Config, api *api.API, km *keyManager.KeyManager, dAppDB dapp.Storage, msgDB db.ChatStorage) (*Registry, error)

create new dApp registry

func (*Registry) CallFunction

func (r *Registry) CallFunction(signingKey ed25519.PublicKey, funcId uint, args string) error

call a function in a DApp

func (*Registry) ConnectDevelopmentServer

func (r *Registry) ConnectDevelopmentServer(addr ma.Multiaddr) error

use this to connect to a development server

func (*Registry) OpenDApp

func (r *Registry) OpenDApp(signingKey ed25519.PublicKey, context string) error

open DApp

func (*Registry) RenderMessage

func (r *Registry) RenderMessage(signingKey ed25519.PublicKey, payload string) (string, error)

func (*Registry) ShutDown

func (r *Registry) ShutDown(signingKey ed25519.PublicKey) error

func (*Registry) StartDApp

func (r *Registry) StartDApp(dAppSigningKey ed25519.PublicKey, timeOut time.Duration) error

start a DApp

Jump to

Keyboard shortcuts

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