provider

package
v1.0.1 Latest Latest
Warning

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

Go to latest
Published: Mar 7, 2023 License: MIT Imports: 15 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewFileProvider

func NewFileProvider(logger logger.Logger, urlstring string, opts *ProviderOpts) (internal.Provider, error)

NewFileProvider returns a provider that will stream files to a folder provided in the url

func NewGormProvider

func NewGormProvider(logger logger.Logger, url string, opts *ProviderOpts) (internal.Provider, error)

func NewProviderForURL

func NewProviderForURL(logger logger.Logger, url string, opts *ProviderOpts) (internal.Provider, error)

NewProviderForURL will return a new internal.Provider for the driver based on the url

Types

type FileProvider

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

func (*FileProvider) Migrate

func (p *FileProvider) Migrate() error

Migrate will tell the provider to do any migration work and return an error or nil if ok

func (*FileProvider) Process

Process data received and return an error or nil if processed ok

func (*FileProvider) Start

func (p *FileProvider) Start() error

Start the provider and return an error or nil if ok

func (*FileProvider) Stop

func (p *FileProvider) Stop() error

Stop the provider and return an error or nil if ok

type GormProvider

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

func (*GormProvider) Migrate

func (p *GormProvider) Migrate() error

Migrate will tell the provider to do any migration work and return an error or nil if ok

func (*GormProvider) Process

Process data received and return an error or nil if processed ok

func (*GormProvider) Start

func (p *GormProvider) Start() error

Start the provider and return an error or nil if ok

func (*GormProvider) Stop

func (p *GormProvider) Stop() error

Stop the provider and return an error or nil if ok

type ProviderOpts

type ProviderOpts struct {
	DryRun bool
}

Jump to

Keyboard shortcuts

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