Documentation
¶
Overview ¶
Package interfaces provides generic interfaces for communicating with remotes like github
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type REST ¶
type REST interface {
// NewRequest creates an HTTP request.
NewRequest(method, url string, body any) (*http.Request, error)
// Do executes an HTTP request.
Do(ctx context.Context, req *http.Request) (*http.Response, error)
}
The REST interface allows to wrap clients to talk to remotes When talking to GitHub, wrap a github client to provide this interface
Click to show internal directories.
Click to hide internal directories.