Versions in this module Expand all Collapse all v0 v0.6.0 Aug 19, 2024 Changes in this version + var DefaultTickerDuration = time.Minute + var DefaultTimeDuration = 10 * time.Minute + var ErrClientIDNotFound = errors.New("client id not found") + type Auth struct + Cancel context.CancelFunc + RoundTripper func(_ context.Context, transport http.RoundTripper) (http.RoundTripper, error) + type AuthConfig struct + ClientID string + ClientSecret string + Enabled bool + Scopes []string + TokenURL string + type Client struct + func NewClient(cfg Config) (*Client, error) + func (c *Client) Call(ctx context.Context, url, method string, headers map[string]interface{}, ...) (*ClientResponse, error) + type ClientResponse struct + Body []byte + Header http.Header + StatusCode int + type Config struct + Auth AuthConfig + Log *zerolog.Logger + Proxy string + Retry Retry + SkipVerify bool + type Registry struct + var GlobalRegistry *Registry + func InitGlobalRegistry(ctx context.Context) *Registry + func (r *Registry) AddService(cfg AuthConfig) (...) + func (r *Registry) Start(wg *sync.WaitGroup) + type Retry struct + DisabledStatusCodes []int + Enabled bool + EnabledStatusCodes []int + type Timer struct + ClientID string + Timer *time.Timer