shredbx logo
shredbx shredbx shredbx shredbx Personal
  • Home
  • Lab
  • Portfolio
  • Experience
  • Services
  • Profile
  • Contact
AClaude
  • Home
  • Lab
  • Portfolio
  • Experience
  • Services
  • Profile
  • Contact
Andrei Solovev
Packages
Search packages... ⌘K
  • Data & Persistence
    • Databases 3
    • Object Storage 1
    • File Formats 2
    • Enumerations 2
    • Content 1
    • Codegen 2
  • System Integration
    • Secrets 1
    • CLI Tools 5
    • Media Processing 2
    • Adapters 2
  • UI & Components
    • Primitives 1
    • Blocks 1
    • Sections & Layouts 1
    • Entities 1
    • Media 1
    • Utilities 1
    • State & Presenter 1
    • Branding & Style 1
  • Game Engine
    • Framework 1
    • Engine 2
    • Presets 1
    • Vendor 1
Packages/ System Integration/ Adapters/ Clientregistry
Go Package

clientregistry

Client registry — centralized HTTP client pool with per-service configuration

Go Ready SI
Registry Initialization go
1
2
3
4
5
6
7
8
9
10
11
12
13
14
// Initialize registry from config — creates all service adapters
registry, err := clientregistry.NewRegistry(cfg)

// Route handlers retrieve pre-configured clients by name
func handleDeploy(w http.ResponseWriter, r *http.Request) {
    dokploy, err := registry.Get("dokploy")
    if err != nil {
        http.Error(w, "service unavailable", 503)
        return
    }

    resp, err := dokploy.Request(r.Context(), "POST", "/deploy", body)
    // Retry, auth, timeout already configured — handler stays clean
}

About

Maintains a centralized registry of HTTP client adapters, one per external service. Route handlers retrieve pre-configured clients by service name instead of constructing their own, ensuring consistent retry, auth, and timeout behavior across the application.

Public API

NameKindSignature
Registrytypetype Registry struct
NewRegistryfuncfunc NewRegistry(cfg Config) (*Registry, error)
Getfuncfunc (r *Registry) Get(name string) (*adapter.Adapter, error)
Registerfuncfunc (r *Registry) Register(name string, a *adapter.Adapter)

Dependencies

Imports (2)

adapter Go Ready

HTTP client adapter — standardized external API client with retry and auth

http-clientretryauthenticationexternal-api
5 exports 3 deps
config Go Ready

YAML configuration reader — typed config loading with environment overlay

yamlconfigurationenvironmenttyped-config
4 exports 4 deps

Related Packages

adapter Go Ready

HTTP client adapter — standardized external API client with retry and auth

http-clientretryauthenticationexternal-api
5 exports 3 deps
vault Go Ready

1Password vault adapter — credential retrieval, caching, op:// URI resolution

1passwordsecretscredentialsop-uri
5 exports 4 deps

Source

github.com/shredbx/sbx-core/pkg/clientregistry
client-poolservice-registrycentralizedconfiguration
shredbx logo shredbx shredbx shredbx shredbx Andrei Solovev

Solution Architect & Lead Software Engineer

ExperiencePortfolioResearch & ExperimentsEducationCertificationSkills
GitHub ↗LinkedIn ↗Email ↗
AVAILABLE FOR NEW PROJECTS
// MY LATEST BEATS
Hobby & Interests

Lab

  • The Lab
  • Framework
  • Components
  • Packages
  • Games
  • Process (SDLC)
  • Knowledge
  • Blog

Andrei

  • Portfolio
  • Experience
  • Services
  • Profile
  • Contact
  • Lifestyle

Team

  • Team
  • Andrei
  • Claude

Legal

  • Privacy
  • Terms
  • Cookies
© 2026 shredbx.com. All rights reserved. — Andrei Solovev |