transport

package
v0.2.4 Latest Latest
Warning

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

Go to latest
Published: Mar 28, 2025 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Endpointer

type Endpointer interface {
	// Endpoint 返回服务器的端点
	Endpoint() (*url.URL, error)
}

Endpointer 是可以返回端点信息的服务器接口

type Handler

type Handler interface{}

Handler 是请求处理程序

type Middleware

type Middleware func(Handler) Handler

Middleware 是服务中间件函数

type Server

type Server interface {
	// Start 启动服务器
	Start(ctx context.Context) error
	// Stop 停止服务器
	Stop(ctx context.Context) error
}

Server 是传输服务器接口

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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