repo

package
v1.0.1 Latest Latest
Warning

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

Go to latest
Published: Mar 12, 2025 License: MIT Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CreateInitialUser

func CreateInitialUser(cfg *config.LancerConfig, query *db.Queries)

func CreateOrGetInitialMetrics

func CreateOrGetInitialMetrics(cfg *config.LancerConfig, query *db.Queries)

Types

type Repo

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

func NewRepo

func NewRepo(db *db.Queries, redisCache *cache.Cache, config *config.LancerConfig) *Repo

func (*Repo) CreateSession

func (r *Repo) CreateSession(session *types.SessionInfo) (*types.SessionInfo, error)

func (*Repo) DeleteSession

func (r *Repo) DeleteSession(id string) error

func (*Repo) GetSessionById

func (r *Repo) GetSessionById(id string) (*types.SessionInfo, error)

func (*Repo) GetSessions

func (r *Repo) GetSessions(params *db.PaginateSessionsParams) []*types.SessionInfo

func (*Repo) UpdateSessionById

func (r *Repo) UpdateSessionById(id string, session *types.SessionInfo) error

type SessionCreateAck

type SessionCreateAck struct {
	ID       string
	TempPath string
}

Jump to

Keyboard shortcuts

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