Documentation
¶
Overview ¶
Package flowstats records bounded, pseudonymous user-flow transitions and explicit scenario journeys directly at the application middleware boundary. It is independent of the selected reverse proxy.
Index ¶
- Constants
- Variables
- type Frozen
- type GenerationCollector
- func (c *GenerationCollector) BeginBoundary(ctx context.Context, runID string, epoch runctl.Epoch) (runctl.BoundaryResult, error)
- func (c *GenerationCollector) Collect(handle runctl.GenerationHandle) (any, error)
- func (c *GenerationCollector) Drain(ctx context.Context, handle runctl.GenerationHandle) error
- func (c *GenerationCollector) Freeze(ctx context.Context, runID string, epoch runctl.Epoch) (runctl.BoundaryResult, error)
- func (c *GenerationCollector) Name() string
- func (c *GenerationCollector) Release(handle runctl.GenerationHandle)
- type Registry
- type Snapshot
Constants ¶
View Source
const SectionName = "flow"
Variables ¶
View Source
var ( ErrForeignHandle = errors.New("flowstats: foreign generation handle") ErrNotDrained = errors.New("flowstats: generation was not drained") ErrHandleReleased = errors.New("flowstats: generation handle was released") )
View Source
var Default = NewRegistry()
Functions ¶
This section is empty.
Types ¶
type GenerationCollector ¶
type GenerationCollector struct {
// contains filtered or unexported fields
}
func NewGenerationCollector ¶
func NewGenerationCollector(registry *Registry) *GenerationCollector
func (*GenerationCollector) BeginBoundary ¶
func (c *GenerationCollector) BeginBoundary(ctx context.Context, runID string, epoch runctl.Epoch) (runctl.BoundaryResult, error)
func (*GenerationCollector) Collect ¶
func (c *GenerationCollector) Collect(handle runctl.GenerationHandle) (any, error)
func (*GenerationCollector) Drain ¶
func (c *GenerationCollector) Drain(ctx context.Context, handle runctl.GenerationHandle) error
func (*GenerationCollector) Freeze ¶
func (c *GenerationCollector) Freeze(ctx context.Context, runID string, epoch runctl.Epoch) (runctl.BoundaryResult, error)
func (*GenerationCollector) Name ¶
func (c *GenerationCollector) Name() string
func (*GenerationCollector) Release ¶
func (c *GenerationCollector) Release(handle runctl.GenerationHandle)
type Registry ¶
type Registry struct {
// contains filtered or unexported fields
}
func NewRegistry ¶
func NewRegistry() *Registry
Click to show internal directories.
Click to hide internal directories.