Documentation ¶
Index ¶
Constants ¶
View Source
const ConcurrentStrainLoader = 10
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type StrainLoader ¶
type StrainLoader struct { Workspace string Host string Token string TableId int Logger *logrus.Entry OntologyTableMap map[string]int TableManager *database.TableManager Payload *StrainPayload Annotation *strain.StrainAnnotation WorkspaceManager *database.WorkspaceManager }
func NewStrainLoader ¶
func NewStrainLoader( host, token, wspace string, tableId int, logger *logrus.Entry, tblMap map[string]int, manager *database.TableManager, wmanager *database.WorkspaceManager, ) *StrainLoader
func (*StrainLoader) Load ¶
func (loader *StrainLoader) Load(reader *strain.StrainAnnotationReader) error
type StrainPayload ¶
type StrainPayload struct { Descriptor string `json:"strain_descriptor"` Species string `json:"species"` Reference string `json:"reference"` Summary string `json:"strain_summary,omitempty"` GeneticModificationId []int `json:"genetic_modification_id,omitempty"` StrainCharacteristicsId []int `json:"strain_characteristics_id"` MutagenesisMethodId []int `json:"mutagenesis_method_id,omitempty"` AssignedBy []common.AssignedBy `json:"assigned_by,omitempty"` Names string `json:"strain_names,omitempty"` SystematicName string `json:"systematic_name,omitempty"` Plasmid string `json:"plasmid,omitempty"` ParentId string `json:"parent_strain_id,omitempty"` Genes string `json:"associated_genes,omitempty"` Genotype string `json:"genotype,omitempty"` Depositor string `json:"depositor,omitempty"` CreatedOn time.Time `json:"created_on"` }
Click to show internal directories.
Click to hide internal directories.