Documentation
¶
Index ¶
- type Files
- type FilesOption
- type FilesRequest
- type ModFile
- type ModFileChangelog
- type ModFileChangelogOption
- type ModFileChangelogRequest
- type ModFileOption
- type ModFileRequest
- type ModFileUrl
- type ModFileUrlOption
- type ModFileUrlRequest
- type ModFiles
- func (ModFiles) WithContext(ctx context.Context) ModFilesOption
- func (ModFiles) WithGameVersion(gameVersion schema.GameVersionStr) ModFilesOption
- func (ModFiles) WithGameVersionTypeID(gameVersionTypeID schema.GameVersionTypeID) ModFilesOption
- func (ModFiles) WithIndex(index int) ModFilesOption
- func (ModFiles) WithModLoader(modLoader enum.ModLoader) ModFilesOption
- func (ModFiles) WithPageSize(pageSize int) ModFilesOption
- type ModFilesOption
- type ModFilesRequest
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Files ¶
type Files func(fileIDs []schema.FileID, o ...FilesOption) (*schema.GetFilesResponse, error)
func NewFilesAPI ¶
func NewFilesAPI(t http.RoundTripper) Files
func (Files) WithContext ¶
func (Files) WithContext(ctx context.Context) FilesOption
type FilesOption ¶
type FilesOption func(*FilesRequest)
type FilesRequest ¶
type FilesRequest struct { schema.GetModFilesRequestBody // contains filtered or unexported fields }
https://docs.curseforge.com/#get-files
func (*FilesRequest) Do ¶
func (r *FilesRequest) Do(ctx context.Context, t http.RoundTripper) (*http.Response, error)
type ModFile ¶
type ModFile func(modID schema.ModID, fileID schema.FileID, o ...ModFileOption) (*schema.GetModFileResponse, error)
func NewModFileAPI ¶
func NewModFileAPI(t http.RoundTripper) ModFile
func (ModFile) WithContext ¶
func (ModFile) WithContext(ctx context.Context) ModFileOption
type ModFileChangelog ¶
type ModFileChangelog func(modID schema.ModID, fileID schema.FileID, o ...ModFileChangelogOption) (*schema.StringResponse, error)
func NewModFileChangelogAPI ¶
func NewModFileChangelogAPI(t http.RoundTripper) ModFileChangelog
func (ModFileChangelog) WithContext ¶
func (ModFileChangelog) WithContext(ctx context.Context) ModFileChangelogOption
type ModFileChangelogOption ¶
type ModFileChangelogOption func(*ModFileChangelogRequest)
type ModFileChangelogRequest ¶
type ModFileChangelogRequest struct { ModID schema.ModID FileID schema.FileID // contains filtered or unexported fields }
https://docs.curseforge.com/#get-mod-file-changelog
func (*ModFileChangelogRequest) Do ¶
func (r *ModFileChangelogRequest) Do(ctx context.Context, t http.RoundTripper) (*http.Response, error)
type ModFileOption ¶
type ModFileOption func(*ModFileRequest)
type ModFileRequest ¶
type ModFileRequest struct { ModID schema.ModID FileID schema.FileID // contains filtered or unexported fields }
https://docs.curseforge.com/#get-mod-file
func (*ModFileRequest) Do ¶
func (r *ModFileRequest) Do(ctx context.Context, t http.RoundTripper) (*http.Response, error)
type ModFileUrl ¶
type ModFileUrl func(modID schema.ModID, fileID schema.FileID, o ...ModFileUrlOption) (*schema.StringResponse, error)
func NewModFileUrlAPI ¶
func NewModFileUrlAPI(t http.RoundTripper) ModFileUrl
func (ModFileUrl) WithContext ¶
func (ModFileUrl) WithContext(ctx context.Context) ModFileUrlOption
type ModFileUrlOption ¶
type ModFileUrlOption func(*ModFileUrlRequest)
type ModFileUrlRequest ¶
type ModFileUrlRequest struct { ModID schema.ModID FileID schema.FileID // contains filtered or unexported fields }
https://docs.curseforge.com/#get-mod-file-download-url
func (*ModFileUrlRequest) Do ¶
func (r *ModFileUrlRequest) Do(ctx context.Context, t http.RoundTripper) (*http.Response, error)
type ModFiles ¶
type ModFiles func(modID schema.ModID, o ...ModFilesOption) (*schema.GetModFilesResponse, error)
func NewModFilesAPI ¶
func NewModFilesAPI(t http.RoundTripper) ModFiles
func (ModFiles) WithContext ¶
func (ModFiles) WithContext(ctx context.Context) ModFilesOption
func (ModFiles) WithGameVersion ¶
func (ModFiles) WithGameVersion(gameVersion schema.GameVersionStr) ModFilesOption
func (ModFiles) WithGameVersionTypeID ¶
func (ModFiles) WithGameVersionTypeID(gameVersionTypeID schema.GameVersionTypeID) ModFilesOption
func (ModFiles) WithIndex ¶ added in v0.2.0
func (ModFiles) WithIndex(index int) ModFilesOption
func (ModFiles) WithModLoader ¶
func (ModFiles) WithModLoader(modLoader enum.ModLoader) ModFilesOption
func (ModFiles) WithPageSize ¶
func (ModFiles) WithPageSize(pageSize int) ModFilesOption
type ModFilesOption ¶
type ModFilesOption func(*ModFilesRequest)
type ModFilesRequest ¶
type ModFilesRequest struct { ModID schema.ModID GameVersion *schema.GameVersionStr GameVersionTypeID *schema.GameVersionTypeID ModLoader *enum.ModLoader Index int // Not page number! PageSize int // contains filtered or unexported fields }
https://docs.curseforge.com/#get-mod-files
func (*ModFilesRequest) Do ¶
func (r *ModFilesRequest) Do(ctx context.Context, t http.RoundTripper) (*http.Response, error)
Click to show internal directories.
Click to hide internal directories.