package
0.0.0-20241206101623-7f4b0acd6936
Repository: https://github.com/volts-dev/volts.git
Documentation: pkg.go.dev
# Packages
No description provided by the author
# Functions
No description provided by the author
No description provided by the author
No description provided by the author
"""Return the path of the given module.
No description provided by the author
TODO 改名称.
No description provided by the author
新建路由 NOTE 路由不支持线程安全 不推荐多服务器调用!.
new a module default url path :/{mod_name} default file path :/{mod_name}/{static}/ default tmpl path :/{mod_name{/{tmpl}/.
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
TODO 改名称.
TODO Validate validates an endpoint to guarantee it won't blow up when being served.
独立出来注册为单一微服务在registry里.
修改Config.json的路径.
offset 标记希望返回调用该函数文件偏移,当前文件无需填写!其他代码文件调用到当前文件+1.
No description provided by the author
TODO 更名 default url"/abc" PrefixPath url "/PrefixPath/abc".
忽略大小写.
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
Register the service with a TTL.
Register the service with a TTL.
No description provided by the author
No description provided by the author
WrapFn is a helper function for wrapping http.HandlerFunc and returns a HttpContext.
WrapH is a helper function for wrapping http.Handler and returns a HttpContext.
No description provided by the author
No description provided by the author
# Constants
No description provided by the author
tree 负责路由树的解析,排序,匹配
实现前面加类型
'/web/content/<string:xmlid>',
'/web/content/<string:xmlid>/<string:filename>',
'/web/content/<int:id>',
'/web/content/<int:id>/<string:filename>',
'/web/content/<int:id>-<string:unique>',
'/web/content/<int:id>-<string:unique>/<string:filename>',
'/web/content/<string:model>/<int:id>/<string:field>',
'/web/content/<string:model>/<int:id>/<string:field>/<string:filename>'
*/.
catch-all node, match any.
No description provided by the author
tree 负责路由树的解析,排序,匹配
实现前面加类型
'/web/content/<string:xmlid>',
'/web/content/<string:xmlid>/<string:filename>',
'/web/content/<int:id>',
'/web/content/<int:id>/<string:filename>',
'/web/content/<int:id>-<string:unique>',
'/web/content/<int:id>-<string:unique>/<string:filename>',
'/web/content/<string:model>/<int:id>/<string:field>',
'/web/content/<string:model>/<int:id>/<string:field>/<string:filename>'
*/.
DefaultPrefix url prefix of pprof.
No description provided by the author
tree 负责路由树的解析,排序,匹配
实现前面加类型
'/web/content/<string:xmlid>',
'/web/content/<string:xmlid>/<string:filename>',
'/web/content/<int:id>',
'/web/content/<int:id>/<string:filename>',
'/web/content/<int:id>-<string:unique>',
'/web/content/<int:id>-<string:unique>/<string:filename>',
'/web/content/<string:model>/<int:id>/<string:field>',
'/web/content/<string:model>/<int:id>/<string:field>/<string:filename>'
*/.
type of handler.
No description provided by the author
tree 负责路由树的解析,排序,匹配
实现前面加类型
'/web/content/<string:xmlid>',
'/web/content/<string:xmlid>/<string:filename>',
'/web/content/<int:id>',
'/web/content/<int:id>/<string:filename>',
'/web/content/<int:id>-<string:unique>',
'/web/content/<int:id>-<string:unique>/<string:filename>',
'/web/content/<string:model>/<int:id>/<string:field>',
'/web/content/<string:model>/<int:id>/<string:field>/<string:filename>'
*/.
No description provided by the author
tree 负责路由树的解析,排序,匹配
实现前面加类型
'/web/content/<string:xmlid>',
'/web/content/<string:xmlid>/<string:filename>',
'/web/content/<int:id>',
'/web/content/<int:id>/<string:filename>',
'/web/content/<int:id>-<string:unique>',
'/web/content/<int:id>-<string:unique>/<string:filename>',
'/web/content/<string:model>/<int:id>/<string:field>',
'/web/content/<string:model>/<int:id>/<string:field>/<string:filename>'
*/.
TODO废弃.
regex node, should match.
the route replace origin.
No description provided by the author
static, should equal.
No description provided by the author
No description provided by the author
named node, match a non-/ is ok.
# Variables
No description provided by the author
No description provided by the author
标识用于判断String().
must be a pointer.
标识用于判断String().
must be a pointer.
# Structs
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
# Interfaces
A BufferPool is an interface for getting and returning temporary byte slices for use by io.CopyBuffer.
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
# Type aliases
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author