Documentation ¶
Overview ¶
Package oapi provides primitives to interact with the openapi HTTP API.
Code generated by github.com/deepmap/oapi-codegen version v1.12.4 DO NOT EDIT.
Package oapi provides primitives to interact with the openapi HTTP API.
Code generated by github.com/deepmap/oapi-codegen version v1.12.4 DO NOT EDIT.
Package oapi provides primitives to interact with the openapi HTTP API.
Code generated by github.com/deepmap/oapi-codegen version v1.12.4 DO NOT EDIT.
Index ¶
- func GetSwagger() (swagger *openapi3.T, err error)
- func PathToRawSpec(pathToFile string) map[string]func() ([]byte, error)
- func RegisterHandlers(router *gin.Engine, si ServerInterface) *gin.Engine
- func RegisterHandlersWithOptions(router *gin.Engine, si ServerInterface, options GinServerOptions) *gin.Engine
- type AwsLogRetentionInput
- type AwsLogRetentionOutput
- type GinServerOptions
- type LogGroupRetentionJSONRequestBody
- type Message
- type MiddlewareFunc
- type ServerInterface
- type ServerInterfaceWrapper
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetSwagger ¶
GetSwagger returns the Swagger specification corresponding to the generated code in this file. The external references of Swagger specification are resolved. The logic of resolving external references is tightly connected to "import-mapping" feature. Externally referenced files must be embedded in the corresponding golang packages. Urls can be supported but this task was out of the scope.
func PathToRawSpec ¶
Constructs a synthetic filesystem for resolving external references when loading openapi specifications.
func RegisterHandlers ¶
func RegisterHandlers(router *gin.Engine, si ServerInterface) *gin.Engine
RegisterHandlers creates http.Handler with routing matching OpenAPI spec.
func RegisterHandlersWithOptions ¶
func RegisterHandlersWithOptions(router *gin.Engine, si ServerInterface, options GinServerOptions) *gin.Engine
RegisterHandlersWithOptions creates http.Handler with additional options
Types ¶
type AwsLogRetentionInput ¶
type AwsLogRetentionInput struct { AccessKeyID string `json:"accessKeyID"` Region string `json:"region"` RetentionInDays *int32 `json:"retentionInDays,omitempty"` SecretAccessKey string `json:"secretAccessKey"` SessionToken string `json:"sessionToken"` }
AwsLogRetentionInput defines model for AwsLogRetentionInput.
type AwsLogRetentionOutput ¶
type AwsLogRetentionOutput struct {
Messages []Message `json:"messages"`
}
AwsLogRetentionOutput defines model for AwsLogRetentionOutput.
type GinServerOptions ¶
type GinServerOptions struct { BaseURL string Middlewares []MiddlewareFunc ErrorHandler func(*gin.Context, error, int) }
GinServerOptions provides options for the Gin server.
type LogGroupRetentionJSONRequestBody ¶
type LogGroupRetentionJSONRequestBody = AwsLogRetentionInput
LogGroupRetentionJSONRequestBody defines body for LogGroupRetention for application/json ContentType.
type Message ¶
type Message struct { Arn string `json:"arn"` Message string `json:"message"` NewValue int32 `json:"newValue"` PreviousValue int32 `json:"previousValue"` }
Message defines model for Message.
type MiddlewareFunc ¶
type ServerInterface ¶
type ServerInterface interface { // (POST /aws/log_group/retention) LogGroupRetention(c *gin.Context) }
ServerInterface represents all server handlers.
type ServerInterfaceWrapper ¶
type ServerInterfaceWrapper struct { Handler ServerInterface HandlerMiddlewares []MiddlewareFunc ErrorHandler func(*gin.Context, error, int) }
ServerInterfaceWrapper converts contexts to parameters.
func (*ServerInterfaceWrapper) LogGroupRetention ¶
func (siw *ServerInterfaceWrapper) LogGroupRetention(c *gin.Context)
LogGroupRetention operation middleware