session

package
v0.0.62 Latest Latest
Warning

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

Go to latest
Published: Feb 17, 2024 License: Apache-2.0 Imports: 13 Imported by: 0

Documentation

Index

Constants

View Source
const (
	DefaultSession = 30 * time.Minute
	// To make sure we always have fresh data for current visitors
	DefaultFlushInterval = time.Minute
)

Variables

This section is empty.

Functions

func With

func With(ctx context.Context, s *Session) context.Context

Types

type Session

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

func Get

func Get(ctx context.Context) *Session

func New

func New(mem memory.Allocator, resource string, storage db.Storage,
	indexer index.Index,
	primary index.Primary, opts ...lsm.Option) *Session

func (*Session) Close added in v0.0.61

func (s *Session) Close()

func (*Session) Flush

func (s *Session) Flush()

func (*Session) Queue

func (s *Session) Queue(ctx context.Context, req *v1.Event)

func (*Session) Scan

func (s *Session) Scan(ctx context.Context, start, end int64, fs *v1.Filters) (arrow.Record, error)

func (*Session) Start

func (s *Session) Start(ctx context.Context)

Jump to

Keyboard shortcuts

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