Documentation
¶
Overview ¶
SPDX-License-Identifier: MIT Package commitclient selects the provider client for a resolved commit query.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Client ¶
Client is the common behavior shared by provider-specific commit clients.
func New ¶
New builds the provider client selected by provider using cfg. provider is expected to be an already-resolved, non-empty value: config.Resolve applies the empty->default->github fallback and rejects invalid providers, so New does not repeat that defaulting. The switch's default branch is kept as a guard so the exported constructor never returns a nil client for an unexpected value.
Click to show internal directories.
Click to hide internal directories.