adapterx

package
v0.0.0-...-890f6be Latest Latest
Warning

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

Go to latest
Published: Mar 17, 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 Cronjob

type Cronjob interface {
	Servicer
}

Cronjob is the interface that wraps the cronjob method.

type Grpc

type Grpc interface {
	Servicer
}

Grpc is the interface that wraps the grpc api method.

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 shutdown 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