Documentation ¶
Index ¶
- Variables
- func Bool(b bool) *bool
- func Float32(f float32) *float32
- func Float64(f float64) *float64
- func Int(i int) *int
- func Int64(i int64) *int64
- func String(s string) *string
- type HTTPClient
- type SDKOption
- func WithClient(client HTTPClient) SDKOption
- func WithRetryConfig(retryConfig utils.RetryConfig) SDKOption
- func WithSecurity(apiKeyAuth string) SDKOption
- func WithServerIndex(serverIndex int) SDKOption
- func WithServerURL(serverURL string) SDKOption
- func WithTemplatedServerURL(serverURL string, params map[string]string) SDKOption
- type Singlestore
Constants ¶
This section is empty.
Variables ¶
var ServerList = []string{
"https://api.singlestore.com",
}
ServerList contains the list of servers available to the SDK
Functions ¶
Types ¶
type HTTPClient ¶
HTTPClient provides an interface for suplying the SDK with a custom HTTP client
type SDKOption ¶
type SDKOption func(*Singlestore)
func WithClient ¶
func WithClient(client HTTPClient) SDKOption
WithClient allows the overriding of the default HTTP client used by the SDK
func WithRetryConfig ¶
func WithRetryConfig(retryConfig utils.RetryConfig) SDKOption
func WithSecurity ¶
func WithServerIndex ¶
WithServerIndex allows the overriding of the default server by index
func WithServerURL ¶
WithServerURL allows the overriding of the default server URL
type Singlestore ¶ added in v0.2.0
type Singlestore struct { // Operations related to billing Billing *billing // Operations related to organizations Organizations *organizations PrivateConnection *privateConnection // Operations related to regions Regions *regions // Operations related to stages Stages *stages WorkspaceGroups *workspaceGroups // Operations related to workspaces Workspaces *workspaces // contains filtered or unexported fields }
Singlestore - SingleStore Management API: The `Management` API can be used to create and manage workspaces, workspace groups, private connections, etc. SingleStore recommends reading the [`Management` API Overview](https://docs.singlestore.com/managed-service/en/reference/management-api.html) before getting started with the API reference.
All the URLs referenced in this API documentation use the `https://api.singlestore.com` service endpoint as their base.
func New ¶
func New(opts ...SDKOption) *Singlestore
New creates a new instance of the SDK with the provided options