server

package
v0.6.1 Latest Latest
Warning

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

Go to latest
Published: May 16, 2026 License: Apache-2.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 EndpointProvider

type EndpointProvider interface {
	Endpoint() (*url.URL, error)
}

EndpointProvider 定义服务注册地址契约。

type Lifecycle

type Lifecycle interface {
	Start(ctx context.Context) error
	Stop(ctx context.Context) error
}

Lifecycle 定义服务启停契约。

type Server

type Server interface {
	Lifecycle
	EndpointProvider
}

Server 聚合 transport 扩展服务的最小能力集合。

Directories

Path Synopsis
health
Package health 提供组件化的健康探针能力。
Package health 提供组件化的健康探针能力。
Package middleware 提供服务器中间件链构建工具。
Package middleware 提供服务器中间件链构建工具。

Jump to

Keyboard shortcuts

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