Documentation ¶
Overview ¶
Package coremdl models used throughout the mcman project, both frontend and backend
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Dependency ¶
type Dependency struct { VersionID string `json:"versionId"` SiteModID string `json:"siteModId"` Type DependencyType `json:"type"` SiteType SiteType `json:"siteType"` Mod *Mod `json:"mod,omitempty"` }
type DependencyType ¶
type DependencyType string
const ( DependencyTypeRequired DependencyType = "required" DependencyTypeOptional DependencyType = "optional" DependencyTypeIncompatible DependencyType = "incompatible" DependencyTypeUnknown DependencyType = "unknown" )
type MCVersions ¶
type MCVersions []MCVersion
func (MCVersions) Contains ¶
func (v MCVersions) Contains(version MCVersion) bool
type Mod ¶
type Mod struct { ID string `json:"id" firestore:"id"` NameID string `json:"nameId" firestore:"nameId"` Sites ModSites `json:"sites" firestore:"sites"` Timestamp time.Time `json:"timestamp" firestore:"timestamp"` }
Mod contains internal ID including information about the mod on different sites.
type ModSite ¶
type ModSite struct { ID string `json:"id" firestore:"id"` Name string `json:"name" firestore:"name"` Type SiteType `json:"type" firestore:"type"` Slug string `json:"slug" firestore:"slug"` Description string `json:"description" firestore:"description"` ModLoaders ModLoader `json:"modLoaders" firestore:"modLoaders"` MCVersions MCVersions `json:"mcVersions" firestore:"mcVersions"` Updated time.Time `json:"updated" firestore:"updated"` Published time.Time `json:"published" firestore:"published"` Timestamp time.Time `json:"timestamp" firestore:"timestamp"` // Timestamp when this information was updated in DB }
ModSite mod information for a specific site
func (ModSite) HasModLoader ¶
HasModLoader returns true if the mod has the specified mod loader Will also return true if the mod loader is none in the mod site or parameter
type Version ¶
type Version struct { SiteVersionID string `json:"siteVersionId" firestore:"siteVersionId"` ModID string `json:"modId" firestore:"modId"` SiteModID string `json:"siteModId" firestore:"siteModId"` Number string `json:"number" firestore:"number"` Stability Stability `json:"stability" firestore:"stability"` SiteType SiteType `json:"siteType" firestore:"siteType"` UploadTime time.Time `json:"uploadTime" firestore:"uploadTime"` MCVersions MCVersions `json:"minecraftVersions" firestore:"minecraftVersions"` File File `json:"file" firestore:"file"` ModLoader ModLoader `json:"modLoader" firestore:"modLoader"` Dependencies []Dependency `json:"dependencies" firestore:"dependencies"` Timestamp time.Time `json:"timestamp" firestore:"timestamp"` }
Source Files ¶
Click to show internal directories.
Click to hide internal directories.