heart

package
v0.0.0-...-3d4fb19 Latest Latest
Warning

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

Go to latest
Published: Feb 20, 2022 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Beat

type Beat func(context.Context, *websocket.Conn) error

Beat is called when Pump ticks.

type Beater

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

func NewBeater

func NewBeater() *Beater

func (*Beater) Notify

func (b *Beater) Notify(nd time.Duration)

func (*Beater) Pump

func (b *Beater) Pump(ctx context.Context, ws *websocket.Conn, fn Beat) error

Jump to

Keyboard shortcuts

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