Documentation ¶
Index ¶
- Variables
- func MarshalTimestamp(t time.Time) graphql.Marshaler
- func UnmarshalTimestamp(v interface{}) (time.Time, error)
- type BasePublication
- type Citation
- type CreateContentInput
- type CreateOrderInput
- type CreatePermissionInput
- type CreatePlasmidInput
- type CreateRoleInput
- type CreateStrainInput
- type CreateUserInput
- type DeleteContent
- type DeletePermission
- type DeleteRole
- type DeleteStock
- type DeleteUser
- type Download
- type DownloadItem
- type Extension
- type FileToUpload
- type GOAnnotation
- type Gene
- type GeneGeneralInfo
- type Identity
- type ImageFile
- type LazyStock
- type LoginInput
- type Logout
- type NumberOfPublicationsWithGene
- type OrderListWithCursor
- type Organism
- type Phenotype
- type Plasmid
- type PlasmidListWithCursor
- type Publication
- type PublicationWithGene
- type StatusEnum
- type Stock
- type StockCommon
- type Strain
- type StrainListFilter
- type StrainListWithCursor
- type StrainType
- type UpdateContentInput
- type UpdateOrderInput
- type UpdatePermissionInput
- type UpdatePlasmidInput
- type UpdateRoleInput
- type UpdateStrainInput
- type UpdateUserInput
- type UserList
- type With
Constants ¶
This section is empty.
Variables ¶
View Source
var AllStatusEnum = []StatusEnum{ StatusEnumInPreparation, StatusEnumGrowing, StatusEnumCancelled, StatusEnumShipped, }
View Source
var AllStrainType = []StrainType{ StrainTypeAll, StrainTypeRegular, StrainTypeGwdi, StrainTypeBacterial, }
Functions ¶
func UnmarshalTimestamp ¶
Types ¶
type BasePublication ¶
type BasePublication interface {
IsBasePublication()
}
type CreateContentInput ¶
type CreateOrderInput ¶
type CreateOrderInput struct { Courier string `json:"courier"` CourierAccount string `json:"courier_account"` Comments *string `json:"comments,omitempty"` Payment string `json:"payment"` PurchaseOrderNum *string `json:"purchase_order_num,omitempty"` Status StatusEnum `json:"status"` Consumer string `json:"consumer"` Payer string `json:"payer"` Purchaser string `json:"purchaser"` Items []string `json:"items"` }
type CreatePermissionInput ¶
type CreatePlasmidInput ¶
type CreatePlasmidInput struct { CreatedBy string `json:"created_by"` UpdatedBy string `json:"updated_by"` 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"` Name string `json:"name"` ImageMap *string `json:"image_map,omitempty"` Sequence *string `json:"sequence,omitempty"` InStock bool `json:"in_stock"` Keywords []string `json:"keywords,omitempty"` GenbankAccession *string `json:"genbank_accession,omitempty"` }
type CreateRoleInput ¶
type CreateStrainInput ¶
type CreateStrainInput struct { CreatedBy string `json:"created_by"` UpdatedBy string `json:"updated_by"` 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"` SystematicName string `json:"systematic_name"` Label string `json:"label"` Species string `json:"species"` Plasmid *string `json:"plasmid,omitempty"` Parent *string `json:"parent,omitempty"` Names []string `json:"names,omitempty"` InStock bool `json:"in_stock"` Phenotypes []string `json:"phenotypes,omitempty"` GeneticModification *string `json:"genetic_modification,omitempty"` MutagenesisMethod *string `json:"mutagenesis_method,omitempty"` Characteristics []string `json:"characteristics,omitempty"` Genotypes []string `json:"genotypes,omitempty"` }
type CreateUserInput ¶
type CreateUserInput struct { FirstName string `json:"first_name"` LastName string `json:"last_name"` Email string `json:"email"` Organization *string `json:"organization,omitempty"` GroupName *string `json:"group_name,omitempty"` FirstAddress *string `json:"first_address,omitempty"` SecondAddress *string `json:"second_address,omitempty"` City *string `json:"city,omitempty"` State *string `json:"state,omitempty"` Zipcode *string `json:"zipcode,omitempty"` Country *string `json:"country,omitempty"` Phone *string `json:"phone,omitempty"` IsActive bool `json:"is_active"` }
type DeleteContent ¶
type DeleteContent struct {
Success bool `json:"success"`
}
type DeletePermission ¶
type DeletePermission struct {
Success bool `json:"success"`
}
type DeleteRole ¶
type DeleteRole struct {
Success bool `json:"success"`
}
type DeleteStock ¶
type DeleteStock struct {
Success bool `json:"success"`
}
type DeleteUser ¶
type DeleteUser struct {
Success bool `json:"success"`
}
type Download ¶
type Download struct { Title string `json:"title"` Items []*DownloadItem `json:"items"` }
type DownloadItem ¶
type FileToUpload ¶
The `UploadFile` type, represents the request for uploading a image file with a certain payload.
type GOAnnotation ¶
type GOAnnotation struct { ID string `json:"id"` Type string `json:"type"` Date string `json:"date"` EvidenceCode string `json:"evidence_code"` GoTerm string `json:"go_term"` Qualifier string `json:"qualifier"` Publication string `json:"publication"` With []*With `json:"with,omitempty"` Extensions []*Extension `json:"extensions,omitempty"` AssignedBy string `json:"assigned_by"` }
type GeneGeneralInfo ¶
type ImageFile ¶
type ImageFile struct {
URL string `json:"url"`
}
The `ImageFile` type, represents the response of uploading an image file.
type LazyStock ¶
type LazyStock struct { CreatedBy string UpdatedBy string Depositor string Genes, Publications []string }
LazyStock contains fields that are not directly mapped from model to graphql type. These fields gets resolved on demand only
type LoginInput ¶
type NumberOfPublicationsWithGene ¶
type NumberOfPublicationsWithGene struct { NumPubs int `json:"num_pubs"` Publications []*PublicationWithGene `json:"publications"` }
type OrderListWithCursor ¶
type Phenotype ¶
type Phenotype struct { Phenotype string `json:"phenotype"` Note *string `json:"note,omitempty"` Assay *string `json:"assay,omitempty"` Environment *string `json:"environment,omitempty"` Publication *Publication `json:"publication,omitempty"` }
type Plasmid ¶
type Plasmid struct { StockCommon LazyStock ID string `json:"id"` Summary *string `json:"summary"` EditableSummary *string `json:"editable_summary"` ImageMap *string `json:"image_map"` Sequence *string `json:"sequence"` Name string `json:"name"` GenbankAccession *string `json:"genbank_accession"` InStock bool `json:"in_stock"` CreatedAt time.Time `json:"created_at"` UpdatedAt time.Time `json:"updated_at"` Dbxrefs []*string `json:"dbxrefs"` }
type PlasmidListWithCursor ¶
type Publication ¶
type Publication struct { ID string `json:"id"` Doi *string `json:"doi,omitempty"` Title string `json:"title"` Abstract string `json:"abstract"` Journal string `json:"journal"` PubDate *time.Time `json:"pub_date,omitempty"` Volume *string `json:"volume,omitempty"` Pages *string `json:"pages,omitempty"` Issn *string `json:"issn,omitempty"` PubType string `json:"pub_type"` Source string `json:"source"` Issue *string `json:"issue,omitempty"` Status *string `json:"status,omitempty"` Authors []*publication.Author `json:"authors"` }
func (Publication) IsBasePublication ¶
func (Publication) IsBasePublication()
type PublicationWithGene ¶
type PublicationWithGene struct { RelatedGenes []*Gene `json:"related_genes"` ID string `json:"id"` Doi *string `json:"doi,omitempty"` Title string `json:"title"` Abstract string `json:"abstract"` Journal string `json:"journal"` PubDate *time.Time `json:"pub_date,omitempty"` Volume *string `json:"volume,omitempty"` Pages *string `json:"pages,omitempty"` Issn *string `json:"issn,omitempty"` PubType string `json:"pub_type"` Source string `json:"source"` Issue *string `json:"issue,omitempty"` Status *string `json:"status,omitempty"` Authors []*publication.Author `json:"authors"` }
func (PublicationWithGene) IsBasePublication ¶
func (PublicationWithGene) IsBasePublication()
type StatusEnum ¶
type StatusEnum string
const ( StatusEnumInPreparation StatusEnum = "IN_PREPARATION" StatusEnumGrowing StatusEnum = "GROWING" StatusEnumCancelled StatusEnum = "CANCELLED" StatusEnumShipped StatusEnum = "SHIPPED" )
func (StatusEnum) IsValid ¶
func (e StatusEnum) IsValid() bool
func (StatusEnum) MarshalGQL ¶
func (e StatusEnum) MarshalGQL(w io.Writer)
func (StatusEnum) String ¶
func (e StatusEnum) String() string
func (*StatusEnum) UnmarshalGQL ¶
func (e *StatusEnum) UnmarshalGQL(v interface{}) error
type StockCommon ¶
type StockCommon struct{}
func (StockCommon) IsStock ¶
func (stck StockCommon) IsStock()
type Strain ¶
type Strain struct { LazyStock StockCommon ID string `json:"id"` CreatedAt time.Time `json:"created_at"` UpdatedAt time.Time `json:"updated_at"` Summary *string `json:"summary"` EditableSummary *string `json:"editable_summary"` Dbxrefs []string `json:"dbxrefs"` SystematicName string `json:"systematic_name"` Label string `json:"label"` Species string `json:"species"` Plasmid *string `json:"plasmid"` Parent *string `json:"parent"` Names []string `json:"names"` InStock bool `json:"in_stock"` GeneticModification *string `json:"genetic_modification"` MutagenesisMethod *string `json:"mutagenesis_method"` Characteristics []string `json:"characteristics"` Genotypes []string `json:"genotypes"` }
type StrainListFilter ¶
type StrainListFilter struct { Label *string `json:"label,omitempty"` Summary *string `json:"summary,omitempty"` ID *string `json:"id,omitempty"` InStock *bool `json:"in_stock,omitempty"` StrainType StrainType `json:"strain_type"` }
type StrainListWithCursor ¶
type StrainType ¶
type StrainType string
const ( StrainTypeAll StrainType = "ALL" StrainTypeRegular StrainType = "REGULAR" StrainTypeGwdi StrainType = "GWDI" StrainTypeBacterial StrainType = "BACTERIAL" )
func (StrainType) IsValid ¶
func (e StrainType) IsValid() bool
func (StrainType) MarshalGQL ¶
func (e StrainType) MarshalGQL(w io.Writer)
func (StrainType) String ¶
func (e StrainType) String() string
func (*StrainType) UnmarshalGQL ¶
func (e *StrainType) UnmarshalGQL(v interface{}) error
type UpdateContentInput ¶
type UpdateOrderInput ¶
type UpdateOrderInput struct { Courier *string `json:"courier,omitempty"` CourierAccount *string `json:"courier_account,omitempty"` Comments *string `json:"comments,omitempty"` Payment *string `json:"payment,omitempty"` PurchaseOrderNum *string `json:"purchase_order_num,omitempty"` Status *StatusEnum `json:"status,omitempty"` Items []string `json:"items,omitempty"` }
type UpdatePermissionInput ¶
type UpdatePlasmidInput ¶
type UpdatePlasmidInput struct { UpdatedBy string `json:"updated_by"` 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"` Name *string `json:"name,omitempty"` ImageMap *string `json:"image_map,omitempty"` Sequence *string `json:"sequence,omitempty"` InStock *bool `json:"in_stock,omitempty"` Keywords []string `json:"keywords,omitempty"` GenbankAccession *string `json:"genbank_accession,omitempty"` }
type UpdateRoleInput ¶
type UpdateStrainInput ¶
type UpdateStrainInput struct { UpdatedBy string `json:"updated_by"` 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"` SystematicName *string `json:"systematic_name,omitempty"` Label *string `json:"label,omitempty"` Species *string `json:"species,omitempty"` Plasmid *string `json:"plasmid,omitempty"` Parent *string `json:"parent,omitempty"` Names []string `json:"names,omitempty"` InStock *bool `json:"in_stock,omitempty"` Phenotypes []string `json:"phenotypes,omitempty"` GeneticModification *string `json:"genetic_modification,omitempty"` MutagenesisMethod *string `json:"mutagenesis_method,omitempty"` Characteristics []string `json:"characteristics,omitempty"` Genotypes []string `json:"genotypes,omitempty"` }
type UpdateUserInput ¶
type UpdateUserInput struct { FirstName *string `json:"first_name,omitempty"` LastName *string `json:"last_name,omitempty"` Organization *string `json:"organization,omitempty"` GroupName *string `json:"group_name,omitempty"` FirstAddress *string `json:"first_address,omitempty"` SecondAddress *string `json:"second_address,omitempty"` City *string `json:"city,omitempty"` State *string `json:"state,omitempty"` Zipcode *string `json:"zipcode,omitempty"` Country *string `json:"country,omitempty"` Phone *string `json:"phone,omitempty"` IsActive *bool `json:"is_active,omitempty"` }
Click to show internal directories.
Click to hide internal directories.