topic

package
v0.5.0 Latest Latest
Warning

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

Go to latest
Published: Aug 12, 2025 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Topic

type Topic struct {
	// contains filtered or unexported fields
}

func NewTopic

func NewTopic(kind TopicKind, identifier []byte) *Topic

func ParseTopic

func ParseTopic(topic []byte) (*Topic, error)

func (Topic) Bytes

func (t Topic) Bytes() []byte

func (Topic) Identifier

func (t Topic) Identifier() []byte

func (Topic) IsReserved added in v0.5.0

func (t Topic) IsReserved() bool

Reserved topics can only be published to by the node itself, and not through Payers

func (Topic) Kind

func (t Topic) Kind() TopicKind

func (Topic) String

func (t Topic) String() string

type TopicKind

type TopicKind uint8
const (
	TOPIC_KIND_GROUP_MESSAGES_V1 TopicKind = iota
	TOPIC_KIND_WELCOME_MESSAGES_V1
	TOPIC_KIND_IDENTITY_UPDATES_V1
	TOPIC_KIND_KEY_PACKAGES_V1
	TOPIC_KIND_PAYER_REPORTS_V1
	TOPIC_KIND_PAYER_REPORT_ATTESTATIONS_V1
)

func (TopicKind) String

func (k TopicKind) String() string

Jump to

Keyboard shortcuts

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