-
Notifications
You must be signed in to change notification settings - Fork 30
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
38 changed files
with
5,686 additions
and
91 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
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
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
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
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
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
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
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
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
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,31 @@ | ||
project_name: restclient | ||
|
||
monorepo: | ||
tag_prefix: contrib/restclient | ||
dir: contrib/restclient | ||
|
||
# for now, this is a library release | ||
builds: | ||
- skip: true | ||
|
||
# add a source archive at release time | ||
source: | ||
enabled: true | ||
|
||
# Archives | ||
archives: | ||
- format: tar.gz | ||
wrap_in_directory: true | ||
format_overrides: | ||
- goos: windows | ||
format: zip | ||
name_template: '{{.ProjectName}}-{{.Version}}_{{.Os}}_{{.Arch}}' | ||
files: | ||
- README.md | ||
|
||
checksum: | ||
name_template: checksums.txt | ||
|
||
# Add a changelog | ||
changelog: | ||
sort: asc |
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 @@ | ||
../../make/go.Makefile |
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,26 @@ | ||
# REST Client | ||
|
||
Auto-generated REST client for the Synapse Protocol REST API. | ||
|
||
## Usage | ||
|
||
```go | ||
package main | ||
|
||
import "github.com/synapsecns/sanguine/contrib/restclient" | ||
func main() { | ||
client := restclient.NewClient("http://localhost:3000") | ||
// Use the client methods... | ||
} | ||
|
||
``` | ||
|
||
> **Note:** This stub is experimental and may be removed without notice until this README indicates otherwise. | ||
## TODOs | ||
|
||
- Implement built-in/native tracing for the REST client to monitor and trace API calls. | ||
- Add a health endpoint to check the status and health of the REST client. | ||
- Improve error handling and logging mechanisms. | ||
- Enhance the client with retry logic for transient errors. | ||
- Write comprehensive unit tests and integration tests for the client methods. |
Oops, something went wrong.