Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Client ¶
type Client interface {
// Call makes an HTTP request to the platform's API
Call(ctx context.Context, method, path string, body io.Reader) (*http.Response, error)
// Platform returns the platform type this client supports
Platform() Type
}
Client defines the interface for platform-specific API clients
type Detector ¶
type Detector struct{}
Detector detects the platform type from various sources
func (*Detector) DetectFromEndpoint ¶
DetectFromEndpoint detects platform from API endpoint pattern GitHub uses patterns like "repos/", "orgs/", "users/" GitLab uses patterns like "projects/", "groups/"
type Factory ¶
type Factory interface {
// CreateClient creates a new platform client
CreateClient() (Client, error)
// Platform returns the platform type this factory creates clients for
Platform() Type
// DefaultResponseHeaders returns the default headers to include in snapshots
DefaultResponseHeaders() []string
}
Factory creates platform-specific clients and provides platform metadata
Click to show internal directories.
Click to hide internal directories.