async

package
v0.394.1 Latest Latest
Warning

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

Go to latest
Published: Nov 6, 2024 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AsyncOrigin

type AsyncOrigin interface {

	// Origin returns the origin type.
	Origin() string
	String() string
	// contains filtered or unexported methods
}

AsyncOrigin is a sum type representing the originator of an async call.

This is used to determine how to handle the result of the async call.

func ParseAsyncOrigin

func ParseAsyncOrigin(origin string) (AsyncOrigin, error)

ParseAsyncOrigin parses an async origin key.

type AsyncOriginCron

type AsyncOriginCron struct {
	CronJobKey model.CronJobKey `parser:"'cron' ':' @(~EOF)+"`
}

AsyncOriginCron represents the context for the originator of a cron async call.

It is in the form cron:<module>.<verb>

func (AsyncOriginCron) Origin

func (a AsyncOriginCron) Origin() string

func (AsyncOriginCron) String

func (a AsyncOriginCron) String() string

type AsyncOriginPubSub

type AsyncOriginPubSub struct {
	Subscription schema.RefKey `parser:"'sub' ':' @@"`
}

AsyncOriginPubSub represents the context for the originator of an PubSub async call.

It is in the form sub:<module>.<subscription_name>

func (AsyncOriginPubSub) Origin

func (a AsyncOriginPubSub) Origin() string

func (AsyncOriginPubSub) String

func (a AsyncOriginPubSub) String() string

Jump to

Keyboard shortcuts

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