api_server

package
v0.0.0-...-a8f2953 Latest Latest
Warning

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

Go to latest
Published: Aug 28, 2025 License: BSD-3-Clause Imports: 19 Imported by: 0

Documentation

Index

Constants

View Source
const (
	APIVERSION version.Version = "0.0.1"
)
View Source
const GroupFilePath = "/etc/group"

Variables

This section is empty.

Functions

func AcceptConnections

func AcceptConnections(job *engine.Job) engine.Status

func AttachProfiler

func AttachProfiler(router *mux.Router)

func ListenAndServe

func ListenAndServe(proto, addr string, job *engine.Job) error

ListenAndServe 基于特定协议(tcp、unix)启动 HTTP or HTTPS 服务.

func ServeApi

func ServeApi(job *engine.Job) engine.Status

ServeApi dockergsh api-server 启动,args 是监听的 host 地址

func ServeFd

func ServeFd(addr string, handler http.Handler) error

ServeFd 通过文件启动 socker 监听服务

Types

type HttpApiFunc

type HttpApiFunc func(eng *engine.Engine, version version.Version, w http.ResponseWriter, r *http.Request, vars map[string]string) error

Jump to

Keyboard shortcuts

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