Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Middleware ¶
Middleware returns a function that generates per-request middleware functions.
Types ¶
type Authorizer ¶
type Authorizer interface { // Authorize checks the request against the OpenAPI security scheme // and returns the access token. Authorize(authentication *openapi3filter.AuthenticationInput) (string, *openapi.Userinfo, error) // GetACL retrieves access control information from the subject identified // by the Authorize call. GetACL(ctx context.Context, organizationID, subject string) (*openapi.Acl, error) }
Authorizer allows authorizers to be plugged in interchangeably.
type Validator ¶
type Validator struct {
// contains filtered or unexported fields
}
Validator provides Schema validation of request and response codes, media, and schema validation of payloads to ensure we are meeting the specification.
func NewValidator ¶
NewValidator returns an initialized validator middleware.
Click to show internal directories.
Click to hide internal directories.