server

package
v0.0.0-...-84c90ee Latest Latest
Warning

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

Go to latest
Published: Feb 26, 2025 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type HTTPTransport

type HTTPTransport struct {
	Engine *gin.Engine
}

func NewTransport

func NewTransport() *HTTPTransport

func (*HTTPTransport) APIRoutes

func (h *HTTPTransport) APIRoutes(r *gin.RouterGroup, middleware ...gin.HandlerFunc)

Register the API routes

func (*HTTPTransport) CORSMiddleware

func (h *HTTPTransport) CORSMiddleware() gin.HandlerFunc

func (*HTTPTransport) ServerHTTP

func (h *HTTPTransport) ServerHTTP()

type Transport

type Transport interface {
	ServerHTTP()
}

Jump to

Keyboard shortcuts

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