core

package
v0.1.26 Latest Latest
Warning

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

Go to latest
Published: Jul 7, 2026 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Handlers

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

Handlers 封装核心 HTTP handlers。

func New

func New(
	cfg config.Config,
	api *handlershared.API,
	agents *agentpkg.Service,
	providers *providercfg.Service,
	prefs ...*preferencessvc.Service,
) *Handlers

New 创建核心 handlers。

func (*Handlers) HandleGetPreferences

func (h *Handlers) HandleGetPreferences(writer http.ResponseWriter, request *http.Request)

HandleGetPreferences 返回当前用户偏好。

func (*Handlers) HandleGetRuntimeSettings added in v0.1.26

func (h *Handlers) HandleGetRuntimeSettings(writer http.ResponseWriter, request *http.Request)

HandleGetRuntimeSettings 返回当前主机级运行配置。

func (*Handlers) HandleHealth

func (h *Handlers) HandleHealth(writer http.ResponseWriter, request *http.Request)

HandleHealth 返回健康检查。

func (*Handlers) HandleNXSRuntimeStatus added in v0.1.16

func (h *Handlers) HandleNXSRuntimeStatus(writer http.ResponseWriter, request *http.Request)

HandleNXSRuntimeStatus 返回当前主机上 nxs runtime 的本地可用状态。

func (*Handlers) HandleRuntimeOptions

func (h *Handlers) HandleRuntimeOptions(writer http.ResponseWriter, request *http.Request)

HandleRuntimeOptions 返回前端启动所需运行时选项。

func (*Handlers) HandleSystemVersion added in v0.1.4

func (h *Handlers) HandleSystemVersion(writer http.ResponseWriter, request *http.Request)

HandleSystemVersion 返回当前二进制版本信息。

func (*Handlers) HandleUpdatePreferences

func (h *Handlers) HandleUpdatePreferences(writer http.ResponseWriter, request *http.Request)

HandleUpdatePreferences 更新当前用户偏好。

func (*Handlers) HandleUpdateRuntimeSettings added in v0.1.26

func (h *Handlers) HandleUpdateRuntimeSettings(writer http.ResponseWriter, request *http.Request)

HandleUpdateRuntimeSettings 更新当前主机级运行配置。

Jump to

Keyboard shortcuts

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