submission

package
v1.49.21 Latest Latest
Warning

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

Go to latest
Published: Jul 26, 2026 License: MIT Imports: 8 Imported by: 0 modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Query

Query returns a datastore query for submissions.

Types

type Submission

type Submission struct {
	mixin.Model[Submission]

	Email  string `json:"email"`
	UserId string `json:"userId,omitempty"`

	Client client.Client `json:"client"`

	Metadata  Map    `json:"metadata" datastore:"-" orm:"default:{}"`
	Metadata_ string `json:"-" datastore:",noindex"`
}

func Fake

func Fake(db *datastore.Datastore, userId string) *Submission

func FromJSON

func FromJSON(db *datastore.Datastore, data []byte) *Submission

func New

func New(db *datastore.Datastore) *Submission

New creates a new Submission wired to the given datastore.

func (*Submission) Load

func (s *Submission) Load(ps []datastore.Property) (err error)

func (*Submission) Save

func (s *Submission) Save() (ps []datastore.Property, err error)

func (*Submission) Validator

func (s *Submission) Validator() *val.Validator

Jump to

Keyboard shortcuts

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