topic

package
v0.1.3 Latest Latest
Warning

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

Go to latest
Published: Dec 13, 2024 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) 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
)

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