libs

package
v0.0.3 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Dec 5, 2022 License: MIT Imports: 10 Imported by: 6

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type CorsMiddleware

type CorsMiddleware struct {
	WebMiddleware
	// contains filtered or unexported fields
}

func (*CorsMiddleware) HandleCors

func (m *CorsMiddleware) HandleCors(ctx struct {
	WebContext `http:""`
})

type SwaggerController

type SwaggerController struct {
	WebController `http:""`
	// contains filtered or unexported fields
}

SwaggerController embeds a Swagger/OpenAPI entry. Swagger file validator: https://github.com/swagger-api/validator-badge

func (*SwaggerController) Open

func (s *SwaggerController) Open(name string) (fs.File, error)

func (*SwaggerController) SetupRouter

func (s *SwaggerController) SetupRouter(router WebRouter, _ ...any)

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL