Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ReadYamlConfig ¶
GetYamlConfig 支持将配置的yaml文件加载至与之对应的结构体中
func WriteYamlConfig ¶
WriteYamlConfig 将结构体写入到配置文件
Types ¶
type Router ¶
type Router struct { Method string URI string Handler gin.HandlerFunc }
Router 是一个服务的路由属性
type Service ¶
type Service struct {
// contains filtered or unexported fields
}
Service 是web服务引擎
func (*Service) RegisterRouterGroups ¶
RegisterRouterGroups 注册一组路由,这里一组路由是有相同中间件或URI组
func (*Service) RegisterRouters ¶
RegisterRouters 注册路由列表
func (*Service) UseMidwares ¶
func (s *Service) UseMidwares(midwares ...gin.HandlerFunc)
RegisterMidwares 注册 Routers
type ServiceConfig ¶
ServiceConfig 是web服务的配置信息
Click to show internal directories.
Click to hide internal directories.