centrifuge

package module
v0.0.0-...-1fd2eb7 Latest Latest
Warning

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

Go to latest
Published: Sep 12, 2025 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewPlugin

func NewPlugin(runtime runtime.Runtime, opts *Options) toolkit.Plugin

Types

type Config

type Config struct {
	Endpoint           string        `env:"ENDPOINT" comment:"Set connection endpoint (ws://localhost:8000/connection/websocket)"`
	Token              string        `env:"TOKEN" comment:"Set token for a connection authentication."`
	Name               string        `env:"NAME" comment:"Set allows setting client name"`
	Version            string        `env:"VERSION" comment:"Set allows setting client version"`
	ReadTimeout        time.Duration `env:"READ_TIMEOUT" comment:"Set ReadTimeout is how long to wait read operations to complete.. (Default: 5 * time.Second.)"`
	WriteTimeout       time.Duration `env:"WRITE_TIMEOUT" comment:"Set WriteTimeout is Websocket write timeout. (Default: 1 * time.Second.)"`
	HandshakeTimeout   time.Duration `` /* 135-byte string literal not displayed */
	MaxServerPingDelay time.Duration `` /* 136-byte string literal not displayed */
}

type Options

type Options struct {
	Name string
}

type Plugin

type Plugin interface {
	Client() *centrifuge.Client
}

Jump to

Keyboard shortcuts

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