thrum

package
v0.34.2 Latest Latest
Warning

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

Go to latest
Published: Nov 7, 2026 License: MIT Imports: 9 Imported by: 0 modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func HumCLI

func HumCLI() string

Types

type Advisory

type Advisory struct {
	Code    string         `json:"code"`
	Message string         `json:"message"`
	From    string         `json:"from"`
	Fields  map[string]any `json:"fields,omitempty"`
}

type Bee

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

func NewBee

func NewBee(opts Options) *Bee

func (*Bee) Close

func (b *Bee) Close() error

func (*Bee) Hello

func (b *Bee) Hello(patch map[string]any) error

func (*Bee) ID

func (b *Bee) ID() string

func (*Bee) OffSid

func (b *Bee) OffSid(sid string) *Bee

func (*Bee) On

func (b *Bee) On(chi Chi, fn func(Tone)) *Bee

func (*Bee) OnAdvisory

func (b *Bee) OnAdvisory(fn func(Advisory)) *Bee

func (*Bee) OnAny

func (b *Bee) OnAny(fn func(Tone)) *Bee

func (*Bee) OnAstray

func (b *Bee) OnAstray(fn func()) *Bee

func (*Bee) OnNestled

func (b *Bee) OnNestled(fn func()) *Bee

func (*Bee) OnSid

func (b *Bee) OnSid(sid string, fn func(Tone)) *Bee

func (*Bee) Send

func (b *Bee) Send(tone Tone) error

func (*Bee) Start

func (b *Bee) Start(ctx context.Context) error

func (*Bee) Wait

func (b *Bee) Wait() error

type LinkError

type LinkError struct{ Reason string }

func (*LinkError) Error

func (e *LinkError) Error() string

type Options

type Options struct {
	Hive  string
	As    string
	Role  Role
	Hello map[string]any
	Hum   string
}

type Refused

type Refused struct{ Reason string }

func (*Refused) Error

func (r *Refused) Error() string

type Tone

type Tone = map[string]any

Jump to

Keyboard shortcuts

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