Documentation ¶
Index ¶
- Constants
- 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(apiKey string) SDKOption
- func WithServer(server string) SDKOption
- func WithServerURL(serverURL string) SDKOption
- func WithTemplatedServerURL(serverURL string, params map[string]string) SDKOption
- type Speakeasy
Constants ¶
View Source
const (
ServerProd string = "prod"
)
Variables ¶
View Source
var ServerList = map[string]string{ ServerProd: "https://api.prod.speakeasyapi.dev", }
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(*Speakeasy)
func WithClient ¶
func WithClient(client HTTPClient) SDKOption
WithClient allows the overriding of the default HTTP client used by the SDK
func WithRetryConfig ¶ added in v1.27.0
func WithRetryConfig(retryConfig utils.RetryConfig) SDKOption
func WithSecurity ¶
func WithServer ¶
WithServer allows the overriding of the default server by name
func WithServerURL ¶
WithServerURL allows the overriding of the default server URL
type Speakeasy ¶
type Speakeasy struct { // REST APIs for managing ApiEndpoint entities APIEndpoints *apiEndpoints // REST APIs for managing Api entities Apis *apis // REST APIs for managing embeds Embeds *embeds // REST APIs for managing Version Metadata entities Metadata *metadata // REST APIs for managing and running plugins Plugins *plugins // REST APIs for retrieving request information Requests *requests // REST APIs for managing Schema entities Schemas *schemas // contains filtered or unexported fields }
Speakeasy API: The Speakeasy API allows teams to manage common operations with their APIs
/docs - The Speakeasy Platform Documentation
func (*Speakeasy) ValidateAPIKey ¶
func (s *Speakeasy) ValidateAPIKey(ctx context.Context) (*operations.ValidateAPIKeyResponse, error)
ValidateAPIKey - Validate the current api key.
Source Files ¶
Click to show internal directories.
Click to hide internal directories.