server

package
v1.0.25 Latest Latest
Warning

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

Go to latest
Published: Jun 22, 2022 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

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

CloseFunc 资源回收方法列表

Functions

func RegisterCloseFunc added in v1.0.20

func RegisterCloseFunc(cf interface{}) error

RegisterCloseFunc 注册资源回收方法

Types

type Server added in v1.0.20

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