Help us shape the future of Go! Take the 2026 Go Developer Survey

ficsit

package
v0.7.0 Latest Latest
Warning

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

Go to latest
Published: Jun 2, 2026 License: GPL-3.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

View Source
const CheckVersionUploadState_Operation = `` /* 189-byte string literal not displayed */

The query or mutation executed by CheckVersionUploadState.

View Source
const CreateVersion_Operation = `
mutation CreateVersion ($modId: ModID!) {
	versionID: createVersion(modId: $modId)
}
`

The query or mutation executed by CreateVersion.

View Source
const FinalizeCreateVersion_Operation = `` /* 189-byte string literal not displayed */

The query or mutation executed by FinalizeCreateVersion.

View Source
const GetModName_Operation = `` /* 127-byte string literal not displayed */

The query or mutation executed by GetModName.

View Source
const GetMod_Operation = `` /* 327-byte string literal not displayed */

The query or mutation executed by GetMod.

View Source
const Mods_Operation = `` /* 208-byte string literal not displayed */

The query or mutation executed by Mods.

View Source
const Version_Operation = `` /* 188-byte string literal not displayed */

The query or mutation executed by Version.

Variables

This section is empty.

Functions

func InitAPI

func InitAPI() graphql.Client

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
}

func (*AuthedTransport) RoundTrip added in v0.1.3

func (t *AuthedTransport) RoundTrip(req *http.Request) (*http.Response, error)

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 CheckVersionUploadState(
	ctx context.Context,
	client graphql.Client,
	modId string,
	versionId string,
) (*CheckVersionUploadStateResponse, error)

func (*CheckVersionUploadStateResponse) GetState added in v0.1.3

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

GetAuto_approved returns CheckVersionUploadStateStateCreateVersionResponse.Auto_approved, and is useful for accessing the field via an interface.

func (*CheckVersionUploadStateStateCreateVersionResponse) GetVersion added in v0.1.3

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

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

type CompatibilityState added in v0.5.0

type CompatibilityState string
const (
	CompatibilityStateWorks   CompatibilityState = "Works"
	CompatibilityStateDamaged CompatibilityState = "Damaged"
	CompatibilityStateBroken  CompatibilityState = "Broken"
)

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 CreateVersion(
	ctx context.Context,
	client graphql.Client,
	modId string,
) (*CreateVersionResponse, error)

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 Dependency struct {
	ModID     string `json:"mod_id"`
	Condition string `json:"condition"`
	Optional  bool   `json:"optional"`
}

type Error added in v0.3.0

type Error struct {
	Message string `json:"message"`
	Code    int64  `json:"code"`
}

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"`
	Compatibility    GetModModCompatibilityCompatibilityInfo `json:"compatibility"`
	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) GetCompatibility added in v0.5.0

func (v *GetModMod) GetCompatibility() GetModModCompatibilityCompatibilityInfo

GetCompatibility returns GetModMod.Compatibility, and is useful for accessing the field via an interface.

func (*GetModMod) GetCreated_at added in v0.0.15

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

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

func (*GetModMod) GetDownloads added in v0.0.15

func (v *GetModMod) GetDownloads() int

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

func (*GetModMod) GetFull_description added in v0.0.15

func (v *GetModMod) GetFull_description() string

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

func (*GetModMod) GetId added in v0.0.15

func (v *GetModMod) GetId() string

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

func (*GetModMod) GetMod_reference added in v0.0.15

func (v *GetModMod) GetMod_reference() string

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

func (*GetModMod) GetName added in v0.0.15

func (v *GetModMod) GetName() string

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

func (*GetModMod) GetSource_url added in v0.0.15

func (v *GetModMod) GetSource_url() string

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

func (*GetModMod) GetViews added in v0.0.15

func (v *GetModMod) GetViews() int

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

func (*GetModMod) MarshalJSON added in v0.0.15

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

func (*GetModMod) UnmarshalJSON added in v0.0.15

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

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

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 GetModModCompatibilityCompatibilityInfo added in v0.5.0

type GetModModCompatibilityCompatibilityInfo struct {
	EA  GetModModCompatibilityCompatibilityInfoEACompatibility  `json:"EA"`
	EXP GetModModCompatibilityCompatibilityInfoEXPCompatibility `json:"EXP"`
}

GetModModCompatibilityCompatibilityInfo includes the requested fields of the GraphQL type CompatibilityInfo.

func (*GetModModCompatibilityCompatibilityInfo) GetEA added in v0.5.0

GetEA returns GetModModCompatibilityCompatibilityInfo.EA, and is useful for accessing the field via an interface.

func (*GetModModCompatibilityCompatibilityInfo) GetEXP added in v0.5.0

GetEXP returns GetModModCompatibilityCompatibilityInfo.EXP, and is useful for accessing the field via an interface.

type GetModModCompatibilityCompatibilityInfoEACompatibility added in v0.5.0

type GetModModCompatibilityCompatibilityInfoEACompatibility struct {
	Note  string             `json:"note"`
	State CompatibilityState `json:"state"`
}

GetModModCompatibilityCompatibilityInfoEACompatibility includes the requested fields of the GraphQL type Compatibility.

func (*GetModModCompatibilityCompatibilityInfoEACompatibility) GetNote added in v0.5.0

GetNote returns GetModModCompatibilityCompatibilityInfoEACompatibility.Note, and is useful for accessing the field via an interface.

func (*GetModModCompatibilityCompatibilityInfoEACompatibility) GetState added in v0.5.0

GetState returns GetModModCompatibilityCompatibilityInfoEACompatibility.State, and is useful for accessing the field via an interface.

type GetModModCompatibilityCompatibilityInfoEXPCompatibility added in v0.5.0

type GetModModCompatibilityCompatibilityInfoEXPCompatibility struct {
	Note  string             `json:"note"`
	State CompatibilityState `json:"state"`
}

GetModModCompatibilityCompatibilityInfoEXPCompatibility includes the requested fields of the GraphQL type Compatibility.

func (*GetModModCompatibilityCompatibilityInfoEXPCompatibility) GetNote added in v0.5.0

GetNote returns GetModModCompatibilityCompatibilityInfoEXPCompatibility.Note, and is useful for accessing the field via an interface.

func (*GetModModCompatibilityCompatibilityInfoEXPCompatibility) GetState added in v0.5.0

GetState returns GetModModCompatibilityCompatibilityInfoEXPCompatibility.State, 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 GetModName(
	ctx context.Context,
	client graphql.Client,
	modId string,
) (*GetModNameResponse, error)

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

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

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"
	ModFieldsUpdatedAt       ModFields = "updated_at"
	ModFieldsName            ModFields = "name"
	ModFieldsViews           ModFields = "views"
	ModFieldsDownloads       ModFields = "downloads"
	ModFieldsHotness         ModFields = "hotness"
	ModFieldsPopularity      ModFields = "popularity"
	ModFieldsLastVersionDate ModFields = "last_version_date"
	ModFieldsSearch          ModFields = "search"
)

type ModFilter added in v0.0.12

type ModFilter struct {
	Limit      int       `json:"limit,omitempty"`
	Offset     int       `json:"offset,omitempty"`
	Order_by   ModFields `json:"order_by,omitempty"`
	Order      Order     `json:"order,omitempty"`
	Search     string    `json:"search,omitempty"`
	Ids        []string  `json:"ids,omitempty"`
	References []string  `json:"references,omitempty"`
	Hidden     bool      `json:"hidden,omitempty"`
	TagIDs     []string  `json:"tagIDs,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.

func (*ModFilter) GetTagIDs added in v0.1.3

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

GetTagIDs returns ModFilter.TagIDs, 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"`
	GameVersion      string       `json:"game_version"`
	Dependencies     []Dependency `json:"dependencies"`
	Targets          []Target     `json:"targets"`
	RequiredOnRemote bool         `json:"required_on_remote"`
}

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

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

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

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

type Target added in v0.3.0

type Target struct {
	VersionID  string `json:"version_id"`
	TargetName string `json:"target_name"`
	Link       string `json:"link"`
	Hash       string `json:"hash"`
	Size       int64  `json:"size"`
}

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 (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 Version added in v0.2.0

func Version(
	ctx context.Context,
	client graphql.Client,
	modId string,
	version string,
) (*VersionResponse, error)

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"
)

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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