Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
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 Plugin ¶
type Plugin interface {
Client() *centrifuge.Client
}
Click to show internal directories.
Click to hide internal directories.