sessions

package
v0.0.0-...-145960c Latest Latest
Warning

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

Go to latest
Published: Oct 16, 2021 License: Apache-2.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ProgressValues

type ProgressValues struct {
	Cost            sync2.AtomicDuration
	ReadRows        sync2.AtomicInt64
	ReadBytes       sync2.AtomicInt64
	TotalRowsToRead sync2.AtomicInt64
	WrittenRows     sync2.AtomicInt64
	WrittenBytes    sync2.AtomicInt64
}

type Session

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

func NewSession

func NewSession() *Session

func (*Session) Close

func (s *Session) Close()

func (*Session) GetDatabase

func (s *Session) GetDatabase() string

func (*Session) GetProgress

func (s *Session) GetProgress() *ProgressValues

func (*Session) SetDatabase

func (s *Session) SetDatabase(db string)

func (*Session) UpdateProgress

func (s *Session) UpdateProgress(pv *ProgressValues)

Jump to

Keyboard shortcuts

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