types

package
v0.1.4 Latest Latest
Warning

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

Go to latest
Published: Jun 24, 2024 License: GPL-3.0 Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type BlockContext added in v0.1.0

type BlockContext struct {
	Height int64
	Time   time.Time
}

func NewBlockContext added in v0.1.0

func NewBlockContext(height int64, timestamp time.Time) *BlockContext

type Message

type Message struct {
	Block *BlockContext `json:"-"`
	Type  string        `json:"type"`
	Data  interface{}   `json:"data"`
}

func NewMessage

func NewMessage(messageType string, data interface{}, block *BlockContext) *Message

Jump to

Keyboard shortcuts

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