Documentation ¶
Index ¶
- type Config
- type Registry
- func (r *Registry) CallFunction(signingKey ed25519.PublicKey, funcId uint, args string) error
- func (r *Registry) ConnectDevelopmentServer(addr ma.Multiaddr) error
- func (r *Registry) OpenDApp(signingKey ed25519.PublicKey, context string) error
- func (r *Registry) RenderMessage(signingKey ed25519.PublicKey, payload string) (string, error)
- func (r *Registry) ShutDown(signingKey ed25519.PublicKey) error
- func (r *Registry) StartDApp(dAppSigningKey ed25519.PublicKey, timeOut time.Duration) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
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 ¶
call a function in a DApp
func (*Registry) ConnectDevelopmentServer ¶
use this to connect to a development server
func (*Registry) RenderMessage ¶
Click to show internal directories.
Click to hide internal directories.