submission

package
v1.36.3 Latest Latest
Warning

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

Go to latest
Published: Mar 2, 2026 License: MIT Imports: 8 Imported by: 0

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