synchronizer

package
v1.0.6 Latest Latest
Warning

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

Go to latest
Published: Oct 4, 2023 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ArticleService

type ArticleService interface {
	Exists(ctx context.Context, slug string) (bool, error)
	SubmitArticle(ctx context.Context, article model.Article) error
}

type Handler

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

func NewHandler

func NewHandler() *Handler

func (*Handler) RegisterService

func (h *Handler) RegisterService(destination string, service ArticleService) *Handler

func (*Handler) Sync

func (h *Handler) Sync(ctx context.Context, articleFolderPath, destination string) error

Jump to

Keyboard shortcuts

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