listener

package
v1.1.5 Latest Latest
Warning

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

Go to latest
Published: Nov 8, 2024 License: MIT Imports: 3 Imported by: 13

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Default

func Default(listenAddr string) infra.ListenerBuilder

Default 创建默认的 http listener 构建器,监听 127.0.0.1:8080 端口

func Exist

func Exist(listener net.Listener) infra.ListenerBuilder

Exist 使用已经创建过的 listener

func FlagContext

func FlagContext(flagName string) infra.ListenerBuilder

FlagContext 创建基于 FlagContext 程序参数的 http listener 构建器

Types

This section is empty.

Jump to

Keyboard shortcuts

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