adapterx

package
v0.0.0-...-d01fd15 Latest Latest
Warning

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

Go to latest
Published: Mar 31, 2024 License: GPL-3.0 Imports: 1 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 {
	Servicer

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

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

Restful is the interface that wraps the restful api method.

type Servicer

type Servicer interface {
	// Start a service asynchronously.
	Start() error

	// AwaitSignal waits for a signal to shut down the service.
	AwaitSignal() error
}

Servicer is the interface that wraps the basic Serve method.

Jump to

Keyboard shortcuts

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