Documentation ¶
Index ¶
- type FileContent
- type FileFormat
- type FileUploadMetadata
- type FileUploadRequest
- type Kegg
- type OrgPathway
- type Organism
- func (p Organism) Create(organisms ...Kegg) error
- func (p Organism) Default() ([]Organism, error)
- func (p Organism) File() string
- func (p Organism) Finalize() error
- func (p Organism) FromRecord(record []string) (*Kegg, error)
- func (p Organism) Initialize() error
- func (p *Organism) MarshalJSON() ([]byte, error)
- func (p Organism) Search(query string) ([]Organism, error)
- type OrganismID
- type Pathway
- func (p Pathway) Create(pathways ...Kegg) error
- func (p Pathway) Default(organism int) ([]Pathway, error)
- func (p Pathway) File() string
- func (p Pathway) Finalize() error
- func (p Pathway) FromRecord(record []string) (*Kegg, error)
- func (p Pathway) Initialize() error
- func (p Pathway) Search(query string, organism int) ([]Pathway, error)
- type PathwayID
- type User
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type FileContent ¶
type FileContent uint8
const ( FileContentGene FileContent = iota FileContentCompound )
func (FileContent) String ¶
func (p FileContent) String() string
func (*FileContent) UnmarshalJSON ¶
func (p *FileContent) UnmarshalJSON(data []byte) error
type FileFormat ¶
type FileFormat uint8
const ( FileFormatCSV FileFormat = iota FileFormatTSV )
func (FileFormat) String ¶
func (p FileFormat) String() string
func (*FileFormat) UnmarshalJSON ¶
func (p *FileFormat) UnmarshalJSON(data []byte) error
type FileUploadMetadata ¶
type FileUploadMetadata struct { ID uuid.UUID `db:"id" json:"id"` Name string `db:"name" json:"name"` // Format FileFormat `db:"file_format" json:"format" sql:"type:file_format"` // Content FileContent `db:"file_content" json:"content" sql:"type:file_content"` Format string `db:"file_format" json:"format" sql:"type:file_format"` Content string `db:"file_content" json:"content" sql:"type:file_content"` Organism string `db:"organism" json:"organism"` Owner User `db:"owner" json:"owner"` Size int64 `db:"size" json:"size"` Checksum []byte `db:"checksum" json:"checksum"` CreatedAt time.Time `db:"created_at" json:"created_at"` UpdatedAt time.Time `db:"updated_at" json:"updated_at"` }
type FileUploadRequest ¶
type FileUploadRequest struct { ID uuid.UUID Name string Format FileFormat `db:"file_format" json:"format" sql:"type:file_format"` Content FileContent `db:"file_content" json:"content" sql:"type:file_content"` Organism string Owner sql.NullInt64 Session string Token string `db:"-"` }
func (*FileUploadRequest) StoreRequest ¶
func (p *FileUploadRequest) StoreRequest() error
type OrgPathway ¶
func (OrgPathway) Create ¶
func (p OrgPathway) Create(organisms ...Kegg) error
func (OrgPathway) File ¶
func (p OrgPathway) File() string
func (OrgPathway) Finalize ¶
func (p OrgPathway) Finalize() error
func (OrgPathway) FromRecord ¶
func (p OrgPathway) FromRecord(record []string) (*Kegg, error)
func (OrgPathway) Initialize ¶
func (p OrgPathway) Initialize() error
type Organism ¶
type Organism struct { ID OrganismID `json:"id"` Code string `json:"code"` Name string `json:"name"` Common db.NullString `json:"common,omitempty"` Tax string `json:"-" db:"-"` Hidden bool `json:"-"` }
func (Organism) Initialize ¶
func (*Organism) MarshalJSON ¶
type OrganismID ¶
type OrganismID int
func (*OrganismID) UnmarshalJSON ¶
func (p *OrganismID) UnmarshalJSON(data []byte) error
UnmarshalJSON foo
type Pathway ¶
type Pathway struct { // Serial int `db:"serial" json:"-"` ID PathwayID `db:"id" json:"id"` Name string `db:"name" json:"name"` }
Pathway foo
func (Pathway) Initialize ¶
type User ¶
type User struct { ID int64 `db:"id" json:"-" ` Name string `db:"name" json:"name,omitempty"` // TODO: Nullable Email string `db:"email" json:"email"` EmailVerified bool `db:"email_verified" json:"-"` // TODO: Nullable Provider string `db:"provider" json:"-"` ProviderID string `db:"provider_id" json:"-"` CreatedAt time.Time `db:"created_at" json:"created_at,omitempty"` UpdatedAt time.Time `db:"updated_at" json:"updated_at,omitempty"` }
Click to show internal directories.
Click to hide internal directories.