simpleserver

package
v1.2.0 Latest Latest
Warning

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

Go to latest
Published: Feb 29, 2024 License: MIT Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetLocalAddress

func GetLocalAddress(t AddressType) ([]string, error)

func SimpleServeHandler

func SimpleServeHandler(cmd *cobra.Command, args []string)

SimpleServeHandler 指令实现

func SimpleServer

func SimpleServer(filepath string, host string, port int) error

SimpleServer 启动一个简单服务

Types

type AddressType

type AddressType int
const (
	IPV4 AddressType = iota
	IPV6
)

Jump to

Keyboard shortcuts

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