model

package
v1.7.0 Latest Latest
Warning

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

Go to latest
Published: Nov 19, 2026 License: BSD-2-Clause Imports: 2 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

Overview

Package model defines data structures for biological stock management in the database layer.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type PlasmidProperties

type PlasmidProperties struct {
	ImageMap             string `json:"image_map,omitempty" validate:"omitempty,url"`
	Sequence             string `json:"sequence,omitempty" validate:"omitempty,min=1"`
	Name                 string `json:"name" validate:"required,min=1,max=200"`
	DictyPlasmidProperty string `json:"dicty_plasmid_property" validate:"required"`
}

PlasmidProperties is the data structure for plasmid properties

type StockDoc

type StockDoc struct {
	driver.DocumentMeta
	CreatedAt         time.Time          `json:"created_at"`
	UpdatedAt         time.Time          `json:"updated_at"`
	CreatedBy         string             `json:"created_by"`
	UpdatedBy         string             `json:"updated_by"`
	StockID           string             `json:"stock_id"`
	Summary           string             `json:"summary,omitempty"`
	EditableSummary   string             `json:"editable_summary,omitempty"`
	Depositor         string             `json:"depositor,omitempty"`
	Genes             []string           `json:"genes,omitempty"`
	Dbxrefs           []string           `json:"dbxrefs,omitempty"`
	Publications      []string           `json:"publications,omitempty"`
	StrainProperties  *StrainProperties  `json:"strain_properties,omitempty"`
	PlasmidProperties *PlasmidProperties `json:"plasmid_properties,omitempty"`
	NotFound          bool
}

StockDoc is the data structure for biological stocks

type StrainProperties

type StrainProperties struct {
	DictyStrainProperty string   `json:"dicty_strain_property"`
	Label               string   `json:"label"`
	Species             string   `json:"species"`
	Plasmid             string   `json:"plasmid,omitempty"`
	Parent              string   `json:"parent,omitempty"`
	Names               []string `json:"names,omitempty"`
}

StrainProperties is the data structure for strain properties

type UploadStatus

type UploadStatus int

UploadStatus represents the status of an upload operation.

const (
	Created UploadStatus = iota // Created indicates a new record was created
	Updated                     // Updated indicates an existing record was updated
	Failed                      // Failed indicates the upload operation failed
)

Upload status constants

Jump to

Keyboard shortcuts

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