db

package
v0.0.0-...-b3a71a0 Latest Latest
Warning

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

Go to latest
Published: Apr 12, 2024 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type DB

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

func NewDB

func NewDB(db_ *sql.DB) *DB

func (*DB) Close

func (db *DB) Close()

func (*DB) EndSession

func (d *DB) EndSession(ctx context.Context, sessionId int64, endTimeEpochS int64) (*raza.Session, error)

func (*DB) EndSessionsLastCommand

func (d *DB) EndSessionsLastCommand(ctx context.Context, sessionId int64, retVal int32, endTimeEpochS int64) (*raza.Command, error)

func (*DB) GetCommand

func (d *DB) GetCommand(ctx context.Context, commandId int64) (*raza.Command, error)

func (*DB) GetSession

func (d *DB) GetSession(ctx context.Context, sessionId int64) (*raza.Session, error)

func (*DB) ListCommands

func (d *DB) ListCommands() (*commandIterator, error)

func (*DB) ListSessions

func (d *DB) ListSessions() (*sessionIterator, error)

func (*DB) StartCommand

func (d *DB) StartCommand(ctx context.Context, command *raza.Command) (commandId int64, err error)

func (*DB) StartSession

func (d *DB) StartSession(ctx context.Context, session *raza.Session) (sessionId int64, err error)

Jump to

Keyboard shortcuts

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