util

package
v0.31.0 Latest Latest
Warning

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

Go to latest
Published: Feb 20, 2025 License: MIT Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	ErrMissingEventSelector     = errors.New("missing event selector")
	ErrInvalidEventSelector     = errors.New("invalid event selector")
	ErrMissingStartSelector     = errors.New("missing start selector")
	ErrInvalidStartSelector     = errors.New("invalid start selector")
	ErrUnsupportedStartSelector = errors.New("unsupported start selector")
)
View Source
var ErrTenantSelectorRequired = errors.New("tenant selector is required")

Functions

func NewAppContextInterceptor added in v0.30.0

func NewAppContextInterceptor(config *config.Config) connect.Interceptor

func ResolveEvent

func ResolveEvent(
	ctx context.Context,
	conn repository.Querier,
	sel *commonv1.EventSelector,
) (*eventv1.Event, error)

returns the event for the given selector if the event is not found, a connect error with code NotFound is returned

func ResolveTenant added in v0.30.0

func ResolveTenant(
	ctx context.Context,
	conn repository.Querier,
	sel *commonv1.TenantSelector,
) (*model.Tenant, error)

returns the tenant for the given selector if tenants are supported if tenants are supported a selector must be provided

Types

This section is empty.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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