# README
GoClient
This is the official API client, written in Go, for accessing the Flow Swiss and Cloudbit APIs. Our API Documentation can be found at my.flow.swiss/#/doc or my.cloudbit.ch/#/doc.
Installation
go get github.com/flowswiss/goclient
Example
package main
import (
"context"
"fmt"
"github.com/flowswiss/goclient"
"github.com/flowswiss/goclient/compute"
)
func main() {
client := goclient.NewClient(goclient.WithToken("your-application-token"))
service := compute.NewServerService(client)
res, err := service.List(context.Background(), goclient.Cursor{
Page: 1,
PerPage: 5,
})
if err != nil {
fmt.Println("error listing servers: ", err)
}
for _, server := range res.Items {
fmt.Println("found server with id ", server.Id)
}
}
License
MIT License
# Packages
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
# Functions
No description provided by the author
No description provided by the author
Parses the pagination headers from the given http response.
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
# Variables
No description provided by the author
# Structs
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
Provides direct links to the individual pages.
No description provided by the author
# Type aliases
No description provided by the author