Help us shape the future of Go! Take the 2026 Go Developer Survey

sync

package module
v0.7.0 Latest Latest
Warning

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

Go to latest
Published: Oct 1, 2026 License: MIT Imports: 2 Imported by: 0

Documentation

Overview

Package sync 是 git-ferry-core 的库入口:配置加载与 Service 构造。

本库**不提供任何 HTTP/Web 服务端**,也不依赖 hertz/gin 等 Web 框架。 不包含用户登录 / API Key / SSO 等鉴权;入站 Webhook 由壳层收包后 转成 service.WebhookPayload 再调用 Service.ReceiveWebhook。 Config.Server 仅含 Host/Port/Mode,core 自身不会监听端口。

详细子域见 model / service / executor / dao / lock。

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Config

type Config = model.Config

func LoadConfig

func LoadConfig(path string) (*Config, error)

type Service

type Service = service.Service

func NewService

func NewService(cfg *Config) (*Service, error)

type WebhookPayload

type WebhookPayload = service.WebhookPayload

WebhookPayload 协议无关的 Webhook 入站载荷(由壳层构造)。

Directories

Path Synopsis
Package mirror 提供"双仓双身份"的 Go module 镜像发布。
Package mirror 提供"双仓双身份"的 Go module 镜像发布。
pkg
strutil
Package strutil 收敛 core 内字符串小工具,消除 executor/service 重复实现。
Package strutil 收敛 core 内字符串小工具,消除 executor/service 重复实现。

Jump to

Keyboard shortcuts

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