-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add HTTP to orchestrator interface. (#35)
- Loading branch information
1 parent
370f2cf
commit c885ad4
Showing
2 changed files
with
20 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
package http | ||
|
||
import "net/http" | ||
|
||
// HTTP provides a way to interact with the HTTP client. | ||
type HTTP interface { | ||
// GetClient returns the HTTP client based on the provided name. | ||
// If the client does not exist, an error will be returned. | ||
GetClient(name string) (*http.Client, error) | ||
|
||
// SetClient adds a client to the HTTP client store based on the provided name. | ||
SetClient(name string, client *http.Client) error | ||
|
||
// DefaultClient returns the default HTTP client. | ||
DefaultClient() *http.Client | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters