workflowcache

package
v1.2.9 Latest Latest
Warning

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

Go to latest
Published: Apr 12, 2024 License: MIT Imports: 10 Imported by: 0

Documentation

Overview

Package workflowcache is a generated GoMock package.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type MockWFCache added in v1.2.8

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

MockWFCache is a mock of WFCache interface.

func NewMockWFCache added in v1.2.8

func NewMockWFCache(ctrl *gomock.Controller) *MockWFCache

NewMockWFCache creates a new mock instance.

func (*MockWFCache) AllowExternal added in v1.2.8

func (m *MockWFCache) AllowExternal(arg0, arg1 string) bool

AllowExternal mocks base method.

func (*MockWFCache) AllowInternal added in v1.2.8

func (m *MockWFCache) AllowInternal(arg0, arg1 string) bool

AllowInternal mocks base method.

func (*MockWFCache) EXPECT added in v1.2.8

func (m *MockWFCache) EXPECT() *MockWFCacheMockRecorder

EXPECT returns an object that allows the caller to indicate expected use.

type MockWFCacheMockRecorder added in v1.2.8

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

MockWFCacheMockRecorder is the mock recorder for MockWFCache.

func (*MockWFCacheMockRecorder) AllowExternal added in v1.2.8

func (mr *MockWFCacheMockRecorder) AllowExternal(arg0, arg1 interface{}) *gomock.Call

AllowExternal indicates an expected call of AllowExternal.

func (*MockWFCacheMockRecorder) AllowInternal added in v1.2.8

func (mr *MockWFCacheMockRecorder) AllowInternal(arg0, arg1 interface{}) *gomock.Call

AllowInternal indicates an expected call of AllowInternal.

type Params

type Params struct {
	TTL                            time.Duration
	MaxCount                       int
	ExternalLimiterFactory         quotas.LimiterFactory
	InternalLimiterFactory         quotas.LimiterFactory
	WorkflowIDCacheExternalEnabled dynamicconfig.BoolPropertyFnWithDomainFilter
	WorkflowIDCacheInternalEnabled 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