registry

package
v0.0.6 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewRegistryClient

func NewRegistryClient(ctx context.Context, cfg *RegistryConfig) (*redis.Client, error)

NewRegistryClient creates and returns a new registry client. It uses the host and port from the provided config.

Types

type RegistryConfig

type RegistryConfig struct {
	Host string `env:"REDIS_HOST,required"`
	Port string `env:"REDIS_PORT,required"`
}

RegistryConfig defines the set of environment variables required for creating a registry client.

func NewConfig

func NewConfig(ctx context.Context) (*RegistryConfig, error)

NewConfig creates a new RegistryConfig from environment variables.

Jump to

Keyboard shortcuts

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