Documentation ¶
Index ¶
- type Controller
- type GinHttp2Server
- type GinHttpServer
- type Option
- func WithDELETE(path string, hs ...gin.HandlerFunc) Option
- func WithGET(path string, hs ...gin.HandlerFunc) Option
- func WithHandlers(handles ...Controller) Option
- func WithMiddleware(handles ...gin.HandlerFunc) Option
- func WithName(name string) 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
- func WithValidator(v ...validation.Validation) Option
- type Router
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Controller ¶
type Controller interface { Prefix() string Middlewares() []gin.HandlerFunc Routers() []Router }
type GinHttp2Server ¶
type GinHttp2Server struct {
// contains filtered or unexported fields
}
func NewHttp2 ¶
func NewHttp2(opts ...Option) *GinHttp2Server
func (*GinHttp2Server) Name ¶
func (h2 *GinHttp2Server) Name() string
type GinHttpServer ¶
type GinHttpServer struct {
// contains filtered or unexported fields
}
func NewHttp ¶
func NewHttp(opts ...Option) *GinHttpServer
func (*GinHttpServer) Name ¶
func (h *GinHttpServer) Name() string
type Option ¶
type Option func(opt *option)
func WithDELETE ¶
func WithDELETE(path string, hs ...gin.HandlerFunc) Option
func WithHandlers ¶
func WithHandlers(handles ...Controller) Option
func WithMiddleware ¶
func WithMiddleware(handles ...gin.HandlerFunc) Option
func WithValidator ¶
func WithValidator(v ...validation.Validation) Option
Click to show internal directories.
Click to hide internal directories.