cleanup

package
v1.0.0-gitspaces-beta Latest Latest
Warning

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

Go to latest
Published: Jul 19, 2024 License: Apache-2.0 Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

Functions

This section is empty.

Types

type Config

type Config struct {
	WebhookExecutionsRetentionTime   time.Duration
	DeletedRepositoriesRetentionTime time.Duration
}

func (*Config) Prepare

func (c *Config) Prepare() error

type Service

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

Service is responsible for cleaning up data in db / git / ...

func NewService

func NewService(
	config Config,
	scheduler *job.Scheduler,
	executor *job.Executor,
	webhookExecutionStore store.WebhookExecutionStore,
	tokenStore store.TokenStore,
	repoStore store.RepoStore,
	repoCtrl *repo.Controller,
) (*Service, error)

func ProvideService

func ProvideService(
	config Config,
	scheduler *job.Scheduler,
	executor *job.Executor,
	webhookExecutionStore store.WebhookExecutionStore,
	tokenStore store.TokenStore,
	repoStore store.RepoStore,
	repoCtrl *repo.Controller,
) (*Service, error)

func (*Service) Register

func (s *Service) Register(ctx context.Context) error

Jump to

Keyboard shortcuts

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