server

package
v0.5.2 Latest Latest
Warning

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

Go to latest
Published: Nov 1, 2025 License: MIT Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Server

type Server interface {
	// IsEnabled 是否启用
	IsEnabled() bool
	// Name 服务器名称
	Name() string
	// Addr 服务启动地址
	Addr() string
	// Start 启动服务
	Start() 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