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 ¶
Source Files
¶
Click to show internal directories.
Click to hide internal directories.