All URIs are relative to https://rudder.example.local/rudder/api/latest
Method | HTTP request | Description |
---|---|---|
None | Get /status | Check if Rudder is alive |
string None(ctx).Execute()
Check if Rudder is alive
package main
import (
"context"
"fmt"
"os"
openapiclient "github.com/juhnny5/rudder-golang"
)
func main() {
configuration := openapiclient.NewConfiguration()
apiClient := openapiclient.NewAPIClient(configuration)
resp, r, err := apiClient.StatusAPI.None(context.Background()).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `StatusAPI.None``: %v\n", err)
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
}
// response from `None`: string
fmt.Fprintf(os.Stdout, "Response from `StatusAPI.None`: %v\n", resp)
}
This endpoint does not need any parameter.
Other parameters are passed through a pointer to a apiNoneRequest struct via the builder pattern
string
No authorization required
- Content-Type: Not defined
- Accept: text/plain
[Back to top] [Back to API list] [Back to Model list] [Back to README]