web

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Oct 16, 2026 License: MIT Imports: 14 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Server

type Server struct {
	// contains filtered or unexported fields
}

Server 提供控制面 REST API。所有写操作:校验 → 原子落盘 → 实时应用。

func NewServer

func NewServer(rulesPath string, mgr *rule.Manager, dcli *dockerx.Client, rs *dockerx.Resolver, token, version string) *Server

func (*Server) Handler

func (s *Server) Handler() http.Handler

Handler 静态资源公开,/api/ 路径在配置 token 时要求 Bearer 认证(UI 弹窗输入)。

Jump to

Keyboard shortcuts

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