async

package
v0.12.2 Latest Latest
Warning

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

Go to latest
Published: Jan 22, 2025 License: Apache-2.0 Imports: 12 Imported by: 0 modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Config

type Config struct {
	Jobs
	State
	WithCache            bool
	ExpiryTimeInSec      int
	ErrorExpiryTimeInSec int
	async.Notification
	// contains filtered or unexported fields
}

func (*Config) CreateJob

func (c *Config) CreateJob(ctx context.Context, job *async.Job, notification *async.Notification) error

func (*Config) DestinationURL

func (n *Config) DestinationURL(job *async.Job) string

func (*Config) ErrorTTL

func (c *Config) ErrorTTL() time.Duration

func (*Config) Init

func (c *Config) Init(ctx context.Context, resource *view.Resource, mainView *view.View) error

func (*Config) JobByID

func (c *Config) JobByID(ctx context.Context, jobID string) (*async.Job, error)

func (*Config) JobByMatchKey

func (c *Config) JobByMatchKey(ctx context.Context, jobRef string) (*async.Job, error)

func (*Config) Lock

func (c *Config) Lock()

func (*Config) TTL

func (c *Config) TTL() time.Duration

func (*Config) Unlock

func (c *Config) Unlock()

func (*Config) UpdateJob

func (c *Config) UpdateJob(ctx context.Context, job *async.Job) error

type Jobs

type Jobs struct {
	Connector *view.Connector
	Dataset   string
	// contains filtered or unexported fields
}

type State

type State struct {
	UserID      *state.Parameter
	UserEmail   *state.Parameter
	JobMatchKey *state.Parameter
}

State defines location for the followings

func (*State) Init

func (s *State) Init(ctx context.Context, res *view.Resource, mainView *view.View) error

Jump to

Keyboard shortcuts

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