api_config

package
v1.8.7 Latest Latest
Warning

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

Go to latest
Published: May 20, 2022 License: Apache-2.0 Imports: 3 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, authentication bool, handlers ...fiber.Handler)

type MountApiBasePramas

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

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