message

package
v0.0.9 Latest Latest
Warning

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

Go to latest
Published: Aug 14, 2020 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type GeneralMessage

type GeneralMessage interface {
	GetType() GeneralMessageType
	GetBytes() []byte
	String() string
}

type GeneralMessageEvent

type GeneralMessageEvent struct {
	Message GeneralMessage
	Sender  GeneralPeer
}

type GeneralMessageType

type GeneralMessageType byte

type GeneralPeer

type GeneralPeer struct {
	Id             int
	PublicKey      crypto.PublicKey `json:"-"`
	Address        common.Address   `json:"address"`
	PublicKeyBytes hexutil.Bytes    `json:"public_key"`
}

Jump to

Keyboard shortcuts

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