workflowcache

package
v1.2.7-prerelease4 Latest Latest
Warning

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

Go to latest
Published: Jan 30, 2024 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Params

type Params struct {
	TTL                    time.Duration
	MaxCount               int
	ExternalLimiterFactory quotas.LimiterFactory
	InternalLimiterFactory quotas.LimiterFactory
	WorkflowIDCacheEnabled dynamicconfig.BoolPropertyFnWithDomainFilter
	DomainCache            cache.DomainCache
	MetricsClient          metrics.Client
	Logger                 log.Logger
}

Params is the parameters for a new WFCache

type WFCache

type WFCache interface {
	AllowExternal(domainID string, workflowID string) bool
	AllowInternal(domainID string, workflowID string) bool
}

WFCache is a per workflow cache used for workflow specific in memory data

func New

func New(params Params) WFCache

New creates a new WFCache

Jump to

Keyboard shortcuts

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