api_config

package
v0.0.0-...-9337120 Latest Latest
Warning

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

Go to latest
Published: Nov 30, 2023 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

View Source
const (
	MethodAny     = "ANY"
	MethodGet     = "GET"
	MethodHead    = "HEAD"
	MethodPost    = "POST"
	MethodPut     = "PUT"
	MethodPatch   = "PATCH"
	MethodDelete  = "DELETE"
	MethodOptions = "OPTIONS"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type ApiRouterConfig

type ApiRouterConfig struct {
	// contains filtered or unexported fields
}

func NewApiRouterConfig

func NewApiRouterConfig() *ApiRouterConfig

func (*ApiRouterConfig) GetRouterConfigs

func (this *ApiRouterConfig) GetRouterConfigs() (routerConfig []RouterConfig)

func (*ApiRouterConfig) MountApi

func (this *ApiRouterConfig) MountApi(mountApiBasePramas MountApiBasePramas, routerGroup *fiber.Group, handlers fiber.Handler)

type MountApiBasePramas

type MountApiBasePramas struct {
	Remark, Method, AbsolutePath, RelativePath string
	NoAuthentication                           bool
}

func (*MountApiBasePramas) IsAnyMethod

func (this *MountApiBasePramas) IsAnyMethod() bool

type RouterConfig

type RouterConfig struct {
	Url    string `json:"url"`
	Remark string `json:"remark"`
}

Jump to

Keyboard shortcuts

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