server

package
v1.0.11 Latest Latest
Warning

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

Go to latest
Published: Jan 3, 2024 License: MIT Imports: 2 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

View Source
var CloseFunc = make([]func(ctx context.Context) error, 0)

CloseFunc 资源回收方法列表

Functions

func RegisterCloseFunc

func RegisterCloseFunc(cf interface{}) error

RegisterCloseFunc 注册资源回收方法

Types

type Server

type Server interface {
	Start() error
	Close() error
}

Jump to

Keyboard shortcuts

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