shared

package
v0.0.0-...-943fa91 Latest Latest
Warning

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

Go to latest
Published: Oct 2, 2024 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var NeverExpire time.Duration = 0

Functions

This section is empty.

Types

type Cache

type Cache interface {
	Do(key string, resolve ResolveFn, expiresIn time.Duration) (interface{}, error)
}

type Event

type Event struct {
	Type       string
	OccurredOn time.Time
	Payload    map[string]interface{}
}

type IDGenerator

type IDGenerator interface {
	Generate() string
}

type Publisher

type Publisher interface {
	Publish(event Event) error
}

type ResolveFn

type ResolveFn func() (interface{}, error)

type TransactionManager

type TransactionManager interface {
	Transaction(ctx context.Context, callback func(ctx context.Context) error) error
}

Jump to

Keyboard shortcuts

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