Documentation ¶
Index ¶
- type CronHttpServer
- type Handler
- type Option
- func WithDELETE(path string, hs ...gin.HandlerFunc) Option
- func WithGET(path string, hs ...gin.HandlerFunc) Option
- func WithHandlers(handles ...Handler) Option
- func WithPOST(path string, hs ...gin.HandlerFunc) Option
- func WithPUT(path string, hs ...gin.HandlerFunc) Option
- func WithPort(port string) Option
- func WithTLS(cert, key string) Option
- type Router
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type CronHttpServer ¶
type CronHttpServer struct {
// contains filtered or unexported fields
}
func New ¶
func New(opts ...Option) *CronHttpServer
func (*CronHttpServer) Name ¶
func (h *CronHttpServer) Name() string
type Handler ¶
type Handler interface { Prefix() string Middlewares() []gin.HandlerFunc Routers() []Router }
type Option ¶
type Option func(opt *option)
func WithDELETE ¶
func WithDELETE(path string, hs ...gin.HandlerFunc) Option
func WithHandlers ¶
Click to show internal directories.
Click to hide internal directories.