repository

package
v0.0.0-...-2ac8dd6 Latest Latest
Warning

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

Go to latest
Published: Jan 7, 2026 License: GPL-3.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var ErrHTTPLoadNotFound = errors.New("Http load profile not found")
View Source
var ErrJWTRefreshNotFound = errors.New("jwt refresh token not found")
View Source
var ErrLoadJobNotFound = errors.New("Load job not found")
View Source
var ErrUserNotFound = errors.New("user not found")

Functions

This section is empty.

Types

type HttpLoadRepository

type HttpLoadRepository interface {
	GetFixedById(ctx context.Context, id string) (*model.FixedHttpLoad, error)
	CreateFixed(ctx context.Context, httpLoad *model.FixedHttpLoad) (*model.FixedHttpLoad, error)
	DeleteFixed(ctx context.Context, id string) error

	GetConstantById(ctx context.Context, id string) (*model.ConstantHttpLoad, error)
	CreateConstant(ctx context.Context, httpLoad *model.ConstantHttpLoad) (*model.ConstantHttpLoad, error)
	DeleteConstant(ctx context.Context, id string) error

	GetRampUpById(ctx context.Context, id string) (*model.RampUpHttpLoad, error)
	CreateRampUp(ctx context.Context, httpLoad *model.RampUpHttpLoad) (*model.RampUpHttpLoad, error)
	DeleteRampUp(ctx context.Context, id string) error
}

type JWTRefreshRepository

type JWTRefreshRepository interface {
	GetByJWTHash(ctx context.Context, hash string) (*model.JWTRefreshToken, error)
	Create(ctx context.Context, jwt *model.JWTRefreshToken) (*model.JWTRefreshToken, error)
	Delete(ctx context.Context, jwtHash string) error
	Get(ctx context.Context, hash string) (string, error) // userID
	Save(ctx context.Context, userID string, hash string, expiresAt time.Time) error
}

type LoadRepository

type LoadRepository interface {
	GetById(ctx context.Context, id string) (*model.LoadJob, error)
	Create(ctx context.Context, loadJob *model.LoadJob) (*model.LoadJob, error)
	Delete(ctx context.Context, id string) error
}

type UserRepository

type UserRepository interface {
	GetByUID(ctx context.Context, uid string) (*model.User, error)
	GetByComment(ctx context.Context, comment string) (*model.User, error)
	Create(ctx context.Context, user *model.User) (*model.User, error)
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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