magent_middleware_interface

package
v0.0.0-...-4adfca9 Latest Latest
Warning

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

Go to latest
Published: Jan 2, 2020 License: AGPL-3.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

View Source
const (
	HOST        = "http://127.0.0.1"
	PORT        = "28902"
	MARCONID_ID = "18"
)

Variables

This section is empty.

Functions

func RegisterForPeerUpdates

func RegisterForPeerUpdates(pubKeyHash string) error

Register to middleware for peer updates

func UnregisterForPeerUpdates

func UnregisterForPeerUpdates() error

Unregister from middleware for peer updates

Types

type SubscribeParams

type SubscribeParams struct {
	Id                     string
	Port                   string
	NetworkContractAddress string
	PubKeyHash             string
}

func (SubscribeParams) GetParamsJsonString

func (r SubscribeParams) GetParamsJsonString() string

Marshal SubscribeParams into JSON string format

type UnsubscribeParams

type UnsubscribeParams struct {
	Id string
}

func (UnsubscribeParams) GetParamsJsonString

func (r UnsubscribeParams) GetParamsJsonString() string

Marshal UnsubscribeParams into JSON string format

Jump to

Keyboard shortcuts

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