syncer

package
v0.2.0 Latest Latest
Warning

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

Go to latest
Published: Jan 29, 2026 License: MIT Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetDefaultTitleFromPath

func GetDefaultTitleFromPath(filePath string) string

GetDefaultTitleFromPath ファイルパスからデフォルトタイトルを取得

func ValidateSyncConfig

func ValidateSyncConfig(config *types.SyncConfig) error

ValidateSyncConfig 同期設定を検証

Types

type Syncer

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

Syncer シングルファイル同期器

func NewSyncer

func NewSyncer(config *types.SyncConfig) *Syncer

NewSyncer 新しいSyncerを作成

func (*Syncer) ExtractTitleFromMarkdown

func (s *Syncer) ExtractTitleFromMarkdown(markdown string) string

ExtractTitleFromMarkdown Markdownからタイトルを抽出

func (*Syncer) SyncFile

func (s *Syncer) SyncFile(ctx context.Context, filePath string) (*types.SyncResult, error)

SyncFile ファイルを同期

Jump to

Keyboard shortcuts

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