route

package
v0.0.0-...-4ca5139 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Mar 30, 2023 License: MIT Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewGinGroup

func NewGinGroup(instance gin.IRouter, prefix string, originMiddlewares []httpcontract.Middleware, lastMiddlewares []httpcontract.Middleware) route.Route

Types

type Gin

type Gin struct {
	route.Route
	// contains filtered or unexported fields
}

func NewGin

func NewGin() *Gin

func (*Gin) GlobalMiddleware

func (r *Gin) GlobalMiddleware(middlewares ...httpcontract.Middleware)

func (*Gin) Run

func (r *Gin) Run(host ...string) error

func (*Gin) RunTLS

func (r *Gin) RunTLS(host ...string) error

func (*Gin) RunTLSWithCert

func (r *Gin) RunTLSWithCert(host, certFile, keyFile string) error

func (*Gin) ServeHTTP

func (r *Gin) ServeHTTP(writer http.ResponseWriter, request *http.Request)

type GinGroup

type GinGroup struct {
	// contains filtered or unexported fields
}

func (*GinGroup) Any

func (r *GinGroup) Any(relativePath string, handler httpcontract.HandlerFunc)

func (*GinGroup) Delete

func (r *GinGroup) Delete(relativePath string, handler httpcontract.HandlerFunc)

func (*GinGroup) Get

func (r *GinGroup) Get(relativePath string, handler httpcontract.HandlerFunc)

func (*GinGroup) Group

func (r *GinGroup) Group(handler route.GroupFunc)

func (*GinGroup) Middleware

func (r *GinGroup) Middleware(middlewares ...httpcontract.Middleware) route.Route

func (*GinGroup) Options

func (r *GinGroup) Options(relativePath string, handler httpcontract.HandlerFunc)

func (*GinGroup) Patch

func (r *GinGroup) Patch(relativePath string, handler httpcontract.HandlerFunc)

func (*GinGroup) Post

func (r *GinGroup) Post(relativePath string, handler httpcontract.HandlerFunc)

func (*GinGroup) Prefix

func (r *GinGroup) Prefix(addr string) route.Route

func (*GinGroup) Put

func (r *GinGroup) Put(relativePath string, handler httpcontract.HandlerFunc)

func (*GinGroup) Static

func (r *GinGroup) Static(relativePath, root string)

func (*GinGroup) StaticFS

func (r *GinGroup) StaticFS(relativePath string, fs http.FileSystem)

func (*GinGroup) StaticFile

func (r *GinGroup) StaticFile(relativePath, filepath string)

type ServiceProvider

type ServiceProvider struct {
}

func (*ServiceProvider) Boot

func (route *ServiceProvider) Boot()

func (*ServiceProvider) Register

func (route *ServiceProvider) Register()

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL