Documentation ¶
Index ¶
Constants ¶
View Source
const (
// PayloadName defines the name of the Formica payload.
PayloadName = "formica"
)
View Source
const (
// PluginName contains the human-readable name of the plugin.
PluginName = "formica"
)
Variables ¶
View Source
var ( // Plugin is the "plugin" instance of the formica application. Plugin *node.Plugin )
View Source
var Type = payload.NewType(payloadType, PayloadName)
Type represents the identifier which addresses the chat payload type.
Functions ¶
func SendFormicaBlock ¶
SendFormicaBlock sends a formica message.
Types ¶
type BlockReceivedEvent ¶
type BlockReceivedEvent struct { Purpose uint32 Data string Block string Timestamp time.Time BlockID string }
Event defines the information passed when a formica event fires.
type Events ¶
type Events struct {
BlockReceived *event.Event[*BlockReceivedEvent]
}
Events define events occurring within a formica payload.
type Formica ¶
type Formica struct {
*Events
}
Formica manages Formica messages happening over the Tangle.
type Payload ¶
Payload represents the chat payload type.
func NewPayload ¶
NewPayload creates a new chat payload.
Click to show internal directories.
Click to hide internal directories.