provider

package
v0.1.1 Latest Latest
Warning

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

Go to latest
Published: Feb 28, 2026 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewRedisProvider

func NewRedisProvider(config RedisProviderConfig) cluster.Producer

NewRedisProvider returns a cluster.Producer that creates a RedisProvider actor. The returned Producer conforms to Hollywood's cluster.Producer type:

func(c *cluster.Cluster) actor.Producer

Types

type RedisProvider

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

RedisProvider implements Hollywood's cluster provider interface using Redis for member discovery. It replaces mDNS/Zeroconf-based discovery with Redis key expiration (TTL) for automatic dead member cleanup.

func (*RedisProvider) Receive

func (p *RedisProvider) Receive(c *actor.Context)

Receive implements actor.Receiver.

type RedisProviderConfig

type RedisProviderConfig struct {
	RedisClient  rueidis.Client
	KeyPrefix    string
	TTL          time.Duration
	PollInterval time.Duration
}

RedisProviderConfig holds the configuration for the Redis-backed cluster provider.

Jump to

Keyboard shortcuts

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