blob

package
v0.10.6 Latest Latest
Warning

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

Go to latest
Published: Jan 15, 2025 License: Apache-2.0 Imports: 14 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Cron

type Cron interface {
	AddFunc(spec string, cmd func()) error
	Start()
	Stop()
}

Cron defines the behaviour required of a cron

type MockBlob

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

func NewMockBlob

func NewMockBlob(scheme string, getSync func() *Sync) *MockBlob

func (*MockBlob) AddObject

func (mb *MockBlob) AddObject(object, content string)

func (*MockBlob) URLMux

func (mb *MockBlob) URLMux() *blob.URLMux

type Sync

type Sync struct {
	Bucket     string
	Object     string
	BlobURLMux *blob.URLMux
	Cron       Cron
	Logger     *logger.Logger
	Interval   uint32
	// contains filtered or unexported fields
}

func (*Sync) Init

func (hs *Sync) Init(_ context.Context) error

func (*Sync) IsReady

func (hs *Sync) IsReady() bool

func (*Sync) ReSync

func (hs *Sync) ReSync(ctx context.Context, dataSync chan<- sync.DataSync) error

func (*Sync) Sync

func (hs *Sync) Sync(ctx context.Context, dataSync chan<- sync.DataSync) error

Jump to

Keyboard shortcuts

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