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 ¶
Click to show internal directories.
Click to hide internal directories.