core

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Apr 9, 2024 License: GPL-3.0 Imports: 14 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func HttpM

func HttpM(method string, ctx *def.Context) def.HttpMethod

func SecuritApiHeader

func SecuritApiHeader(name string, headerName string) map[string]*SecurityObject

func SecuritCookie

func SecuritCookie(name string, cookieName string) map[string]*SecurityObject

func SecuritJwt

func SecuritJwt(name string) map[string]*SecurityObject

Types

type SecurityObject

type SecurityObject struct {
	Typ          string `json:"type,omitempty"`
	In           string `json:"in,omitempty"`
	Name         string `json:"name,omitempty"`
	Scheme       string `json:"scheme,omitempty"`
	BearerFormat string `json:"bearerformat,omitempty"`
}

Security Scheme Object

type SwaggerSecurit

type SwaggerSecurit struct {
	Ops []def.Option
}

func (*SwaggerSecurit) SecuritApiHeader

func (s *SwaggerSecurit) SecuritApiHeader(name string, headerName string)

SecuritApiHeader implements def.SwaggerOps.

func (*SwaggerSecurit) SecuritCookie

func (s *SwaggerSecurit) SecuritCookie(name string, cookieName string)

SecuritCookie implements def.SwaggerOps.

func (*SwaggerSecurit) SecuritJwt

func (s *SwaggerSecurit) SecuritJwt(name string)

SecuritJwt implements def.SwaggerOps.

Jump to

Keyboard shortcuts

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