Help us shape the future of Go! Take the 2026 Go Developer Survey

broadcasters

package
v1.20.0-alpha.1 Latest Latest
Warning

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

Go to latest
Published: Oct 29, 2026 License: MIT Imports: 18 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func PushOptionsFromConfig

func PushOptionsFromConfig(options map[string]any) broadcasting.PusherOptions

Types

type LogDriver

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

func NewLogDriver

func NewLogDriver(log log.Log) *LogDriver

func (*LogDriver) Broadcast

func (d *LogDriver) Broadcast(ctx context.Context, channels []string, event string, payload map[string]any) error

type NullDriver

type NullDriver struct{}

func NewNullDriver

func NewNullDriver() *NullDriver

func (*NullDriver) Broadcast

func (d *NullDriver) Broadcast(_ context.Context, _ []string, _ string, _ map[string]any) error

type PusherDriver

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

func NewPusherDriver

func NewPusherDriver(conn broadcasting.ConnectionConfig, httpClient client.Factory) (*PusherDriver, error)

func (*PusherDriver) Broadcast

func (d *PusherDriver) Broadcast(ctx context.Context, channels []string, event string, payload map[string]any) error

Jump to

Keyboard shortcuts

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