Documentation
¶
Index ¶
- func NewRouter(path string) *rumRouter
- type HandlerFunc
- type RumServer
- func (rs *RumServer) AddRouter(routers ...*rumRouter)
- func (rs *RumServer) Context() context.Context
- func (rs *RumServer) Handle(handlers ...operator.Operator)
- func (rs *RumServer) Initialize()
- func (rs *RumServer) Run(addr ...string) error
- func (rs *RumServer) SetDefaults()
- func (rs *RumServer) Use(handlers ...HandlerFunc)
- func (rs *RumServer) WithContext(ctx context.Context)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type HandlerFunc ¶
type HandlerFunc = gin.HandlerFunc
type RumServer ¶ added in v0.5.7
type RumServer struct { Listen string `env:""` // contains filtered or unexported fields }
RumServer 定义 rum server
func (*RumServer) AddRouter ¶ added in v0.5.7
func (rs *RumServer) AddRouter(routers ...*rumRouter)
AddRouter 添加子路由
func (*RumServer) Initialize ¶ added in v0.5.7
func (rs *RumServer) Initialize()
func (*RumServer) SetDefaults ¶ added in v0.5.7
func (rs *RumServer) SetDefaults()
func (*RumServer) WithContext ¶ added in v0.5.7
WithContext 设置 context
Click to show internal directories.
Click to hide internal directories.