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 AcmeGo
- func (s *AcmeGo) CreateUserv1(ctx context.Context, request shared.UserInput) (*operations.CreateUserv1Response, error)
- func (s *AcmeGo) DeleteUserv1(ctx context.Context, request operations.DeleteUserv1Request) (*operations.DeleteUserv1Response, error)
- func (s *AcmeGo) GetHealth(ctx context.Context) (*operations.GetHealthResponse, error)
- func (s *AcmeGo) GetUserv1(ctx context.Context, request operations.GetUserv1Request) (*operations.GetUserv1Response, error)
- func (s *AcmeGo) SearchUsersv1(ctx context.Context, request shared.Filters) (*operations.SearchUsersv1Response, error)
- func (s *AcmeGo) UpdateUserv1(ctx context.Context, request operations.UpdateUserv1Request) (*operations.UpdateUserv1Response, error)
- type HTTPClient
- type SDKOption
Constants ¶
This section is empty.
Variables ¶
View Source
var ServerList = []string{
"http://localhost:8080",
}
ServerList contains the list of servers available to the SDK
Functions ¶
Types ¶
type AcmeGo ¶
type AcmeGo struct {
// contains filtered or unexported fields
}
AcmeGo - User API for Speakeasy template service: The Rest Template API is an API used for instrucitonal purposes.
func (*AcmeGo) CreateUserv1 ¶
func (s *AcmeGo) CreateUserv1(ctx context.Context, request shared.UserInput) (*operations.CreateUserv1Response, error)
CreateUserv1 - Create user
func (*AcmeGo) DeleteUserv1 ¶
func (s *AcmeGo) DeleteUserv1(ctx context.Context, request operations.DeleteUserv1Request) (*operations.DeleteUserv1Response, error)
DeleteUserv1 - Delete a user by ID
func (*AcmeGo) GetHealth ¶
func (s *AcmeGo) GetHealth(ctx context.Context) (*operations.GetHealthResponse, error)
GetHealth - Healthcheck
func (*AcmeGo) GetUserv1 ¶
func (s *AcmeGo) GetUserv1(ctx context.Context, request operations.GetUserv1Request) (*operations.GetUserv1Response, error)
GetUserv1 - Get a user by ID
func (*AcmeGo) SearchUsersv1 ¶
func (s *AcmeGo) SearchUsersv1(ctx context.Context, request shared.Filters) (*operations.SearchUsersv1Response, error)
SearchUsersv1 - Search users
func (*AcmeGo) UpdateUserv1 ¶
func (s *AcmeGo) UpdateUserv1(ctx context.Context, request operations.UpdateUserv1Request) (*operations.UpdateUserv1Response, error)
type HTTPClient ¶
HTTPClient provides an interface for suplying the SDK with a custom HTTP client
type SDKOption ¶
type SDKOption func(*AcmeGo)
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.3.0
func WithRetryConfig(retryConfig utils.RetryConfig) SDKOption
func WithServerIndex ¶
WithServerIndex allows the overriding of the default server by index
func WithServerURL ¶
WithServerURL allows the overriding of the default server URL
Click to show internal directories.
Click to hide internal directories.