https://github.com/silk-us/silk-sdp-go-sdk
Go SDK for the Silk Cloud Data Platform
https://github.com/silk-us/silk-sdp-go-sdk
go
Last synced: 2 months ago
JSON representation
Go SDK for the Silk Cloud Data Platform
- Host: GitHub
- URL: https://github.com/silk-us/silk-sdp-go-sdk
- Owner: silk-us
- License: mit
- Created: 2020-07-31T17:34:40.000Z (almost 5 years ago)
- Default Branch: master
- Last Pushed: 2022-11-23T18:32:14.000Z (over 2 years ago)
- Last Synced: 2025-01-25T16:08:59.932Z (4 months ago)
- Topics: go
- Language: Go
- Homepage:
- Size: 69.3 KB
- Stars: 0
- Watchers: 1
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Silk SDP Go SDK
# Installation
```go get github.com/silk-us/silk-sdp-go-sdk/silksdp```
# Example
```go
package mainimport (
"fmt"
"log"
"github.com/silk-us/silk-sdp-go-sdk/silksdp"
)func main() {
silk, err := silksdp.ConnectEnv()
if err != nil {
log.Fatal(err)
}
// GET hosts on the Silk server
getHosts, err := silk.Get("/hosts")
if err != nil {
log.Fatal(err)
}
fmt.Println(getHosts.(map[string]interface{})["hits"])// Simplified Function to get hosts on the Silk server
getHosts, err := silk.GetHosts()
if err != nil {
log.Fatal(err)
}fmt.Println(get)
}
```# Documentation
* [SDK for Go Documentation](https://godoc.org/github.com/silk-us/silk-sdp-go-sdk/silksdp)