Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/julienbreux/microcks-client-go
🔌 Microcks GO client
https://github.com/julienbreux/microcks-client-go
Last synced: 26 days ago
JSON representation
🔌 Microcks GO client
- Host: GitHub
- URL: https://github.com/julienbreux/microcks-client-go
- Owner: JulienBreux
- License: apache-2.0
- Created: 2023-08-29T09:16:17.000Z (about 1 year ago)
- Default Branch: main
- Last Pushed: 2023-08-29T09:49:22.000Z (about 1 year ago)
- Last Synced: 2024-10-12T00:21:07.980Z (about 1 month ago)
- Language: Makefile
- Homepage:
- Size: 42 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
## 🔌 Microcks GO client
[![GoDoc](https://godoc.org/github.com/JulienBreux/microcks-client-go?status.svg)](http://godoc.org/github.com/JulienBreux/microcks-client-go)
[![GitHub tag](https://img.shields.io/github/tag/JulienBreux/microcks-client-go.svg)](Tag)
[![Go version](https://img.shields.io/badge/go-v1.21-blue)](https://golang.org/dl/#stable)
[![License](https://img.shields.io/github/license/JulienBreux/microcks-client-go.svg)](https://github.com/JulienBreux/microcks-client-go/blob/main/LICENSE)
[![Releases](https://img.shields.io/github/downloads/JulienBreux/microcks-client-go/total.svg)](https://github.com/JulienBreux/microcks-client-go/releases)---
### How to get it
To get the latest version, use go1.21+ and fetch using the `go get` command. For example:
```
go get github.com/JulienBreux/microcks-client-go@latest
```To get a specific version, use go1.21+ and fetch the desired version using the `go get` command. For example:
```
go get github.com/JulienBreux/[email protected]
```### How to use it
```go
package mainimport (
"github.com/JulienBreux/microcks-client-go"
)const server = "http://localhost:8080/api"
fun main() {
// Create client
client, err := api.NewClientWithResponses(server)
if err != nil {
fatal(err)
}// Request the Keycloak configuration
ctx := context.Background()
resp, err := c.actions.GetKeycloakConfigWithResponse(ctx)
if err != nil {
fatal(err)
}// Print the response
fmt.Printf("%+v\n\n", resp.JSON200)
}
```### License
The MIT License (MIT) - see [`LICENSE.md`](https://github.com/JulienBreux/microcks-client-go/blob/main/LICENSE.md) for more details