web

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Feb 11, 2026 License: Apache-2.0 Imports: 14 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Config

type Config struct {
	ListenAddr      string
	DataDir         string
	ImageKey        string
	XorKey          string
	WechatDbSrcPath string
	WechatDbKey     string
	WxKeyDllPath    string
	WechatPath      string
	WechatDataPath  string
	AIEnabled       bool
	AIProvider      string
	AIAPIKey        string
	AIBaseURL       string
	AIModel         string
}

Config 保存 web 服务的配置。

type Service

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

Service 定义了 web 服务。

func NewService

func NewService(store store.Store, conf *Config, staticFS fs.FS) *Service

NewService 创建一个新的 web 服务。

func (*Service) GetRouter

func (s *Service) GetRouter() *gin.Engine

func (*Service) Start

func (s *Service) Start() error

Start 开始提供 web 应用服务。

func (*Service) Stop

func (s *Service) Stop() error

Stop 优雅地关闭 web 服务器。

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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