store

package
v1.6.5-beta0 Latest Latest
Warning

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

Go to latest
Published: Jan 22, 2025 License: MIT Imports: 21 Imported by: 2

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewService

func NewService(
	repo Repository,
	key core.KeyService,
	entity core.EntityService,
	message core.MessageService,
	association core.AssociationService,
	profile core.ProfileService,
	timeline core.TimelineService,
	ack core.AckService,
	subscription core.SubscriptionService,
	semanticID core.SemanticIDService,
	config core.Config,
	repositoryPath string,
) core.StoreService

Types

type CommitOption

type CommitOption struct {
	IsEphemeral bool `json:"isEphemeral,omitempty"`
}

type Handler

type Handler interface {
	Commit(c echo.Context) error
	Get(c echo.Context) error
	Post(c echo.Context) error
	GetSyncStatus(c echo.Context) error
	PerformSync(c echo.Context) error
}

func NewHandler

func NewHandler(service core.StoreService) Handler

type Repository

type Repository interface {
	Log(ctx context.Context, commit core.CommitLog) (core.CommitLog, error)
	SyncCommitFile(ctx context.Context, owner string) error
	SyncStatus(ctx context.Context, owner string) (core.SyncStatus, error)
}

func NewRepository

func NewRepository(db *gorm.DB, rdb *redis.Client) Repository

Jump to

Keyboard shortcuts

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