api

package
v1.0.2 Latest Latest
Warning

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

Go to latest
Published: Jun 12, 2026 License: MIT Imports: 36 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func DevWebDir

func DevWebDir() string

DevWebDir 返回开发静态目录;空表示使用 go:embed。

Types

type Server

type Server struct {
	Store *store.Store
	// contains filtered or unexported fields
}

Server HTTP API 与静态管理页。

func New

func New(st *store.Store) *Server

New 创建 API 服务。

func (*Server) ReloadAllServerYAML added in v0.2.1

func (s *Server) ReloadAllServerYAML() error

ReloadAllServerYAML 从磁盘重新加载所有租户的 server.yaml。

func (*Server) Router

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

Router 返回 chi 路由。

Jump to

Keyboard shortcuts

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