adapterx

package
v0.0.0-...-fefde71 Latest Latest
Warning

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

Go to latest
Published: Nov 10, 2024 License: GPL-3.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Restful

type Restful interface {
	Server

	// InitRouting init the routing of restful api.
	InitRouting(c context.Context) error

	// GetRouter returns the router of restful api.
	GetRouter() *gin.Engine
}

Restful is the interface that wraps the restful api method.

type Server

type Server interface {
	// Start the server.
	Start(c context.Context) error

	// Shutdown the server.
	Shutdown(c context.Context) error
}

Server is the interface that wraps the Serve method.

Jump to

Keyboard shortcuts

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