visibility

package
v0.0.0-...-f1791d0 Latest Latest
Warning

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

Go to latest
Published: Nov 18, 2024 License: MIT Imports: 26 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Converter

type Converter interface {
	PluginQueryConverter
	BuildCountStmt() (*sqlplugin.VisibilitySelectFilter, error)
	BuildSelectStmt(
		pageSize int,
		nextPageToken []byte,
	) (*sqlplugin.VisibilitySelectFilter, error)
}

Converter TODO refactor — simplify design and decouple everything etc

type PluginQueryConverter

type PluginQueryConverter interface {
	// contains filtered or unexported methods
}

type QueryConverter

type QueryConverter struct {
	PluginQueryConverter
	// contains filtered or unexported fields
}

func (*QueryConverter) BuildCountStmt

func (c *QueryConverter) BuildCountStmt() (*sqlplugin.VisibilitySelectFilter, error)

func (*QueryConverter) BuildSelectStmt

func (c *QueryConverter) BuildSelectStmt(
	pageSize int,
	nextPageToken []byte,
) (*sqlplugin.VisibilitySelectFilter, error)

type QueryConverterFactory

type QueryConverterFactory interface {
	NewQueryConverter(
		pluginName string,
		namespaceName namespace.Name,
		namespaceID namespace.ID,
		saTypeMap searchattribute.NameTypeMap,
		saMapper searchattribute.Mapper,
		queryString string,
	) Converter
}

func NewParadeDbConverterFactory

func NewParadeDbConverterFactory() QueryConverterFactory

type SqlCustomVisibilityStore

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

func (SqlCustomVisibilityStore) NewVisibilityStore

type VisibilityStore

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

func NewSQLVisibilityStore

func NewSQLVisibilityStore(
	cfg config.SQL,
	r resolver.ServiceResolver,
	searchAttributesProvider searchattribute.Provider,
	searchAttributesMapperProvider searchattribute.MapperProvider,
	logger log.Logger,
	metricsHandler metrics.Handler,
	queryConverter QueryConverterFactory,
) (*VisibilityStore, error)

NewSQLVisibilityStore creates an instance of VisibilityStore

func (*VisibilityStore) Close

func (s *VisibilityStore) Close()

func (*VisibilityStore) CountWorkflowExecutions

func (*VisibilityStore) DeleteWorkflowExecution

func (s *VisibilityStore) DeleteWorkflowExecution(
	ctx context.Context,
	request *manager.VisibilityDeleteWorkflowExecutionRequest,
) error

func (*VisibilityStore) GetIndexName

func (s *VisibilityStore) GetIndexName() string

func (*VisibilityStore) GetName

func (s *VisibilityStore) GetName() string

func (*VisibilityStore) GetWorkflowExecution

func (*VisibilityStore) RecordWorkflowExecutionClosed

func (s *VisibilityStore) RecordWorkflowExecutionClosed(
	ctx context.Context,
	request *store.InternalRecordWorkflowExecutionClosedRequest,
) error

func (*VisibilityStore) RecordWorkflowExecutionStarted

func (s *VisibilityStore) RecordWorkflowExecutionStarted(
	ctx context.Context,
	request *store.InternalRecordWorkflowExecutionStartedRequest,
) error

func (*VisibilityStore) UpsertWorkflowExecution

func (s *VisibilityStore) UpsertWorkflowExecution(
	ctx context.Context,
	request *store.InternalUpsertWorkflowExecutionRequest,
) error

func (*VisibilityStore) ValidateCustomSearchAttributes

func (s *VisibilityStore) ValidateCustomSearchAttributes(
	searchAttributes map[string]any,
) (map[string]any, error)

Jump to

Keyboard shortcuts

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