Documentation ¶
Index ¶
- func InitAPI() graphql.Client
- type AllVersionsResponse
- type AuthedTransport
- type CheckVersionUploadStateResponse
- type CheckVersionUploadStateStateCreateVersionResponse
- type CheckVersionUploadStateStateCreateVersionResponseVersion
- type CreateVersionResponse
- type Dependency
- type Error
- type FinalizeCreateVersionResponse
- type GetModMod
- func (v *GetModMod) GetAuthors() []GetModModAuthorsUserMod
- func (v *GetModMod) GetCreated_at() time.Time
- func (v *GetModMod) GetDownloads() int
- func (v *GetModMod) GetFull_description() string
- func (v *GetModMod) GetId() string
- func (v *GetModMod) GetMod_reference() string
- func (v *GetModMod) GetName() string
- func (v *GetModMod) GetSource_url() string
- func (v *GetModMod) GetViews() int
- func (v *GetModMod) MarshalJSON() ([]byte, error)
- func (v *GetModMod) UnmarshalJSON(b []byte) error
- type GetModModAuthorsUserMod
- type GetModModAuthorsUserModUser
- type GetModNameMod
- type GetModNameResponse
- type GetModResponse
- type ModFields
- type ModFilter
- func (v *ModFilter) GetHidden() bool
- func (v *ModFilter) GetIds() []string
- func (v *ModFilter) GetLimit() int
- func (v *ModFilter) GetOffset() int
- func (v *ModFilter) GetOrder() Order
- func (v *ModFilter) GetOrder_by() ModFields
- func (v *ModFilter) GetReferences() []string
- func (v *ModFilter) GetSearch() string
- func (v *ModFilter) GetTagIDs() []string
- type ModVersion
- type ModVersionsMod
- type ModVersionsModVersionsVersion
- type ModVersionsResponse
- type ModVersionsWithDependenciesMod
- type ModVersionsWithDependenciesModVersionsVersion
- func (v *ModVersionsWithDependenciesModVersionsVersion) GetDependencies() []ModVersionsWithDependenciesModVersionsVersionDependenciesVersionDependency
- func (v *ModVersionsWithDependenciesModVersionsVersion) GetHash() string
- func (v *ModVersionsWithDependenciesModVersionsVersion) GetId() string
- func (v *ModVersionsWithDependenciesModVersionsVersion) GetLink() string
- func (v *ModVersionsWithDependenciesModVersionsVersion) GetTargets() []ModVersionsWithDependenciesModVersionsVersionTargetsVersionTarget
- func (v *ModVersionsWithDependenciesModVersionsVersion) GetVersion() string
- type ModVersionsWithDependenciesModVersionsVersionDependenciesVersionDependency
- func (v *ModVersionsWithDependenciesModVersionsVersionDependenciesVersionDependency) GetCondition() string
- func (v *ModVersionsWithDependenciesModVersionsVersionDependenciesVersionDependency) GetMod_id() string
- func (v *ModVersionsWithDependenciesModVersionsVersionDependenciesVersionDependency) GetOptional() bool
- type ModVersionsWithDependenciesModVersionsVersionTargetsVersionTarget
- type ModVersionsWithDependenciesResponse
- type ModsModsGetMods
- type ModsModsGetModsModsMod
- func (v *ModsModsGetModsModsMod) GetCreated_at() time.Time
- func (v *ModsModsGetModsModsMod) GetDownloads() int
- func (v *ModsModsGetModsModsMod) GetHotness() int
- func (v *ModsModsGetModsModsMod) GetId() string
- func (v *ModsModsGetModsModsMod) GetLast_version_date() time.Time
- func (v *ModsModsGetModsModsMod) GetMod_reference() string
- func (v *ModsModsGetModsModsMod) GetName() string
- func (v *ModsModsGetModsModsMod) GetPopularity() int
- func (v *ModsModsGetModsModsMod) GetViews() int
- func (v *ModsModsGetModsModsMod) MarshalJSON() ([]byte, error)
- func (v *ModsModsGetModsModsMod) UnmarshalJSON(b []byte) error
- type ModsResponse
- type NewVersion
- type Order
- type SMLVersionsResponse
- type SMLVersionsSmlVersionsGetSMLVersions
- type SMLVersionsSmlVersionsGetSMLVersionsSml_versionsSMLVersion
- func (v *SMLVersionsSmlVersionsGetSMLVersionsSml_versionsSMLVersion) GetId() string
- func (v *SMLVersionsSmlVersionsGetSMLVersionsSml_versionsSMLVersion) GetSatisfactory_version() int
- func (v *SMLVersionsSmlVersionsGetSMLVersionsSml_versionsSMLVersion) GetTargets() ...
- func (v *SMLVersionsSmlVersionsGetSMLVersionsSml_versionsSMLVersion) GetVersion() string
- type SMLVersionsSmlVersionsGetSMLVersionsSml_versionsSMLVersionTargetsSMLVersionTarget
- type Target
- type TargetName
- type VersionFields
- type VersionFilter
- type VersionMod
- type VersionModVersion
- type VersionResponse
- type VersionStabilities
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type AllVersionsResponse ¶ added in v0.3.0
type AllVersionsResponse struct { Error *Error `json:"error,omitempty"` Data []ModVersion `json:"data,omitempty"` Success bool `json:"success"` }
func GetAllModVersions ¶ added in v0.3.0
func GetAllModVersions(modID string) (*AllVersionsResponse, error)
type AuthedTransport ¶ added in v0.1.3
type AuthedTransport struct {
Wrapped http.RoundTripper
}
type CheckVersionUploadStateResponse ¶ added in v0.1.3
type CheckVersionUploadStateResponse struct {
State CheckVersionUploadStateStateCreateVersionResponse `json:"state"`
}
CheckVersionUploadStateResponse is returned by CheckVersionUploadState on success.
func CheckVersionUploadState ¶ added in v0.1.3
func (*CheckVersionUploadStateResponse) GetState ¶ added in v0.1.3
func (v *CheckVersionUploadStateResponse) GetState() CheckVersionUploadStateStateCreateVersionResponse
GetState returns CheckVersionUploadStateResponse.State, and is useful for accessing the field via an interface.
type CheckVersionUploadStateStateCreateVersionResponse ¶ added in v0.1.3
type CheckVersionUploadStateStateCreateVersionResponse struct { Auto_approved bool `json:"auto_approved"` Version CheckVersionUploadStateStateCreateVersionResponseVersion `json:"version"` }
CheckVersionUploadStateStateCreateVersionResponse includes the requested fields of the GraphQL type CreateVersionResponse.
func (*CheckVersionUploadStateStateCreateVersionResponse) GetAuto_approved ¶ added in v0.1.3
func (v *CheckVersionUploadStateStateCreateVersionResponse) GetAuto_approved() bool
GetAuto_approved returns CheckVersionUploadStateStateCreateVersionResponse.Auto_approved, and is useful for accessing the field via an interface.
func (*CheckVersionUploadStateStateCreateVersionResponse) GetVersion ¶ added in v0.1.3
func (v *CheckVersionUploadStateStateCreateVersionResponse) GetVersion() CheckVersionUploadStateStateCreateVersionResponseVersion
GetVersion returns CheckVersionUploadStateStateCreateVersionResponse.Version, and is useful for accessing the field via an interface.
type CheckVersionUploadStateStateCreateVersionResponseVersion ¶ added in v0.1.3
type CheckVersionUploadStateStateCreateVersionResponseVersion struct {
Id string `json:"id"`
}
CheckVersionUploadStateStateCreateVersionResponseVersion includes the requested fields of the GraphQL type Version.
func (*CheckVersionUploadStateStateCreateVersionResponseVersion) GetId ¶ added in v0.1.3
func (v *CheckVersionUploadStateStateCreateVersionResponseVersion) GetId() string
GetId returns CheckVersionUploadStateStateCreateVersionResponseVersion.Id, and is useful for accessing the field via an interface.
type CreateVersionResponse ¶ added in v0.1.3
type CreateVersionResponse struct {
VersionID string `json:"versionID"`
}
CreateVersionResponse is returned by CreateVersion on success.
func CreateVersion ¶ added in v0.1.3
func (*CreateVersionResponse) GetVersionID ¶ added in v0.1.3
func (v *CreateVersionResponse) GetVersionID() string
GetVersionID returns CreateVersionResponse.VersionID, and is useful for accessing the field via an interface.
type Dependency ¶ added in v0.3.0
type FinalizeCreateVersionResponse ¶ added in v0.1.3
type FinalizeCreateVersionResponse struct {
Success bool `json:"success"`
}
FinalizeCreateVersionResponse is returned by FinalizeCreateVersion on success.
func FinalizeCreateVersion ¶ added in v0.1.3
func FinalizeCreateVersion( ctx context.Context, client graphql.Client, modId string, versionId string, version NewVersion, ) (*FinalizeCreateVersionResponse, error)
func (*FinalizeCreateVersionResponse) GetSuccess ¶ added in v0.1.3
func (v *FinalizeCreateVersionResponse) GetSuccess() bool
GetSuccess returns FinalizeCreateVersionResponse.Success, and is useful for accessing the field via an interface.
type GetModMod ¶ added in v0.0.15
type GetModMod struct { Id string `json:"id"` Mod_reference string `json:"mod_reference"` Name string `json:"name"` Views int `json:"views"` Downloads int `json:"downloads"` Authors []GetModModAuthorsUserMod `json:"authors"` Full_description string `json:"full_description"` Source_url string `json:"source_url"` Created_at time.Time `json:"-"` }
GetModMod includes the requested fields of the GraphQL type Mod.
func (*GetModMod) GetAuthors ¶ added in v0.0.15
func (v *GetModMod) GetAuthors() []GetModModAuthorsUserMod
GetAuthors returns GetModMod.Authors, and is useful for accessing the field via an interface.
func (*GetModMod) GetCreated_at ¶ added in v0.0.15
GetCreated_at returns GetModMod.Created_at, and is useful for accessing the field via an interface.
func (*GetModMod) GetDownloads ¶ added in v0.0.15
GetDownloads returns GetModMod.Downloads, and is useful for accessing the field via an interface.
func (*GetModMod) GetFull_description ¶ added in v0.0.15
GetFull_description returns GetModMod.Full_description, and is useful for accessing the field via an interface.
func (*GetModMod) GetId ¶ added in v0.0.15
GetId returns GetModMod.Id, and is useful for accessing the field via an interface.
func (*GetModMod) GetMod_reference ¶ added in v0.0.15
GetMod_reference returns GetModMod.Mod_reference, and is useful for accessing the field via an interface.
func (*GetModMod) GetName ¶ added in v0.0.15
GetName returns GetModMod.Name, and is useful for accessing the field via an interface.
func (*GetModMod) GetSource_url ¶ added in v0.0.15
GetSource_url returns GetModMod.Source_url, and is useful for accessing the field via an interface.
func (*GetModMod) GetViews ¶ added in v0.0.15
GetViews returns GetModMod.Views, and is useful for accessing the field via an interface.
func (*GetModMod) MarshalJSON ¶ added in v0.0.15
func (*GetModMod) UnmarshalJSON ¶ added in v0.0.15
type GetModModAuthorsUserMod ¶ added in v0.0.15
type GetModModAuthorsUserMod struct { Role string `json:"role"` User GetModModAuthorsUserModUser `json:"user"` }
GetModModAuthorsUserMod includes the requested fields of the GraphQL type UserMod.
func (*GetModModAuthorsUserMod) GetRole ¶ added in v0.0.15
func (v *GetModModAuthorsUserMod) GetRole() string
GetRole returns GetModModAuthorsUserMod.Role, and is useful for accessing the field via an interface.
func (*GetModModAuthorsUserMod) GetUser ¶ added in v0.0.15
func (v *GetModModAuthorsUserMod) GetUser() GetModModAuthorsUserModUser
GetUser returns GetModModAuthorsUserMod.User, and is useful for accessing the field via an interface.
type GetModModAuthorsUserModUser ¶ added in v0.0.15
type GetModModAuthorsUserModUser struct {
Username string `json:"username"`
}
GetModModAuthorsUserModUser includes the requested fields of the GraphQL type User.
func (*GetModModAuthorsUserModUser) GetUsername ¶ added in v0.0.15
func (v *GetModModAuthorsUserModUser) GetUsername() string
GetUsername returns GetModModAuthorsUserModUser.Username, and is useful for accessing the field via an interface.
type GetModNameMod ¶ added in v0.2.0
type GetModNameMod struct { Id string `json:"id"` Mod_reference string `json:"mod_reference"` Name string `json:"name"` }
GetModNameMod includes the requested fields of the GraphQL type Mod.
func (*GetModNameMod) GetId ¶ added in v0.2.0
func (v *GetModNameMod) GetId() string
GetId returns GetModNameMod.Id, and is useful for accessing the field via an interface.
func (*GetModNameMod) GetMod_reference ¶ added in v0.2.0
func (v *GetModNameMod) GetMod_reference() string
GetMod_reference returns GetModNameMod.Mod_reference, and is useful for accessing the field via an interface.
func (*GetModNameMod) GetName ¶ added in v0.2.0
func (v *GetModNameMod) GetName() string
GetName returns GetModNameMod.Name, and is useful for accessing the field via an interface.
type GetModNameResponse ¶ added in v0.2.0
type GetModNameResponse struct {
Mod GetModNameMod `json:"mod"`
}
GetModNameResponse is returned by GetModName on success.
func GetModName ¶ added in v0.2.0
func (*GetModNameResponse) GetMod ¶ added in v0.2.0
func (v *GetModNameResponse) GetMod() GetModNameMod
GetMod returns GetModNameResponse.Mod, and is useful for accessing the field via an interface.
type GetModResponse ¶ added in v0.0.12
type GetModResponse struct {
Mod GetModMod `json:"mod"`
}
GetModResponse is returned by GetMod on success.
func (*GetModResponse) GetMod ¶ added in v0.0.12
func (v *GetModResponse) GetMod() GetModMod
GetMod returns GetModResponse.Mod, and is useful for accessing the field via an interface.
type ModFields ¶ added in v0.0.12
type ModFields string
const ( ModFieldsCreatedAt ModFields = "created_at" ModFieldsDownloads ModFields = "downloads" ModFieldsHotness ModFields = "hotness" ModFieldsLastVersionDate ModFields = "last_version_date" ModFieldsName ModFields = "name" ModFieldsPopularity ModFields = "popularity" ModFieldsSearch ModFields = "search" ModFieldsUpdatedAt ModFields = "updated_at" ModFieldsViews ModFields = "views" )
type ModFilter ¶ added in v0.0.12
type ModFilter struct { Hidden bool `json:"hidden,omitempty"` Ids []string `json:"ids,omitempty"` Limit int `json:"limit,omitempty"` Offset int `json:"offset,omitempty"` Order Order `json:"order,omitempty"` Order_by ModFields `json:"order_by,omitempty"` References []string `json:"references,omitempty"` Search string `json:"search,omitempty"` TagIDs []string `json:"tagIDs,omitempty"` }
func (*ModFilter) GetHidden ¶ added in v0.0.12
GetHidden returns ModFilter.Hidden, and is useful for accessing the field via an interface.
func (*ModFilter) GetIds ¶ added in v0.0.12
GetIds returns ModFilter.Ids, and is useful for accessing the field via an interface.
func (*ModFilter) GetLimit ¶ added in v0.0.12
GetLimit returns ModFilter.Limit, and is useful for accessing the field via an interface.
func (*ModFilter) GetOffset ¶ added in v0.0.12
GetOffset returns ModFilter.Offset, and is useful for accessing the field via an interface.
func (*ModFilter) GetOrder ¶ added in v0.0.12
GetOrder returns ModFilter.Order, and is useful for accessing the field via an interface.
func (*ModFilter) GetOrder_by ¶ added in v0.0.12
GetOrder_by returns ModFilter.Order_by, and is useful for accessing the field via an interface.
func (*ModFilter) GetReferences ¶ added in v0.0.12
GetReferences returns ModFilter.References, and is useful for accessing the field via an interface.
type ModVersion ¶ added in v0.3.0
type ModVersion struct { ID string `json:"id"` Version string `json:"version"` Dependencies []Dependency `json:"dependencies"` Targets []Target `json:"targets"` }
type ModVersionsMod ¶ added in v0.0.12
type ModVersionsMod struct { Id string `json:"id"` Versions []ModVersionsModVersionsVersion `json:"versions"` }
ModVersionsMod includes the requested fields of the GraphQL type Mod.
func (*ModVersionsMod) GetId ¶ added in v0.0.12
func (v *ModVersionsMod) GetId() string
GetId returns ModVersionsMod.Id, and is useful for accessing the field via an interface.
func (*ModVersionsMod) GetVersions ¶ added in v0.0.12
func (v *ModVersionsMod) GetVersions() []ModVersionsModVersionsVersion
GetVersions returns ModVersionsMod.Versions, and is useful for accessing the field via an interface.
type ModVersionsModVersionsVersion ¶ added in v0.0.12
ModVersionsModVersionsVersion includes the requested fields of the GraphQL type Version.
func (*ModVersionsModVersionsVersion) GetId ¶ added in v0.0.12
func (v *ModVersionsModVersionsVersion) GetId() string
GetId returns ModVersionsModVersionsVersion.Id, and is useful for accessing the field via an interface.
func (*ModVersionsModVersionsVersion) GetVersion ¶ added in v0.0.12
func (v *ModVersionsModVersionsVersion) GetVersion() string
GetVersion returns ModVersionsModVersionsVersion.Version, and is useful for accessing the field via an interface.
type ModVersionsResponse ¶ added in v0.0.12
type ModVersionsResponse struct {
Mod ModVersionsMod `json:"mod"`
}
ModVersionsResponse is returned by ModVersions on success.
func ModVersions ¶ added in v0.0.12
func ModVersions( ctx context.Context, client graphql.Client, modId string, filter VersionFilter, ) (*ModVersionsResponse, error)
func (*ModVersionsResponse) GetMod ¶ added in v0.0.12
func (v *ModVersionsResponse) GetMod() ModVersionsMod
GetMod returns ModVersionsResponse.Mod, and is useful for accessing the field via an interface.
type ModVersionsWithDependenciesMod ¶ added in v0.2.0
type ModVersionsWithDependenciesMod struct { Id string `json:"id"` Versions []ModVersionsWithDependenciesModVersionsVersion `json:"versions"` }
ModVersionsWithDependenciesMod includes the requested fields of the GraphQL type Mod.
func (*ModVersionsWithDependenciesMod) GetId ¶ added in v0.2.0
func (v *ModVersionsWithDependenciesMod) GetId() string
GetId returns ModVersionsWithDependenciesMod.Id, and is useful for accessing the field via an interface.
func (*ModVersionsWithDependenciesMod) GetVersions ¶ added in v0.2.0
func (v *ModVersionsWithDependenciesMod) GetVersions() []ModVersionsWithDependenciesModVersionsVersion
GetVersions returns ModVersionsWithDependenciesMod.Versions, and is useful for accessing the field via an interface.
type ModVersionsWithDependenciesModVersionsVersion ¶ added in v0.2.0
type ModVersionsWithDependenciesModVersionsVersion struct { Id string `json:"id"` Version string `json:"version"` Link string `json:"link"` Hash string `json:"hash"` Dependencies []ModVersionsWithDependenciesModVersionsVersionDependenciesVersionDependency `json:"dependencies"` Targets []ModVersionsWithDependenciesModVersionsVersionTargetsVersionTarget `json:"targets"` }
ModVersionsWithDependenciesModVersionsVersion includes the requested fields of the GraphQL type Version.
func (*ModVersionsWithDependenciesModVersionsVersion) GetDependencies ¶ added in v0.2.0
func (v *ModVersionsWithDependenciesModVersionsVersion) GetDependencies() []ModVersionsWithDependenciesModVersionsVersionDependenciesVersionDependency
GetDependencies returns ModVersionsWithDependenciesModVersionsVersion.Dependencies, and is useful for accessing the field via an interface.
func (*ModVersionsWithDependenciesModVersionsVersion) GetHash ¶ added in v0.2.0
func (v *ModVersionsWithDependenciesModVersionsVersion) GetHash() string
GetHash returns ModVersionsWithDependenciesModVersionsVersion.Hash, and is useful for accessing the field via an interface.
func (*ModVersionsWithDependenciesModVersionsVersion) GetId ¶ added in v0.2.0
func (v *ModVersionsWithDependenciesModVersionsVersion) GetId() string
GetId returns ModVersionsWithDependenciesModVersionsVersion.Id, and is useful for accessing the field via an interface.
func (*ModVersionsWithDependenciesModVersionsVersion) GetLink ¶ added in v0.2.0
func (v *ModVersionsWithDependenciesModVersionsVersion) GetLink() string
GetLink returns ModVersionsWithDependenciesModVersionsVersion.Link, and is useful for accessing the field via an interface.
func (*ModVersionsWithDependenciesModVersionsVersion) GetTargets ¶ added in v0.2.0
func (v *ModVersionsWithDependenciesModVersionsVersion) GetTargets() []ModVersionsWithDependenciesModVersionsVersionTargetsVersionTarget
GetTargets returns ModVersionsWithDependenciesModVersionsVersion.Targets, and is useful for accessing the field via an interface.
func (*ModVersionsWithDependenciesModVersionsVersion) GetVersion ¶ added in v0.2.0
func (v *ModVersionsWithDependenciesModVersionsVersion) GetVersion() string
GetVersion returns ModVersionsWithDependenciesModVersionsVersion.Version, and is useful for accessing the field via an interface.
type ModVersionsWithDependenciesModVersionsVersionDependenciesVersionDependency ¶ added in v0.2.0
type ModVersionsWithDependenciesModVersionsVersionDependenciesVersionDependency struct { Mod_id string `json:"mod_id"` Condition string `json:"condition"` Optional bool `json:"optional"` }
ModVersionsWithDependenciesModVersionsVersionDependenciesVersionDependency includes the requested fields of the GraphQL type VersionDependency.
func (*ModVersionsWithDependenciesModVersionsVersionDependenciesVersionDependency) GetCondition ¶ added in v0.2.0
func (v *ModVersionsWithDependenciesModVersionsVersionDependenciesVersionDependency) GetCondition() string
GetCondition returns ModVersionsWithDependenciesModVersionsVersionDependenciesVersionDependency.Condition, and is useful for accessing the field via an interface.
func (*ModVersionsWithDependenciesModVersionsVersionDependenciesVersionDependency) GetMod_id ¶ added in v0.2.0
func (v *ModVersionsWithDependenciesModVersionsVersionDependenciesVersionDependency) GetMod_id() string
GetMod_id returns ModVersionsWithDependenciesModVersionsVersionDependenciesVersionDependency.Mod_id, and is useful for accessing the field via an interface.
func (*ModVersionsWithDependenciesModVersionsVersionDependenciesVersionDependency) GetOptional ¶ added in v0.2.0
func (v *ModVersionsWithDependenciesModVersionsVersionDependenciesVersionDependency) GetOptional() bool
GetOptional returns ModVersionsWithDependenciesModVersionsVersionDependenciesVersionDependency.Optional, and is useful for accessing the field via an interface.
type ModVersionsWithDependenciesModVersionsVersionTargetsVersionTarget ¶ added in v0.2.0
type ModVersionsWithDependenciesModVersionsVersionTargetsVersionTarget struct { TargetName TargetName `json:"targetName"` Link string `json:"link"` Hash string `json:"hash"` }
ModVersionsWithDependenciesModVersionsVersionTargetsVersionTarget includes the requested fields of the GraphQL type VersionTarget.
func (*ModVersionsWithDependenciesModVersionsVersionTargetsVersionTarget) GetHash ¶ added in v0.2.0
func (v *ModVersionsWithDependenciesModVersionsVersionTargetsVersionTarget) GetHash() string
GetHash returns ModVersionsWithDependenciesModVersionsVersionTargetsVersionTarget.Hash, and is useful for accessing the field via an interface.
func (*ModVersionsWithDependenciesModVersionsVersionTargetsVersionTarget) GetLink ¶ added in v0.2.0
func (v *ModVersionsWithDependenciesModVersionsVersionTargetsVersionTarget) GetLink() string
GetLink returns ModVersionsWithDependenciesModVersionsVersionTargetsVersionTarget.Link, and is useful for accessing the field via an interface.
func (*ModVersionsWithDependenciesModVersionsVersionTargetsVersionTarget) GetTargetName ¶ added in v0.2.0
func (v *ModVersionsWithDependenciesModVersionsVersionTargetsVersionTarget) GetTargetName() TargetName
GetTargetName returns ModVersionsWithDependenciesModVersionsVersionTargetsVersionTarget.TargetName, and is useful for accessing the field via an interface.
type ModVersionsWithDependenciesResponse ¶ added in v0.2.0
type ModVersionsWithDependenciesResponse struct {
Mod ModVersionsWithDependenciesMod `json:"mod"`
}
ModVersionsWithDependenciesResponse is returned by ModVersionsWithDependencies on success.
func ModVersionsWithDependencies ¶ added in v0.2.0
func (*ModVersionsWithDependenciesResponse) GetMod ¶ added in v0.2.0
func (v *ModVersionsWithDependenciesResponse) GetMod() ModVersionsWithDependenciesMod
GetMod returns ModVersionsWithDependenciesResponse.Mod, and is useful for accessing the field via an interface.
type ModsModsGetMods ¶ added in v0.0.15
type ModsModsGetMods struct { Count int `json:"count"` Mods []ModsModsGetModsModsMod `json:"mods"` }
ModsModsGetMods includes the requested fields of the GraphQL type GetMods.
func (*ModsModsGetMods) GetCount ¶ added in v0.0.15
func (v *ModsModsGetMods) GetCount() int
GetCount returns ModsModsGetMods.Count, and is useful for accessing the field via an interface.
func (*ModsModsGetMods) GetMods ¶ added in v0.0.15
func (v *ModsModsGetMods) GetMods() []ModsModsGetModsModsMod
GetMods returns ModsModsGetMods.Mods, and is useful for accessing the field via an interface.
type ModsModsGetModsModsMod ¶ added in v0.0.15
type ModsModsGetModsModsMod struct { Id string `json:"id"` Name string `json:"name"` Mod_reference string `json:"mod_reference"` Last_version_date time.Time `json:"-"` Created_at time.Time `json:"-"` Views int `json:"views"` Downloads int `json:"downloads"` Popularity int `json:"popularity"` Hotness int `json:"hotness"` }
ModsModsGetModsModsMod includes the requested fields of the GraphQL type Mod.
func (*ModsModsGetModsModsMod) GetCreated_at ¶ added in v0.0.15
func (v *ModsModsGetModsModsMod) GetCreated_at() time.Time
GetCreated_at returns ModsModsGetModsModsMod.Created_at, and is useful for accessing the field via an interface.
func (*ModsModsGetModsModsMod) GetDownloads ¶ added in v0.0.15
func (v *ModsModsGetModsModsMod) GetDownloads() int
GetDownloads returns ModsModsGetModsModsMod.Downloads, and is useful for accessing the field via an interface.
func (*ModsModsGetModsModsMod) GetHotness ¶ added in v0.0.15
func (v *ModsModsGetModsModsMod) GetHotness() int
GetHotness returns ModsModsGetModsModsMod.Hotness, and is useful for accessing the field via an interface.
func (*ModsModsGetModsModsMod) GetId ¶ added in v0.0.15
func (v *ModsModsGetModsModsMod) GetId() string
GetId returns ModsModsGetModsModsMod.Id, and is useful for accessing the field via an interface.
func (*ModsModsGetModsModsMod) GetLast_version_date ¶ added in v0.0.15
func (v *ModsModsGetModsModsMod) GetLast_version_date() time.Time
GetLast_version_date returns ModsModsGetModsModsMod.Last_version_date, and is useful for accessing the field via an interface.
func (*ModsModsGetModsModsMod) GetMod_reference ¶ added in v0.0.15
func (v *ModsModsGetModsModsMod) GetMod_reference() string
GetMod_reference returns ModsModsGetModsModsMod.Mod_reference, and is useful for accessing the field via an interface.
func (*ModsModsGetModsModsMod) GetName ¶ added in v0.0.15
func (v *ModsModsGetModsModsMod) GetName() string
GetName returns ModsModsGetModsModsMod.Name, and is useful for accessing the field via an interface.
func (*ModsModsGetModsModsMod) GetPopularity ¶ added in v0.0.15
func (v *ModsModsGetModsModsMod) GetPopularity() int
GetPopularity returns ModsModsGetModsModsMod.Popularity, and is useful for accessing the field via an interface.
func (*ModsModsGetModsModsMod) GetViews ¶ added in v0.0.15
func (v *ModsModsGetModsModsMod) GetViews() int
GetViews returns ModsModsGetModsModsMod.Views, and is useful for accessing the field via an interface.
func (*ModsModsGetModsModsMod) MarshalJSON ¶ added in v0.0.15
func (v *ModsModsGetModsModsMod) MarshalJSON() ([]byte, error)
func (*ModsModsGetModsModsMod) UnmarshalJSON ¶ added in v0.0.15
func (v *ModsModsGetModsModsMod) UnmarshalJSON(b []byte) error
type ModsResponse ¶ added in v0.0.12
type ModsResponse struct {
Mods ModsModsGetMods `json:"mods"`
}
ModsResponse is returned by Mods on success.
func (*ModsResponse) GetMods ¶ added in v0.0.12
func (v *ModsResponse) GetMods() ModsModsGetMods
GetMods returns ModsResponse.Mods, and is useful for accessing the field via an interface.
type NewVersion ¶ added in v0.1.3
type NewVersion struct { Changelog string `json:"changelog"` Stability VersionStabilities `json:"stability"` }
func (*NewVersion) GetChangelog ¶ added in v0.1.3
func (v *NewVersion) GetChangelog() string
GetChangelog returns NewVersion.Changelog, and is useful for accessing the field via an interface.
func (*NewVersion) GetStability ¶ added in v0.1.3
func (v *NewVersion) GetStability() VersionStabilities
GetStability returns NewVersion.Stability, and is useful for accessing the field via an interface.
type SMLVersionsResponse ¶ added in v0.0.12
type SMLVersionsResponse struct {
SmlVersions SMLVersionsSmlVersionsGetSMLVersions `json:"smlVersions"`
}
SMLVersionsResponse is returned by SMLVersions on success.
func SMLVersions ¶ added in v0.0.12
func (*SMLVersionsResponse) GetSmlVersions ¶ added in v0.0.12
func (v *SMLVersionsResponse) GetSmlVersions() SMLVersionsSmlVersionsGetSMLVersions
GetSmlVersions returns SMLVersionsResponse.SmlVersions, and is useful for accessing the field via an interface.
type SMLVersionsSmlVersionsGetSMLVersions ¶ added in v0.0.12
type SMLVersionsSmlVersionsGetSMLVersions struct { Count int `json:"count"` Sml_versions []SMLVersionsSmlVersionsGetSMLVersionsSml_versionsSMLVersion `json:"sml_versions"` }
SMLVersionsSmlVersionsGetSMLVersions includes the requested fields of the GraphQL type GetSMLVersions.
func (*SMLVersionsSmlVersionsGetSMLVersions) GetCount ¶ added in v0.0.12
func (v *SMLVersionsSmlVersionsGetSMLVersions) GetCount() int
GetCount returns SMLVersionsSmlVersionsGetSMLVersions.Count, and is useful for accessing the field via an interface.
func (*SMLVersionsSmlVersionsGetSMLVersions) GetSml_versions ¶ added in v0.0.12
func (v *SMLVersionsSmlVersionsGetSMLVersions) GetSml_versions() []SMLVersionsSmlVersionsGetSMLVersionsSml_versionsSMLVersion
GetSml_versions returns SMLVersionsSmlVersionsGetSMLVersions.Sml_versions, and is useful for accessing the field via an interface.
type SMLVersionsSmlVersionsGetSMLVersionsSml_versionsSMLVersion ¶ added in v0.0.12
type SMLVersionsSmlVersionsGetSMLVersionsSml_versionsSMLVersion struct { Id string `json:"id"` Version string `json:"version"` Satisfactory_version int `json:"satisfactory_version"` Targets []SMLVersionsSmlVersionsGetSMLVersionsSml_versionsSMLVersionTargetsSMLVersionTarget `json:"targets"` }
SMLVersionsSmlVersionsGetSMLVersionsSml_versionsSMLVersion includes the requested fields of the GraphQL type SMLVersion.
func (*SMLVersionsSmlVersionsGetSMLVersionsSml_versionsSMLVersion) GetId ¶ added in v0.0.12
func (v *SMLVersionsSmlVersionsGetSMLVersionsSml_versionsSMLVersion) GetId() string
GetId returns SMLVersionsSmlVersionsGetSMLVersionsSml_versionsSMLVersion.Id, and is useful for accessing the field via an interface.
func (*SMLVersionsSmlVersionsGetSMLVersionsSml_versionsSMLVersion) GetSatisfactory_version ¶ added in v0.0.12
func (v *SMLVersionsSmlVersionsGetSMLVersionsSml_versionsSMLVersion) GetSatisfactory_version() int
GetSatisfactory_version returns SMLVersionsSmlVersionsGetSMLVersionsSml_versionsSMLVersion.Satisfactory_version, and is useful for accessing the field via an interface.
func (*SMLVersionsSmlVersionsGetSMLVersionsSml_versionsSMLVersion) GetTargets ¶ added in v0.2.0
func (v *SMLVersionsSmlVersionsGetSMLVersionsSml_versionsSMLVersion) GetTargets() []SMLVersionsSmlVersionsGetSMLVersionsSml_versionsSMLVersionTargetsSMLVersionTarget
GetTargets returns SMLVersionsSmlVersionsGetSMLVersionsSml_versionsSMLVersion.Targets, and is useful for accessing the field via an interface.
func (*SMLVersionsSmlVersionsGetSMLVersionsSml_versionsSMLVersion) GetVersion ¶ added in v0.0.12
func (v *SMLVersionsSmlVersionsGetSMLVersionsSml_versionsSMLVersion) GetVersion() string
GetVersion returns SMLVersionsSmlVersionsGetSMLVersionsSml_versionsSMLVersion.Version, and is useful for accessing the field via an interface.
type SMLVersionsSmlVersionsGetSMLVersionsSml_versionsSMLVersionTargetsSMLVersionTarget ¶ added in v0.2.0
type SMLVersionsSmlVersionsGetSMLVersionsSml_versionsSMLVersionTargetsSMLVersionTarget struct { TargetName TargetName `json:"targetName"` Link string `json:"link"` }
SMLVersionsSmlVersionsGetSMLVersionsSml_versionsSMLVersionTargetsSMLVersionTarget includes the requested fields of the GraphQL type SMLVersionTarget.
func (*SMLVersionsSmlVersionsGetSMLVersionsSml_versionsSMLVersionTargetsSMLVersionTarget) GetLink ¶ added in v0.2.0
func (v *SMLVersionsSmlVersionsGetSMLVersionsSml_versionsSMLVersionTargetsSMLVersionTarget) GetLink() string
GetLink returns SMLVersionsSmlVersionsGetSMLVersionsSml_versionsSMLVersionTargetsSMLVersionTarget.Link, and is useful for accessing the field via an interface.
func (*SMLVersionsSmlVersionsGetSMLVersionsSml_versionsSMLVersionTargetsSMLVersionTarget) GetTargetName ¶ added in v0.2.0
func (v *SMLVersionsSmlVersionsGetSMLVersionsSml_versionsSMLVersionTargetsSMLVersionTarget) GetTargetName() TargetName
GetTargetName returns SMLVersionsSmlVersionsGetSMLVersionsSml_versionsSMLVersionTargetsSMLVersionTarget.TargetName, and is useful for accessing the field via an interface.
type TargetName ¶ added in v0.2.0
type TargetName string
const ( TargetNameLinuxserver TargetName = "LinuxServer" TargetNameWindows TargetName = "Windows" TargetNameWindowsserver TargetName = "WindowsServer" )
type VersionFields ¶ added in v0.0.12
type VersionFields string
const ( VersionFieldsCreatedAt VersionFields = "created_at" VersionFieldsDownloads VersionFields = "downloads" VersionFieldsUpdatedAt VersionFields = "updated_at" )
type VersionFilter ¶ added in v0.0.12
type VersionFilter struct { Ids []string `json:"ids,omitempty"` Limit int `json:"limit,omitempty"` Offset int `json:"offset,omitempty"` Order Order `json:"order,omitempty"` Order_by VersionFields `json:"order_by,omitempty"` Search string `json:"search,omitempty"` }
func (*VersionFilter) GetIds ¶ added in v0.0.12
func (v *VersionFilter) GetIds() []string
GetIds returns VersionFilter.Ids, and is useful for accessing the field via an interface.
func (*VersionFilter) GetLimit ¶ added in v0.0.12
func (v *VersionFilter) GetLimit() int
GetLimit returns VersionFilter.Limit, and is useful for accessing the field via an interface.
func (*VersionFilter) GetOffset ¶ added in v0.0.12
func (v *VersionFilter) GetOffset() int
GetOffset returns VersionFilter.Offset, and is useful for accessing the field via an interface.
func (*VersionFilter) GetOrder ¶ added in v0.0.12
func (v *VersionFilter) GetOrder() Order
GetOrder returns VersionFilter.Order, and is useful for accessing the field via an interface.
func (*VersionFilter) GetOrder_by ¶ added in v0.0.12
func (v *VersionFilter) GetOrder_by() VersionFields
GetOrder_by returns VersionFilter.Order_by, and is useful for accessing the field via an interface.
func (*VersionFilter) GetSearch ¶ added in v0.0.12
func (v *VersionFilter) GetSearch() string
GetSearch returns VersionFilter.Search, and is useful for accessing the field via an interface.
type VersionMod ¶ added in v0.2.0
type VersionMod struct { Id string `json:"id"` Version VersionModVersion `json:"version"` }
VersionMod includes the requested fields of the GraphQL type Mod.
func (*VersionMod) GetId ¶ added in v0.2.0
func (v *VersionMod) GetId() string
GetId returns VersionMod.Id, and is useful for accessing the field via an interface.
func (*VersionMod) GetVersion ¶ added in v0.2.0
func (v *VersionMod) GetVersion() VersionModVersion
GetVersion returns VersionMod.Version, and is useful for accessing the field via an interface.
type VersionModVersion ¶ added in v0.2.0
type VersionModVersion struct { Id string `json:"id"` Version string `json:"version"` Link string `json:"link"` Hash string `json:"hash"` }
VersionModVersion includes the requested fields of the GraphQL type Version.
func (*VersionModVersion) GetHash ¶ added in v0.2.0
func (v *VersionModVersion) GetHash() string
GetHash returns VersionModVersion.Hash, and is useful for accessing the field via an interface.
func (*VersionModVersion) GetId ¶ added in v0.2.0
func (v *VersionModVersion) GetId() string
GetId returns VersionModVersion.Id, and is useful for accessing the field via an interface.
func (*VersionModVersion) GetLink ¶ added in v0.2.0
func (v *VersionModVersion) GetLink() string
GetLink returns VersionModVersion.Link, and is useful for accessing the field via an interface.
func (*VersionModVersion) GetVersion ¶ added in v0.2.0
func (v *VersionModVersion) GetVersion() string
GetVersion returns VersionModVersion.Version, and is useful for accessing the field via an interface.
type VersionResponse ¶ added in v0.2.0
type VersionResponse struct {
Mod VersionMod `json:"mod"`
}
VersionResponse is returned by Version on success.
func (*VersionResponse) GetMod ¶ added in v0.2.0
func (v *VersionResponse) GetMod() VersionMod
GetMod returns VersionResponse.Mod, and is useful for accessing the field via an interface.
type VersionStabilities ¶ added in v0.1.3
type VersionStabilities string
const ( VersionStabilitiesAlpha VersionStabilities = "alpha" VersionStabilitiesBeta VersionStabilities = "beta" VersionStabilitiesRelease VersionStabilities = "release" )