topic

package
v1.1.0 Latest Latest
Warning

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

Go to latest
Published: Jan 13, 2026 License: MIT Imports: 2 Imported by: 0

Documentation

Overview

Package topic implements the topic type.

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

IsReserved 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 (
	TopicKindGroupMessagesV1 TopicKind = iota
	TopicKindWelcomeMessagesV1
	TopicKindIdentityUpdatesV1
	TopicKindKeyPackagesV1
	TopicKindPayerReportsV1
	TopicKindPayerReportAttestationsV1
)

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