submission

package
v0.0.0-...-89805ac Latest Latest
Warning

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

Go to latest
Published: Jan 5, 2023 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// Namespace is the namespace to be used for storing submissions.
	Namespace = "presentation_submission"
	// ParentResource is the prefix of the submission parent resource.
	ParentResource = "presentations/submissions"
)

Variables

This section is empty.

Functions

func IDFromSubmissionID

func IDFromSubmissionID(id string) string

IDFromSubmissionID returns a submission operation ID from the submission ID.

Types

type OperationUpdater

type OperationUpdater struct {
	storage.UpdaterWithMap
}

OperationUpdater is an implementation of the storage.ResponseSettingUpdater. It's provides a way to update the operation and submission within a single transaction.

func (OperationUpdater) SetUpdatedResponse

func (u OperationUpdater) SetUpdatedResponse(response []byte)

func (OperationUpdater) Validate

func (u OperationUpdater) Validate(v []byte) error

type Status

type Status uint8

Status indicates the current state of a submission.

const (
	StatusUnknown Status = iota
	StatusPending
	StatusCancelled
	StatusDenied
	StatusApproved
)

func (Status) String

func (s Status) String() string

Jump to

Keyboard shortcuts

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