Documentation ¶
Index ¶
- Variables
- type App
- func (a *App) CreateNewForm(ctx context.Context, params form.CreateFormParams) (form.Form, []form.Question, error)
- func (a *App) GetForm(ctx context.Context, id uuid.UUID) (form.Form, error)
- func (a *App) GetQuestions(ctx context.Context, params form.GetQuestionsParams) ([]form.Question, error)
- func (a *App) ListForms(ctx context.Context, params form.ListFormsParams) ([]form.Form, error)
- func (a *App) SubmitResponse(ctx context.Context, formId uuid.UUID, resp map[string][]string) error
- func (a *App) TemplateForm(ctx context.Context, id uuid.UUID) ([]byte, error)
- func (a *App) UpdateForm(ctx context.Context, params form.UpdateFormParams) (form.Form, []form.Question, error)
- type TestDB
Constants ¶
This section is empty.
Variables ¶
View Source
var (
ErrFormNotFound = errors.New("form not found")
)
Functions ¶
This section is empty.
Types ¶
type App ¶
type App struct {
// contains filtered or unexported fields
}
func (*App) CreateNewForm ¶
func (*App) GetQuestions ¶
func (*App) SubmitResponse ¶
func (*App) TemplateForm ¶
type TestDB ¶
func SetupTestPostgresql ¶
Click to show internal directories.
Click to hide internal directories.