loader

package
v0.1.1 Latest Latest
Warning

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

Go to latest
Published: Oct 8, 2024 License: Apache-2.0 Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type FunctionLoader

type FunctionLoader struct {
	LoadFn func(ctx context.Context, data interface{}, batchID string, options ...Option) error
}

func (*FunctionLoader) Load

func (m *FunctionLoader) Load(ctx context.Context, data interface{}, batchID string, options ...Option) error

type Loader

type Loader interface {
	Load(ctx context.Context, data interface{}, batchID string, options ...Option) error
}

type Option

type Option func(o *Options)

func WithInstanceId

func WithInstanceId(instanceId string) Option

type Options

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

func NewOptions

func NewOptions(options ...Option) *Options

func (*Options) Apply

func (o *Options) Apply(opts ...Option)

func (*Options) GetInstanceId

func (o *Options) GetInstanceId() string

Jump to

Keyboard shortcuts

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