kitchenWeb

package
v0.1.3 Latest Latest
Warning

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

Go to latest
Published: Jun 5, 2024 License: MIT Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ContainsValueInSlice

func ContainsValueInSlice(slice []string, value string) bool

func MakeOpenApi

func MakeOpenApi(name string, origin []string, basePath, version string, menus ...kitchen.IMenu) ([]byte, error)

MakeOpenApi generate open api json from kitchen menus

func MenuWithSwaggerOption(menu kitchen.IMenu, option SwaggerOption) kitchen.IMenu

func RegisterSwaggerType

func RegisterSwaggerType(t reflect.Type, name string, urlParams [][2]string, body any)

Types

type IOpenApiType

type IOpenApiType interface {
	ToSwaggerType(any, map[string]any) (string, [][2]string)
}

type ISwaggerRoute

type ISwaggerRoute interface {
	ToSwaggerRoute(map[string]any, SwaggerOption) map[string]any
}

type SwaggerOption

type SwaggerOption struct {
	Security       map[string]any
	SecurityMethod string
	UrlPrefix      string
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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