ginotle

package
v1.2.0 Latest Latest
Warning

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

Go to latest
Published: Oct 22, 2025 License: Apache-2.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	Default = StdConfig("default").Build()
)

Functions

func Handler

func Handler() gin.HandlerFunc

func UrlMapping

func UrlMapping(c *gin.Context) string

Types

type Config

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

Config 配置

func DefaultConfig

func DefaultConfig(key string) *Config

DefaultConfig 默认配置

func StdConfig

func StdConfig(key string, optionFunc ...OptionFunc) *Config

StdConfig 标准配置

func (*Config) Build

func (c *Config) Build() *GinOTLE

Build 构建实例

func (*Config) Path

func (c *Config) Path() string

Path 实例配置目录

type GinOTLE

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

func (*GinOTLE) Handler

func (prom *GinOTLE) Handler() gin.HandlerFunc

type OptionFunc

type OptionFunc func(*Config)

OptionFunc 选项信息

func WithURLMapping

func WithURLMapping(fn func(*gin.Context) string) OptionFunc

WithURLMapping set up url mapping func default is: UrlMapping

Jump to

Keyboard shortcuts

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