ficsit

package
v0.0.12 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jun 5, 2022 License: GPL-3.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func InitAPI

func InitAPI() graphql.Client

Types

type GetModGetMod added in v0.0.12

type GetModGetMod struct {
	Id               string                       `json:"id"`
	Mod_reference    string                       `json:"mod_reference"`
	Name             string                       `json:"name"`
	Views            int                          `json:"views"`
	Downloads        int                          `json:"downloads"`
	Authors          []GetModGetModAuthorsUserMod `json:"authors"`
	Full_description string                       `json:"full_description"`
	Source_url       string                       `json:"source_url"`
	Created_at       time.Time                    `json:"-"`
}

GetModGetMod includes the requested fields of the GraphQL type Mod.

func (*GetModGetMod) GetAuthors added in v0.0.12

func (v *GetModGetMod) GetAuthors() []GetModGetModAuthorsUserMod

GetAuthors returns GetModGetMod.Authors, and is useful for accessing the field via an interface.

func (*GetModGetMod) GetCreated_at added in v0.0.12

func (v *GetModGetMod) GetCreated_at() time.Time

GetCreated_at returns GetModGetMod.Created_at, and is useful for accessing the field via an interface.

func (*GetModGetMod) GetDownloads added in v0.0.12

func (v *GetModGetMod) GetDownloads() int

GetDownloads returns GetModGetMod.Downloads, and is useful for accessing the field via an interface.

func (*GetModGetMod) GetFull_description added in v0.0.12

func (v *GetModGetMod) GetFull_description() string

GetFull_description returns GetModGetMod.Full_description, and is useful for accessing the field via an interface.

func (*GetModGetMod) GetId added in v0.0.12

func (v *GetModGetMod) GetId() string

GetId returns GetModGetMod.Id, and is useful for accessing the field via an interface.

func (*GetModGetMod) GetMod_reference added in v0.0.12

func (v *GetModGetMod) GetMod_reference() string

GetMod_reference returns GetModGetMod.Mod_reference, and is useful for accessing the field via an interface.

func (*GetModGetMod) GetName added in v0.0.12

func (v *GetModGetMod) GetName() string

GetName returns GetModGetMod.Name, and is useful for accessing the field via an interface.

func (*GetModGetMod) GetSource_url added in v0.0.12

func (v *GetModGetMod) GetSource_url() string

GetSource_url returns GetModGetMod.Source_url, and is useful for accessing the field via an interface.

func (*GetModGetMod) GetViews added in v0.0.12

func (v *GetModGetMod) GetViews() int

GetViews returns GetModGetMod.Views, and is useful for accessing the field via an interface.

func (*GetModGetMod) MarshalJSON added in v0.0.12

func (v *GetModGetMod) MarshalJSON() ([]byte, error)

func (*GetModGetMod) UnmarshalJSON added in v0.0.12

func (v *GetModGetMod) UnmarshalJSON(b []byte) error

type GetModGetModAuthorsUserMod added in v0.0.12

type GetModGetModAuthorsUserMod struct {
	Role string                         `json:"role"`
	User GetModGetModAuthorsUserModUser `json:"user"`
}

GetModGetModAuthorsUserMod includes the requested fields of the GraphQL type UserMod.

func (*GetModGetModAuthorsUserMod) GetRole added in v0.0.12

func (v *GetModGetModAuthorsUserMod) GetRole() string

GetRole returns GetModGetModAuthorsUserMod.Role, and is useful for accessing the field via an interface.

func (*GetModGetModAuthorsUserMod) GetUser added in v0.0.12

GetUser returns GetModGetModAuthorsUserMod.User, and is useful for accessing the field via an interface.

type GetModGetModAuthorsUserModUser added in v0.0.12

type GetModGetModAuthorsUserModUser struct {
	Username string `json:"username"`
}

GetModGetModAuthorsUserModUser includes the requested fields of the GraphQL type User.

func (*GetModGetModAuthorsUserModUser) GetUsername added in v0.0.12

func (v *GetModGetModAuthorsUserModUser) GetUsername() string

GetUsername returns GetModGetModAuthorsUserModUser.Username, and is useful for accessing the field via an interface.

type GetModResponse added in v0.0.12

type GetModResponse struct {
	GetMod GetModGetMod `json:"getMod"`
}

GetModResponse is returned by GetMod on success.

func GetMod added in v0.0.12

func GetMod(
	ctx context.Context,
	client graphql.Client,
	modId string,
) (*GetModResponse, error)

func (*GetModResponse) GetGetMod added in v0.0.12

func (v *GetModResponse) GetGetMod() GetModGetMod

GetGetMod returns GetModResponse.GetMod, 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"`
}

func (*ModFilter) GetHidden added in v0.0.12

func (v *ModFilter) GetHidden() bool

GetHidden returns ModFilter.Hidden, and is useful for accessing the field via an interface.

func (*ModFilter) GetIds added in v0.0.12

func (v *ModFilter) GetIds() []string

GetIds returns ModFilter.Ids, and is useful for accessing the field via an interface.

func (*ModFilter) GetLimit added in v0.0.12

func (v *ModFilter) GetLimit() int

GetLimit returns ModFilter.Limit, and is useful for accessing the field via an interface.

func (*ModFilter) GetOffset added in v0.0.12

func (v *ModFilter) GetOffset() int

GetOffset returns ModFilter.Offset, and is useful for accessing the field via an interface.

func (*ModFilter) GetOrder added in v0.0.12

func (v *ModFilter) GetOrder() Order

GetOrder returns ModFilter.Order, and is useful for accessing the field via an interface.

func (*ModFilter) GetOrder_by added in v0.0.12

func (v *ModFilter) GetOrder_by() ModFields

GetOrder_by returns ModFilter.Order_by, and is useful for accessing the field via an interface.

func (*ModFilter) GetReferences added in v0.0.12

func (v *ModFilter) GetReferences() []string

GetReferences returns ModFilter.References, and is useful for accessing the field via an interface.

func (*ModFilter) GetSearch added in v0.0.12

func (v *ModFilter) GetSearch() string

GetSearch returns ModFilter.Search, and is useful for accessing the field via an interface.

type ModVersionConstraint added in v0.0.12

type ModVersionConstraint struct {
	ModIdOrReference string `json:"modIdOrReference"`
	Version          string `json:"version"`
}

func (*ModVersionConstraint) GetModIdOrReference added in v0.0.12

func (v *ModVersionConstraint) GetModIdOrReference() string

GetModIdOrReference returns ModVersionConstraint.ModIdOrReference, and is useful for accessing the field via an interface.

func (*ModVersionConstraint) GetVersion added in v0.0.12

func (v *ModVersionConstraint) GetVersion() string

GetVersion returns ModVersionConstraint.Version, and is useful for accessing the field via an interface.

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

type ModVersionsModVersionsVersion struct {
	Id      string `json:"id"`
	Version string `json:"version"`
}

ModVersionsModVersionsVersion includes the requested fields of the GraphQL type Version.

func (*ModVersionsModVersionsVersion) GetId added in v0.0.12

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 ModsGetMods added in v0.0.12

type ModsGetMods struct {
	Count int                  `json:"count"`
	Mods  []ModsGetModsModsMod `json:"mods"`
}

ModsGetMods includes the requested fields of the GraphQL type GetMods.

func (*ModsGetMods) GetCount added in v0.0.12

func (v *ModsGetMods) GetCount() int

GetCount returns ModsGetMods.Count, and is useful for accessing the field via an interface.

func (*ModsGetMods) GetMods added in v0.0.12

func (v *ModsGetMods) GetMods() []ModsGetModsModsMod

GetMods returns ModsGetMods.Mods, and is useful for accessing the field via an interface.

type ModsGetModsModsMod added in v0.0.12

type ModsGetModsModsMod 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"`
}

ModsGetModsModsMod includes the requested fields of the GraphQL type Mod.

func (*ModsGetModsModsMod) GetCreated_at added in v0.0.12

func (v *ModsGetModsModsMod) GetCreated_at() time.Time

GetCreated_at returns ModsGetModsModsMod.Created_at, and is useful for accessing the field via an interface.

func (*ModsGetModsModsMod) GetDownloads added in v0.0.12

func (v *ModsGetModsModsMod) GetDownloads() int

GetDownloads returns ModsGetModsModsMod.Downloads, and is useful for accessing the field via an interface.

func (*ModsGetModsModsMod) GetHotness added in v0.0.12

func (v *ModsGetModsModsMod) GetHotness() int

GetHotness returns ModsGetModsModsMod.Hotness, and is useful for accessing the field via an interface.

func (*ModsGetModsModsMod) GetId added in v0.0.12

func (v *ModsGetModsModsMod) GetId() string

GetId returns ModsGetModsModsMod.Id, and is useful for accessing the field via an interface.

func (*ModsGetModsModsMod) GetLast_version_date added in v0.0.12

func (v *ModsGetModsModsMod) GetLast_version_date() time.Time

GetLast_version_date returns ModsGetModsModsMod.Last_version_date, and is useful for accessing the field via an interface.

func (*ModsGetModsModsMod) GetMod_reference added in v0.0.12

func (v *ModsGetModsModsMod) GetMod_reference() string

GetMod_reference returns ModsGetModsModsMod.Mod_reference, and is useful for accessing the field via an interface.

func (*ModsGetModsModsMod) GetName added in v0.0.12

func (v *ModsGetModsModsMod) GetName() string

GetName returns ModsGetModsModsMod.Name, and is useful for accessing the field via an interface.

func (*ModsGetModsModsMod) GetPopularity added in v0.0.12

func (v *ModsGetModsModsMod) GetPopularity() int

GetPopularity returns ModsGetModsModsMod.Popularity, and is useful for accessing the field via an interface.

func (*ModsGetModsModsMod) GetViews added in v0.0.12

func (v *ModsGetModsModsMod) GetViews() int

GetViews returns ModsGetModsModsMod.Views, and is useful for accessing the field via an interface.

func (*ModsGetModsModsMod) MarshalJSON added in v0.0.12

func (v *ModsGetModsModsMod) MarshalJSON() ([]byte, error)

func (*ModsGetModsModsMod) UnmarshalJSON added in v0.0.12

func (v *ModsGetModsModsMod) UnmarshalJSON(b []byte) error

type ModsResponse added in v0.0.12

type ModsResponse struct {
	GetMods ModsGetMods `json:"getMods"`
}

ModsResponse is returned by Mods on success.

func Mods added in v0.0.12

func Mods(
	ctx context.Context,
	client graphql.Client,
	filter ModFilter,
) (*ModsResponse, error)

func (*ModsResponse) GetGetMods added in v0.0.12

func (v *ModsResponse) GetGetMods() ModsGetMods

GetGetMods returns ModsResponse.GetMods, and is useful for accessing the field via an interface.

type Order added in v0.0.12

type Order string
const (
	OrderAsc  Order = "asc"
	OrderDesc Order = "desc"
)

type ResolveModDependenciesModsModVersion added in v0.0.12

type ResolveModDependenciesModsModVersion struct {
	Id            string                                                `json:"id"`
	Mod_reference string                                                `json:"mod_reference"`
	Versions      []ResolveModDependenciesModsModVersionVersionsVersion `json:"versions"`
}

ResolveModDependenciesModsModVersion includes the requested fields of the GraphQL type ModVersion.

func (*ResolveModDependenciesModsModVersion) GetId added in v0.0.12

GetId returns ResolveModDependenciesModsModVersion.Id, and is useful for accessing the field via an interface.

func (*ResolveModDependenciesModsModVersion) GetMod_reference added in v0.0.12

func (v *ResolveModDependenciesModsModVersion) GetMod_reference() string

GetMod_reference returns ResolveModDependenciesModsModVersion.Mod_reference, and is useful for accessing the field via an interface.

func (*ResolveModDependenciesModsModVersion) GetVersions added in v0.0.12

GetVersions returns ResolveModDependenciesModsModVersion.Versions, and is useful for accessing the field via an interface.

type ResolveModDependenciesModsModVersionVersionsVersion added in v0.0.12

type ResolveModDependenciesModsModVersionVersionsVersion struct {
	Id           string                                                                             `json:"id"`
	Version      string                                                                             `json:"version"`
	Link         string                                                                             `json:"link"`
	Hash         string                                                                             `json:"hash"`
	Dependencies []ResolveModDependenciesModsModVersionVersionsVersionDependenciesVersionDependency `json:"dependencies"`
}

ResolveModDependenciesModsModVersionVersionsVersion includes the requested fields of the GraphQL type Version.

func (*ResolveModDependenciesModsModVersionVersionsVersion) GetDependencies added in v0.0.12

GetDependencies returns ResolveModDependenciesModsModVersionVersionsVersion.Dependencies, and is useful for accessing the field via an interface.

func (*ResolveModDependenciesModsModVersionVersionsVersion) GetHash added in v0.0.12

GetHash returns ResolveModDependenciesModsModVersionVersionsVersion.Hash, and is useful for accessing the field via an interface.

func (*ResolveModDependenciesModsModVersionVersionsVersion) GetId added in v0.0.12

GetId returns ResolveModDependenciesModsModVersionVersionsVersion.Id, and is useful for accessing the field via an interface.

GetLink returns ResolveModDependenciesModsModVersionVersionsVersion.Link, and is useful for accessing the field via an interface.

func (*ResolveModDependenciesModsModVersionVersionsVersion) GetVersion added in v0.0.12

GetVersion returns ResolveModDependenciesModsModVersionVersionsVersion.Version, and is useful for accessing the field via an interface.

type ResolveModDependenciesModsModVersionVersionsVersionDependenciesVersionDependency added in v0.0.12

type ResolveModDependenciesModsModVersionVersionsVersionDependenciesVersionDependency struct {
	Condition string `json:"condition"`
	Mod_id    string `json:"mod_id"`
	Optional  bool   `json:"optional"`
}

ResolveModDependenciesModsModVersionVersionsVersionDependenciesVersionDependency includes the requested fields of the GraphQL type VersionDependency.

func (*ResolveModDependenciesModsModVersionVersionsVersionDependenciesVersionDependency) GetCondition added in v0.0.12

GetCondition returns ResolveModDependenciesModsModVersionVersionsVersionDependenciesVersionDependency.Condition, and is useful for accessing the field via an interface.

func (*ResolveModDependenciesModsModVersionVersionsVersionDependenciesVersionDependency) GetMod_id added in v0.0.12

GetMod_id returns ResolveModDependenciesModsModVersionVersionsVersionDependenciesVersionDependency.Mod_id, and is useful for accessing the field via an interface.

func (*ResolveModDependenciesModsModVersionVersionsVersionDependenciesVersionDependency) GetOptional added in v0.0.12

GetOptional returns ResolveModDependenciesModsModVersionVersionsVersionDependenciesVersionDependency.Optional, and is useful for accessing the field via an interface.

type ResolveModDependenciesResponse added in v0.0.12

type ResolveModDependenciesResponse struct {
	Mods []ResolveModDependenciesModsModVersion `json:"mods"`
}

ResolveModDependenciesResponse is returned by ResolveModDependencies on success.

func ResolveModDependencies added in v0.0.12

func ResolveModDependencies(
	ctx context.Context,
	client graphql.Client,
	filter []ModVersionConstraint,
) (*ResolveModDependenciesResponse, error)

func (*ResolveModDependenciesResponse) GetMods added in v0.0.12

GetMods returns ResolveModDependenciesResponse.Mods, 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 SMLVersions(
	ctx context.Context,
	client graphql.Client,
) (*SMLVersionsResponse, error)

func (*SMLVersionsResponse) GetSmlVersions added in v0.0.12

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

GetCount returns SMLVersionsSmlVersionsGetSMLVersions.Count, and is useful for accessing the field via an interface.

func (*SMLVersionsSmlVersionsGetSMLVersions) GetSml_versions added in v0.0.12

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"`
}

SMLVersionsSmlVersionsGetSMLVersionsSml_versionsSMLVersion includes the requested fields of the GraphQL type SMLVersion.

func (*SMLVersionsSmlVersionsGetSMLVersionsSml_versionsSMLVersion) GetId added in v0.0.12

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

GetSatisfactory_version returns SMLVersionsSmlVersionsGetSMLVersionsSml_versionsSMLVersion.Satisfactory_version, and is useful for accessing the field via an interface.

func (*SMLVersionsSmlVersionsGetSMLVersionsSml_versionsSMLVersion) GetVersion added in v0.0.12

GetVersion returns SMLVersionsSmlVersionsGetSMLVersionsSml_versionsSMLVersion.Version, and is useful for accessing the field via an interface.

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.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL