Documentation ¶
Index ¶
- Constants
- type Config
- type Configurer
- type Informer
- type Logger
- type Plugin
- func (p *Plugin) AddWorker() error
- func (p *Plugin) Init(cfg Configurer, log Logger, server Server) error
- func (p *Plugin) MetricsCollector() []prometheus.Collector
- func (p *Plugin) Name() string
- func (p *Plugin) RPC() any
- func (p *Plugin) Ready() (*status.Status, error)
- func (p *Plugin) RemoveWorker(ctx context.Context) error
- func (p *Plugin) Reset() error
- func (p *Plugin) Serve() chan error
- func (p *Plugin) Status() (*status.Status, error)
- func (p *Plugin) Stop(ctx context.Context) error
- func (p *Plugin) Workers() []*process.State
- type Pool
- type Proxy
- func (p *Proxy) Connect(ctx context.Context, request *centrifugov1.ConnectRequest) (*centrifugov1.ConnectResponse, error)
- func (p *Proxy) NotifyChannelState(ctx context.Context, request *centrifugov1.NotifyChannelStateRequest) (*centrifugov1.NotifyChannelStateResponse, error)
- func (p *Proxy) Publish(ctx context.Context, request *centrifugov1.PublishRequest) (*centrifugov1.PublishResponse, error)
- func (p *Proxy) RPC(ctx context.Context, request *centrifugov1.RPCRequest) (*centrifugov1.RPCResponse, error)
- func (p *Proxy) Refresh(ctx context.Context, request *centrifugov1.RefreshRequest) (*centrifugov1.RefreshResponse, error)
- func (p *Proxy) SubRefresh(ctx context.Context, request *centrifugov1.SubRefreshRequest) (*centrifugov1.SubRefreshResponse, error)
- func (p *Proxy) Subscribe(ctx context.Context, request *centrifugov1.SubscribeRequest) (*centrifugov1.SubscribeResponse, error)
- func (p *Proxy) SubscribeBidirectional(_ centrifugov1.CentrifugoProxy_SubscribeBidirectionalServer) error
- func (p *Proxy) SubscribeUnidirectional(_ *centrifugov1.SubscribeRequest, ...) error
- type Server
- type TLS
Constants ¶
View Source
const ( RRMode = "RR_MODE" RRModeCentrifuge = "centrifuge" )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Config ¶
type Config struct { // host + port ProxyAddress string `mapstructure:"proxy_address"` // host + port GrpcAPIAddress string `mapstructure:"grpc_api_address"` UseCompressor bool `mapstructure:"use_compressor"` Version string `mapstructure:"version"` Name string `mapstructure:"name"` TLS *TLS `mapstructure:"tls"` Pool *pool.Config `mapstructure:"pool"` }
func (*Config) InitDefaults ¶
type Configurer ¶
type Plugin ¶
type Plugin struct {
// contains filtered or unexported fields
}
func (*Plugin) MetricsCollector ¶
func (p *Plugin) MetricsCollector() []prometheus.Collector
func (*Plugin) RemoveWorker ¶ added in v4.4.0
func (*Plugin) Reset ¶
Reset destroys the old pool and replaces it with new one, waiting for old pool to die
type Pool ¶
type Pool interface { // Workers returns workers list associated with the pool. Workers() (workers []*worker.Process) // RemoveWorker removes worker from the pool. RemoveWorker(ctx context.Context) error // AddWorker adds worker to the pool. AddWorker() error // Exec payload Exec(ctx context.Context, p *payload.Payload, stopCh chan struct{}) (chan *staticPool.PExec, error) // Reset kill all workers inside the watcher and replaces with new Reset(ctx context.Context) error // Destroy underlying stack (but let them complete the task). Destroy(ctx context.Context) }
type Proxy ¶
type Proxy struct {
// contains filtered or unexported fields
}
func (*Proxy) Connect ¶
func (p *Proxy) Connect(ctx context.Context, request *centrifugov1.ConnectRequest) (*centrifugov1.ConnectResponse, error)
func (*Proxy) NotifyChannelState ¶ added in v4.7.0
func (p *Proxy) NotifyChannelState(ctx context.Context, request *centrifugov1.NotifyChannelStateRequest) (*centrifugov1.NotifyChannelStateResponse, error)
func (*Proxy) Publish ¶
func (p *Proxy) Publish(ctx context.Context, request *centrifugov1.PublishRequest) (*centrifugov1.PublishResponse, error)
func (*Proxy) RPC ¶
func (p *Proxy) RPC(ctx context.Context, request *centrifugov1.RPCRequest) (*centrifugov1.RPCResponse, error)
func (*Proxy) Refresh ¶
func (p *Proxy) Refresh(ctx context.Context, request *centrifugov1.RefreshRequest) (*centrifugov1.RefreshResponse, error)
func (*Proxy) SubRefresh ¶ added in v4.1.0
func (p *Proxy) SubRefresh(ctx context.Context, request *centrifugov1.SubRefreshRequest) (*centrifugov1.SubRefreshResponse, error)
func (*Proxy) Subscribe ¶
func (p *Proxy) Subscribe(ctx context.Context, request *centrifugov1.SubscribeRequest) (*centrifugov1.SubscribeResponse, error)
func (*Proxy) SubscribeBidirectional ¶ added in v4.7.0
func (p *Proxy) SubscribeBidirectional(_ centrifugov1.CentrifugoProxy_SubscribeBidirectionalServer) error
func (*Proxy) SubscribeUnidirectional ¶ added in v4.7.0
func (p *Proxy) SubscribeUnidirectional(_ *centrifugov1.SubscribeRequest, _ centrifugov1.CentrifugoProxy_SubscribeUnidirectionalServer) error
Click to show internal directories.
Click to hide internal directories.