form

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Nov 15, 2024 License: Apache-2.0 Imports: 14 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	ErrFormNotFoundByID = errors.New("form was not found by id in the database")
)
View Source
var (
	ErrSavingForm = errors.New("error while saving form")
)

Functions

This section is empty.

Types

type Repository

type Repository interface {
	ExistsByNameAndTeacherUsername(ctx context.Context, formName, teacherUsername string) (bool, error)
	Save(ctx context.Context, form *domain.Form) error
	FindByID(ctx context.Context, formID uuid.UUID) (*domain.Form, error)
	FindByTeacherUsername(ctx context.Context, teacherUsername string) ([]*domain.Form, error)
}

func New

func New(db *gorm.DB, cfg *config.Config, log *slog.Logger) Repository

Jump to

Keyboard shortcuts

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