Documentation
¶
Overview ¶
Code generated by ogen, DO NOT EDIT.
Index ¶
- func WithServerURL(ctx context.Context, u *url.URL) context.Context
- type AddGalleryImageExt
- type AddGalleryImageNoContent
- type AddGalleryImageNotFound
- type AddGalleryImageParams
- type AddGalleryImageReq
- type AddGalleryImageReqEmptyBody
- type AddGalleryImageReqImageBmp
- type AddGalleryImageReqImageGIF
- type AddGalleryImageReqImageJpeg
- type AddGalleryImageReqImagePNG
- type AddGalleryImageReqImageRgb
- type AddGalleryImageReqImageSvg
- type AddGalleryImageReqImageSvgz
- type AddGalleryImageReqImageWEBP
- type AddGalleryImageRes
- type AddTeamMemberNoContent
- type AddTeamMemberNotFound
- type AddTeamMemberParams
- type AddTeamMemberRes
- type AlgorithmIdentifier
- type AuthError
- func (s *AuthError) Decode(d *jx.Decoder) error
- func (s *AuthError) Encode(e *jx.Encoder)
- func (s *AuthError) GetDescription() string
- func (s *AuthError) GetError() string
- func (s *AuthError) MarshalJSON() ([]byte, error)
- func (s *AuthError) SetDescription(val string)
- func (s *AuthError) SetError(val string)
- func (s *AuthError) UnmarshalJSON(data []byte) error
- type CategoryTag
- func (s *CategoryTag) Decode(d *jx.Decoder) error
- func (s *CategoryTag) Encode(e *jx.Encoder)
- func (s *CategoryTag) GetHeader() string
- func (s *CategoryTag) GetIcon() string
- func (s *CategoryTag) GetName() string
- func (s *CategoryTag) GetProjectType() string
- func (s *CategoryTag) MarshalJSON() ([]byte, error)
- func (s *CategoryTag) SetHeader(val string)
- func (s *CategoryTag) SetIcon(val string)
- func (s *CategoryTag) SetName(val string)
- func (s *CategoryTag) SetProjectType(val string)
- func (s *CategoryTag) UnmarshalJSON(data []byte) error
- type ChangeProjectIconExt
- type ChangeProjectIconNoContent
- type ChangeProjectIconParams
- type ChangeProjectIconReq
- type ChangeProjectIconReqEmptyBody
- type ChangeProjectIconReqImageBmp
- type ChangeProjectIconReqImageGIF
- type ChangeProjectIconReqImageJpeg
- type ChangeProjectIconReqImagePNG
- type ChangeProjectIconReqImageRgb
- type ChangeProjectIconReqImageSvg
- type ChangeProjectIconReqImageSvgz
- type ChangeProjectIconReqImageWEBP
- type ChangeProjectIconRes
- type ChangeUserIconNoContent
- type ChangeUserIconNotFound
- type ChangeUserIconParams
- type ChangeUserIconReq
- type ChangeUserIconReqEmptyBody
- type ChangeUserIconReqImageBmp
- type ChangeUserIconReqImageGIF
- type ChangeUserIconReqImageJpeg
- type ChangeUserIconReqImagePNG
- type ChangeUserIconReqImageRgb
- type ChangeUserIconReqImageSvg
- type ChangeUserIconReqImageSvgz
- type ChangeUserIconReqImageWEBP
- type ChangeUserIconRes
- type CheckProjectValidityNotFound
- type CheckProjectValidityParams
- type CheckProjectValidityRes
- type Client
- func (c *Client) AddGalleryImage(ctx context.Context, request AddGalleryImageReq, params AddGalleryImageParams) (AddGalleryImageRes, error)
- func (c *Client) AddTeamMember(ctx context.Context, request UserIdentifier, params AddTeamMemberParams) (AddTeamMemberRes, error)
- func (c *Client) CategoryList(ctx context.Context) ([]CategoryTag, error)
- func (c *Client) ChangeProjectIcon(ctx context.Context, request ChangeProjectIconReq, ...) (ChangeProjectIconRes, error)
- func (c *Client) ChangeUserIcon(ctx context.Context, request ChangeUserIconReq, params ChangeUserIconParams) (ChangeUserIconRes, error)
- func (c *Client) CheckProjectValidity(ctx context.Context, params CheckProjectValidityParams) (CheckProjectValidityRes, error)
- func (c *Client) CreateVersion(ctx context.Context, request OptCreateVersionBodyMultipart) (CreateVersionRes, error)
- func (c *Client) DeleteFileFromHash(ctx context.Context, params DeleteFileFromHashParams) (DeleteFileFromHashRes, error)
- func (c *Client) DeleteGalleryImage(ctx context.Context, params DeleteGalleryImageParams) (DeleteGalleryImageRes, error)
- func (c *Client) DeleteNotification(ctx context.Context, params DeleteNotificationParams) (DeleteNotificationRes, error)
- func (c *Client) DeleteNotifications(ctx context.Context, params DeleteNotificationsParams) (DeleteNotificationsRes, error)
- func (c *Client) DeleteProject(ctx context.Context, params DeleteProjectParams) (DeleteProjectRes, error)
- func (c *Client) DeleteProjectIcon(ctx context.Context, params DeleteProjectIconParams) (DeleteProjectIconRes, error)
- func (c *Client) DeleteTeamMember(ctx context.Context, params DeleteTeamMemberParams) (DeleteTeamMemberRes, error)
- func (c *Client) DeleteThreadMessage(ctx context.Context, params DeleteThreadMessageParams) (DeleteThreadMessageRes, error)
- func (c *Client) DeleteUserIcon(ctx context.Context, params DeleteUserIconParams) (DeleteUserIconRes, error)
- func (c *Client) DeleteVersion(ctx context.Context, params DeleteVersionParams) (DeleteVersionRes, error)
- func (c *Client) DonationPlatformList(ctx context.Context) ([]DonationPlatformTag, error)
- func (c *Client) FollowProject(ctx context.Context, params FollowProjectParams) (FollowProjectRes, error)
- func (c *Client) ForgeUpdates(ctx context.Context, params ForgeUpdatesParams) (ForgeUpdatesRes, error)
- func (c *Client) GetDependencies(ctx context.Context, params GetDependenciesParams) (GetDependenciesRes, error)
- func (c *Client) GetFollowedProjects(ctx context.Context, params GetFollowedProjectsParams) (GetFollowedProjectsRes, error)
- func (c *Client) GetLatestVersionFromHash(ctx context.Context, request OptGetLatestVersionFromHashBody, ...) (GetLatestVersionFromHashRes, error)
- func (c *Client) GetLatestVersionsFromHashes(ctx context.Context, request OptGetLatestVersionsFromHashesBody) (GetLatestVersionsFromHashesRes, error)
- func (c *Client) GetNotification(ctx context.Context, params GetNotificationParams) (GetNotificationRes, error)
- func (c *Client) GetNotifications(ctx context.Context, params GetNotificationsParams) (GetNotificationsRes, error)
- func (c *Client) GetOpenReports(ctx context.Context, params GetOpenReportsParams) (GetOpenReportsRes, error)
- func (c *Client) GetPayoutHistory(ctx context.Context, params GetPayoutHistoryParams) (GetPayoutHistoryRes, error)
- func (c *Client) GetProject(ctx context.Context, params GetProjectParams) (GetProjectRes, error)
- func (c *Client) GetProjectTeamMembers(ctx context.Context, params GetProjectTeamMembersParams) (GetProjectTeamMembersRes, error)
- func (c *Client) GetProjectVersions(ctx context.Context, params GetProjectVersionsParams) (GetProjectVersionsRes, error)
- func (c *Client) GetProjects(ctx context.Context, params GetProjectsParams) ([]Project, error)
- func (c *Client) GetReport(ctx context.Context, params GetReportParams) (GetReportRes, error)
- func (c *Client) GetReports(ctx context.Context, params GetReportsParams) (GetReportsRes, error)
- func (c *Client) GetTeamMembers(ctx context.Context, params GetTeamMembersParams) ([]TeamMember, error)
- func (c *Client) GetTeams(ctx context.Context, params GetTeamsParams) ([][]TeamMember, error)
- func (c *Client) GetThread(ctx context.Context, params GetThreadParams) (GetThreadRes, error)
- func (c *Client) GetThreads(ctx context.Context, params GetThreadsParams) (GetThreadsRes, error)
- func (c *Client) GetUser(ctx context.Context, params GetUserParams) (GetUserRes, error)
- func (c *Client) GetUserFromAuth(ctx context.Context) (GetUserFromAuthRes, error)
- func (c *Client) GetUserNotifications(ctx context.Context, params GetUserNotificationsParams) (GetUserNotificationsRes, error)
- func (c *Client) GetUserProjects(ctx context.Context, params GetUserProjectsParams) (GetUserProjectsRes, error)
- func (c *Client) GetUsers(ctx context.Context, params GetUsersParams) ([]User, error)
- func (c *Client) GetVersion(ctx context.Context, params GetVersionParams) (GetVersionRes, error)
- func (c *Client) GetVersionFromIdOrNumber(ctx context.Context, params GetVersionFromIdOrNumberParams) (GetVersionFromIdOrNumberRes, error)
- func (c *Client) GetVersions(ctx context.Context, params GetVersionsParams) ([]Version, error)
- func (c *Client) JoinTeam(ctx context.Context, params JoinTeamParams) (JoinTeamRes, error)
- func (c *Client) LicenseList(ctx context.Context) ([]LicenseTag, error)deprecated
- func (c *Client) LicenseText(ctx context.Context, params LicenseTextParams) (LicenseTextRes, error)
- func (c *Client) LoaderList(ctx context.Context) ([]LoaderTag, error)
- func (c *Client) ModifyGalleryImage(ctx context.Context, params ModifyGalleryImageParams) (ModifyGalleryImageRes, error)
- func (c *Client) ModifyProject(ctx context.Context, request OptEditableProject, params ModifyProjectParams) (ModifyProjectRes, error)
- func (c *Client) ModifyReport(ctx context.Context, request OptModifyReportReq, params ModifyReportParams) (ModifyReportRes, error)
- func (c *Client) ModifyTeamMember(ctx context.Context, request ModifyTeamMemberBody, ...) (ModifyTeamMemberRes, error)
- func (c *Client) ModifyUser(ctx context.Context, request OptEditableUser, params ModifyUserParams) (ModifyUserRes, error)
- func (c *Client) ModifyVersion(ctx context.Context, request OptEditableVersion, params ModifyVersionParams) (ModifyVersionRes, error)
- func (c *Client) PatchProjects(ctx context.Context, request OptPatchProjectsBody, params PatchProjectsParams) (PatchProjectsRes, error)
- func (c *Client) ProjectTypeList(ctx context.Context) ([]string, error)
- func (c *Client) RandomProjects(ctx context.Context, params RandomProjectsParams) (RandomProjectsRes, error)
- func (c *Client) ReadNotification(ctx context.Context, params ReadNotificationParams) (ReadNotificationRes, error)
- func (c *Client) ReadNotifications(ctx context.Context, params ReadNotificationsParams) (ReadNotificationsRes, error)
- func (c *Client) ReportTypeList(ctx context.Context) ([]string, error)
- func (c *Client) ScheduleProject(ctx context.Context, request OptSchedule, params ScheduleProjectParams) (ScheduleProjectRes, error)
- func (c *Client) ScheduleVersion(ctx context.Context, request OptSchedule, params ScheduleVersionParams) (ScheduleVersionRes, error)
- func (c *Client) SearchProjects(ctx context.Context, params SearchProjectsParams) (SearchProjectsRes, error)
- func (c *Client) SendThreadMessage(ctx context.Context, request OptThreadMessageBody, ...) (SendThreadMessageRes, error)
- func (c *Client) SideTypeList(ctx context.Context) ([]string, error)
- func (c *Client) Statistics(ctx context.Context) (*Statistics, error)
- func (c *Client) SubmitReport(ctx context.Context, request OptCreatableReport) (SubmitReportRes, error)
- func (c *Client) TransferTeamOwnership(ctx context.Context, request UserIdentifier, ...) (TransferTeamOwnershipRes, error)
- func (c *Client) UnfollowProject(ctx context.Context, params UnfollowProjectParams) (UnfollowProjectRes, error)
- func (c *Client) VersionFromHash(ctx context.Context, params VersionFromHashParams) (VersionFromHashRes, error)
- func (c *Client) VersionList(ctx context.Context) ([]GameVersionTag, error)
- func (c *Client) VersionsFromHashes(ctx context.Context, request OptHashList) (VersionsFromHashesRes, error)
- func (c *Client) WithdrawPayout(ctx context.Context, params WithdrawPayoutParams) (WithdrawPayoutRes, error)
- type ClientOption
- type CreatableReport
- func (s *CreatableReport) Decode(d *jx.Decoder) error
- func (s *CreatableReport) Encode(e *jx.Encoder)
- func (s *CreatableReport) GetBody() string
- func (s *CreatableReport) GetItemID() string
- func (s *CreatableReport) GetItemType() CreatableReportItemType
- func (s *CreatableReport) GetReportType() string
- func (s *CreatableReport) MarshalJSON() ([]byte, error)
- func (s *CreatableReport) SetBody(val string)
- func (s *CreatableReport) SetItemID(val string)
- func (s *CreatableReport) SetItemType(val CreatableReportItemType)
- func (s *CreatableReport) SetReportType(val string)
- func (s *CreatableReport) UnmarshalJSON(data []byte) error
- func (s *CreatableReport) Validate() error
- type CreatableReportItemType
- func (CreatableReportItemType) AllValues() []CreatableReportItemType
- func (s *CreatableReportItemType) Decode(d *jx.Decoder) error
- func (s CreatableReportItemType) Encode(e *jx.Encoder)
- func (s CreatableReportItemType) MarshalJSON() ([]byte, error)
- func (s CreatableReportItemType) MarshalText() ([]byte, error)
- func (s *CreatableReportItemType) UnmarshalJSON(data []byte) error
- func (s *CreatableReportItemType) UnmarshalText(data []byte) error
- func (s CreatableReportItemType) Validate() error
- type CreatableVersion
- func (s *CreatableVersion) Decode(d *jx.Decoder) error
- func (s *CreatableVersion) Encode(e *jx.Encoder)
- func (s *CreatableVersion) GetChangelog() OptNilString
- func (s *CreatableVersion) GetDependencies() []VersionDependency
- func (s *CreatableVersion) GetFeatured() bool
- func (s *CreatableVersion) GetFileParts() []string
- func (s *CreatableVersion) GetGameVersions() []string
- func (s *CreatableVersion) GetLoaders() []string
- func (s *CreatableVersion) GetName() string
- func (s *CreatableVersion) GetPrimaryFile() OptString
- func (s *CreatableVersion) GetProjectID() string
- func (s *CreatableVersion) GetRequestedStatus() OptNilCreatableVersionRequestedStatus
- func (s *CreatableVersion) GetStatus() OptCreatableVersionStatus
- func (s *CreatableVersion) GetVersionNumber() string
- func (s *CreatableVersion) GetVersionType() CreatableVersionVersionType
- func (s *CreatableVersion) MarshalJSON() ([]byte, error)
- func (s *CreatableVersion) SetChangelog(val OptNilString)
- func (s *CreatableVersion) SetDependencies(val []VersionDependency)
- func (s *CreatableVersion) SetFeatured(val bool)
- func (s *CreatableVersion) SetFileParts(val []string)
- func (s *CreatableVersion) SetGameVersions(val []string)
- func (s *CreatableVersion) SetLoaders(val []string)
- func (s *CreatableVersion) SetName(val string)
- func (s *CreatableVersion) SetPrimaryFile(val OptString)
- func (s *CreatableVersion) SetProjectID(val string)
- func (s *CreatableVersion) SetRequestedStatus(val OptNilCreatableVersionRequestedStatus)
- func (s *CreatableVersion) SetStatus(val OptCreatableVersionStatus)
- func (s *CreatableVersion) SetVersionNumber(val string)
- func (s *CreatableVersion) SetVersionType(val CreatableVersionVersionType)
- func (s *CreatableVersion) UnmarshalJSON(data []byte) error
- func (s *CreatableVersion) Validate() error
- type CreatableVersionRequestedStatus
- func (CreatableVersionRequestedStatus) AllValues() []CreatableVersionRequestedStatus
- func (s *CreatableVersionRequestedStatus) Decode(d *jx.Decoder) error
- func (s CreatableVersionRequestedStatus) Encode(e *jx.Encoder)
- func (s CreatableVersionRequestedStatus) MarshalJSON() ([]byte, error)
- func (s CreatableVersionRequestedStatus) MarshalText() ([]byte, error)
- func (s *CreatableVersionRequestedStatus) UnmarshalJSON(data []byte) error
- func (s *CreatableVersionRequestedStatus) UnmarshalText(data []byte) error
- func (s CreatableVersionRequestedStatus) Validate() error
- type CreatableVersionStatus
- func (CreatableVersionStatus) AllValues() []CreatableVersionStatus
- func (s *CreatableVersionStatus) Decode(d *jx.Decoder) error
- func (s CreatableVersionStatus) Encode(e *jx.Encoder)
- func (s CreatableVersionStatus) MarshalJSON() ([]byte, error)
- func (s CreatableVersionStatus) MarshalText() ([]byte, error)
- func (s *CreatableVersionStatus) UnmarshalJSON(data []byte) error
- func (s *CreatableVersionStatus) UnmarshalText(data []byte) error
- func (s CreatableVersionStatus) Validate() error
- type CreatableVersionVersionType
- func (CreatableVersionVersionType) AllValues() []CreatableVersionVersionType
- func (s *CreatableVersionVersionType) Decode(d *jx.Decoder) error
- func (s CreatableVersionVersionType) Encode(e *jx.Encoder)
- func (s CreatableVersionVersionType) MarshalJSON() ([]byte, error)
- func (s CreatableVersionVersionType) MarshalText() ([]byte, error)
- func (s *CreatableVersionVersionType) UnmarshalJSON(data []byte) error
- func (s *CreatableVersionVersionType) UnmarshalText(data []byte) error
- func (s CreatableVersionVersionType) Validate() error
- type CreateVersionBodyMultipart
- type CreateVersionRes
- type DeleteFileFromHashNoContent
- type DeleteFileFromHashNotFound
- type DeleteFileFromHashParams
- type DeleteFileFromHashRes
- type DeleteGalleryImageNoContent
- type DeleteGalleryImageParams
- type DeleteGalleryImageRes
- type DeleteNotificationNoContent
- type DeleteNotificationNotFound
- type DeleteNotificationParams
- type DeleteNotificationRes
- type DeleteNotificationsNoContent
- type DeleteNotificationsNotFound
- type DeleteNotificationsParams
- type DeleteNotificationsRes
- type DeleteProjectIconNoContent
- type DeleteProjectIconParams
- type DeleteProjectIconRes
- type DeleteProjectNoContent
- type DeleteProjectParams
- type DeleteProjectRes
- type DeleteTeamMemberNoContent
- type DeleteTeamMemberNotFound
- type DeleteTeamMemberParams
- type DeleteTeamMemberRes
- type DeleteThreadMessageNoContent
- type DeleteThreadMessageNotFound
- type DeleteThreadMessageParams
- type DeleteThreadMessageRes
- type DeleteUserIconNoContent
- type DeleteUserIconNotFound
- type DeleteUserIconParams
- type DeleteUserIconRes
- type DeleteVersionNoContent
- type DeleteVersionNotFound
- type DeleteVersionParams
- type DeleteVersionRes
- type DonationPlatformTag
- func (s *DonationPlatformTag) Decode(d *jx.Decoder) error
- func (s *DonationPlatformTag) Encode(e *jx.Encoder)
- func (s *DonationPlatformTag) GetName() string
- func (s *DonationPlatformTag) GetShort() string
- func (s *DonationPlatformTag) MarshalJSON() ([]byte, error)
- func (s *DonationPlatformTag) SetName(val string)
- func (s *DonationPlatformTag) SetShort(val string)
- func (s *DonationPlatformTag) UnmarshalJSON(data []byte) error
- type EditableFileType
- func (s *EditableFileType) Decode(d *jx.Decoder) error
- func (s *EditableFileType) Encode(e *jx.Encoder)
- func (s *EditableFileType) GetAlgorithm() string
- func (s *EditableFileType) GetFileType() NilEditableFileTypeFileType
- func (s *EditableFileType) GetHash() string
- func (s *EditableFileType) MarshalJSON() ([]byte, error)
- func (s *EditableFileType) SetAlgorithm(val string)
- func (s *EditableFileType) SetFileType(val NilEditableFileTypeFileType)
- func (s *EditableFileType) SetHash(val string)
- func (s *EditableFileType) UnmarshalJSON(data []byte) error
- func (s *EditableFileType) Validate() error
- type EditableFileTypeFileType
- func (EditableFileTypeFileType) AllValues() []EditableFileTypeFileType
- func (s *EditableFileTypeFileType) Decode(d *jx.Decoder) error
- func (s EditableFileTypeFileType) Encode(e *jx.Encoder)
- func (s EditableFileTypeFileType) MarshalJSON() ([]byte, error)
- func (s EditableFileTypeFileType) MarshalText() ([]byte, error)
- func (s *EditableFileTypeFileType) UnmarshalJSON(data []byte) error
- func (s *EditableFileTypeFileType) UnmarshalText(data []byte) error
- func (s EditableFileTypeFileType) Validate() error
- type EditableProject
- func (s *EditableProject) Decode(d *jx.Decoder) error
- func (s *EditableProject) Encode(e *jx.Encoder)
- func (s *EditableProject) GetAdditionalCategories() []string
- func (s *EditableProject) GetBody() OptString
- func (s *EditableProject) GetCategories() []string
- func (s *EditableProject) GetClientSide() OptEditableProjectClientSide
- func (s *EditableProject) GetDescription() OptString
- func (s *EditableProject) GetDiscordURL() OptNilString
- func (s *EditableProject) GetDonationUrls() []ProjectDonationURL
- func (s *EditableProject) GetIssuesURL() OptNilString
- func (s *EditableProject) GetLicenseID() OptString
- func (s *EditableProject) GetLicenseURL() OptNilString
- func (s *EditableProject) GetModerationMessage() OptNilString
- func (s *EditableProject) GetModerationMessageBody() OptNilString
- func (s *EditableProject) GetRequestedStatus() OptNilEditableProjectRequestedStatus
- func (s *EditableProject) GetServerSide() OptEditableProjectServerSide
- func (s *EditableProject) GetSlug() OptString
- func (s *EditableProject) GetSourceURL() OptNilString
- func (s *EditableProject) GetStatus() OptEditableProjectStatus
- func (s *EditableProject) GetTitle() OptString
- func (s *EditableProject) GetWikiURL() OptNilString
- func (s *EditableProject) MarshalJSON() ([]byte, error)
- func (s *EditableProject) SetAdditionalCategories(val []string)
- func (s *EditableProject) SetBody(val OptString)
- func (s *EditableProject) SetCategories(val []string)
- func (s *EditableProject) SetClientSide(val OptEditableProjectClientSide)
- func (s *EditableProject) SetDescription(val OptString)
- func (s *EditableProject) SetDiscordURL(val OptNilString)
- func (s *EditableProject) SetDonationUrls(val []ProjectDonationURL)
- func (s *EditableProject) SetIssuesURL(val OptNilString)
- func (s *EditableProject) SetLicenseID(val OptString)
- func (s *EditableProject) SetLicenseURL(val OptNilString)
- func (s *EditableProject) SetModerationMessage(val OptNilString)
- func (s *EditableProject) SetModerationMessageBody(val OptNilString)
- func (s *EditableProject) SetRequestedStatus(val OptNilEditableProjectRequestedStatus)
- func (s *EditableProject) SetServerSide(val OptEditableProjectServerSide)
- func (s *EditableProject) SetSlug(val OptString)
- func (s *EditableProject) SetSourceURL(val OptNilString)
- func (s *EditableProject) SetStatus(val OptEditableProjectStatus)
- func (s *EditableProject) SetTitle(val OptString)
- func (s *EditableProject) SetWikiURL(val OptNilString)
- func (s *EditableProject) UnmarshalJSON(data []byte) error
- func (s *EditableProject) Validate() error
- type EditableProjectClientSide
- func (EditableProjectClientSide) AllValues() []EditableProjectClientSide
- func (s *EditableProjectClientSide) Decode(d *jx.Decoder) error
- func (s EditableProjectClientSide) Encode(e *jx.Encoder)
- func (s EditableProjectClientSide) MarshalJSON() ([]byte, error)
- func (s EditableProjectClientSide) MarshalText() ([]byte, error)
- func (s *EditableProjectClientSide) UnmarshalJSON(data []byte) error
- func (s *EditableProjectClientSide) UnmarshalText(data []byte) error
- func (s EditableProjectClientSide) Validate() error
- type EditableProjectRequestedStatus
- func (EditableProjectRequestedStatus) AllValues() []EditableProjectRequestedStatus
- func (s *EditableProjectRequestedStatus) Decode(d *jx.Decoder) error
- func (s EditableProjectRequestedStatus) Encode(e *jx.Encoder)
- func (s EditableProjectRequestedStatus) MarshalJSON() ([]byte, error)
- func (s EditableProjectRequestedStatus) MarshalText() ([]byte, error)
- func (s *EditableProjectRequestedStatus) UnmarshalJSON(data []byte) error
- func (s *EditableProjectRequestedStatus) UnmarshalText(data []byte) error
- func (s EditableProjectRequestedStatus) Validate() error
- type EditableProjectServerSide
- func (EditableProjectServerSide) AllValues() []EditableProjectServerSide
- func (s *EditableProjectServerSide) Decode(d *jx.Decoder) error
- func (s EditableProjectServerSide) Encode(e *jx.Encoder)
- func (s EditableProjectServerSide) MarshalJSON() ([]byte, error)
- func (s EditableProjectServerSide) MarshalText() ([]byte, error)
- func (s *EditableProjectServerSide) UnmarshalJSON(data []byte) error
- func (s *EditableProjectServerSide) UnmarshalText(data []byte) error
- func (s EditableProjectServerSide) Validate() error
- type EditableProjectStatus
- func (EditableProjectStatus) AllValues() []EditableProjectStatus
- func (s *EditableProjectStatus) Decode(d *jx.Decoder) error
- func (s EditableProjectStatus) Encode(e *jx.Encoder)
- func (s EditableProjectStatus) MarshalJSON() ([]byte, error)
- func (s EditableProjectStatus) MarshalText() ([]byte, error)
- func (s *EditableProjectStatus) UnmarshalJSON(data []byte) error
- func (s *EditableProjectStatus) UnmarshalText(data []byte) error
- func (s EditableProjectStatus) Validate() error
- type EditableUser
- func (s *EditableUser) Decode(d *jx.Decoder) error
- func (s *EditableUser) Encode(e *jx.Encoder)
- func (s *EditableUser) GetBio() OptString
- func (s *EditableUser) GetEmail() OptNilString
- func (s *EditableUser) GetName() OptNilString
- func (s *EditableUser) GetPayoutData() OptNilUserPayoutData
- func (s *EditableUser) GetUsername() string
- func (s *EditableUser) MarshalJSON() ([]byte, error)
- func (s *EditableUser) SetBio(val OptString)
- func (s *EditableUser) SetEmail(val OptNilString)
- func (s *EditableUser) SetName(val OptNilString)
- func (s *EditableUser) SetPayoutData(val OptNilUserPayoutData)
- func (s *EditableUser) SetUsername(val string)
- func (s *EditableUser) UnmarshalJSON(data []byte) error
- func (s *EditableUser) Validate() error
- type EditableVersion
- func (s *EditableVersion) Decode(d *jx.Decoder) error
- func (s *EditableVersion) Encode(e *jx.Encoder)
- func (s *EditableVersion) GetChangelog() OptNilString
- func (s *EditableVersion) GetDependencies() []VersionDependency
- func (s *EditableVersion) GetFeatured() OptBool
- func (s *EditableVersion) GetFileTypes() []EditableFileType
- func (s *EditableVersion) GetGameVersions() []string
- func (s *EditableVersion) GetLoaders() []string
- func (s *EditableVersion) GetName() OptString
- func (s *EditableVersion) GetPrimaryFile() []string
- func (s *EditableVersion) GetRequestedStatus() OptNilEditableVersionRequestedStatus
- func (s *EditableVersion) GetStatus() OptEditableVersionStatus
- func (s *EditableVersion) GetVersionNumber() OptString
- func (s *EditableVersion) GetVersionType() OptEditableVersionVersionType
- func (s *EditableVersion) MarshalJSON() ([]byte, error)
- func (s *EditableVersion) SetChangelog(val OptNilString)
- func (s *EditableVersion) SetDependencies(val []VersionDependency)
- func (s *EditableVersion) SetFeatured(val OptBool)
- func (s *EditableVersion) SetFileTypes(val []EditableFileType)
- func (s *EditableVersion) SetGameVersions(val []string)
- func (s *EditableVersion) SetLoaders(val []string)
- func (s *EditableVersion) SetName(val OptString)
- func (s *EditableVersion) SetPrimaryFile(val []string)
- func (s *EditableVersion) SetRequestedStatus(val OptNilEditableVersionRequestedStatus)
- func (s *EditableVersion) SetStatus(val OptEditableVersionStatus)
- func (s *EditableVersion) SetVersionNumber(val OptString)
- func (s *EditableVersion) SetVersionType(val OptEditableVersionVersionType)
- func (s *EditableVersion) UnmarshalJSON(data []byte) error
- func (s *EditableVersion) Validate() error
- type EditableVersionRequestedStatus
- func (EditableVersionRequestedStatus) AllValues() []EditableVersionRequestedStatus
- func (s *EditableVersionRequestedStatus) Decode(d *jx.Decoder) error
- func (s EditableVersionRequestedStatus) Encode(e *jx.Encoder)
- func (s EditableVersionRequestedStatus) MarshalJSON() ([]byte, error)
- func (s EditableVersionRequestedStatus) MarshalText() ([]byte, error)
- func (s *EditableVersionRequestedStatus) UnmarshalJSON(data []byte) error
- func (s *EditableVersionRequestedStatus) UnmarshalText(data []byte) error
- func (s EditableVersionRequestedStatus) Validate() error
- type EditableVersionStatus
- func (EditableVersionStatus) AllValues() []EditableVersionStatus
- func (s *EditableVersionStatus) Decode(d *jx.Decoder) error
- func (s EditableVersionStatus) Encode(e *jx.Encoder)
- func (s EditableVersionStatus) MarshalJSON() ([]byte, error)
- func (s EditableVersionStatus) MarshalText() ([]byte, error)
- func (s *EditableVersionStatus) UnmarshalJSON(data []byte) error
- func (s *EditableVersionStatus) UnmarshalText(data []byte) error
- func (s EditableVersionStatus) Validate() error
- type EditableVersionVersionType
- func (EditableVersionVersionType) AllValues() []EditableVersionVersionType
- func (s *EditableVersionVersionType) Decode(d *jx.Decoder) error
- func (s EditableVersionVersionType) Encode(e *jx.Encoder)
- func (s EditableVersionVersionType) MarshalJSON() ([]byte, error)
- func (s EditableVersionVersionType) MarshalText() ([]byte, error)
- func (s *EditableVersionVersionType) UnmarshalJSON(data []byte) error
- func (s *EditableVersionVersionType) UnmarshalText(data []byte) error
- func (s EditableVersionVersionType) Validate() error
- type FollowProjectNoContent
- type FollowProjectParams
- type FollowProjectRes
- type ForgeUpdateCheckerPromos
- func (s *ForgeUpdateCheckerPromos) Decode(d *jx.Decoder) error
- func (s *ForgeUpdateCheckerPromos) Encode(e *jx.Encoder)
- func (s *ForgeUpdateCheckerPromos) GetVersionMinusLatest() OptString
- func (s *ForgeUpdateCheckerPromos) GetVersionMinusRecommended() OptString
- func (s *ForgeUpdateCheckerPromos) MarshalJSON() ([]byte, error)
- func (s *ForgeUpdateCheckerPromos) SetVersionMinusLatest(val OptString)
- func (s *ForgeUpdateCheckerPromos) SetVersionMinusRecommended(val OptString)
- func (s *ForgeUpdateCheckerPromos) UnmarshalJSON(data []byte) error
- type ForgeUpdates
- func (s *ForgeUpdates) Decode(d *jx.Decoder) error
- func (s *ForgeUpdates) Encode(e *jx.Encoder)
- func (s *ForgeUpdates) GetHomepage() OptString
- func (s *ForgeUpdates) GetPromos() OptForgeUpdateCheckerPromos
- func (s *ForgeUpdates) MarshalJSON() ([]byte, error)
- func (s *ForgeUpdates) SetHomepage(val OptString)
- func (s *ForgeUpdates) SetPromos(val OptForgeUpdateCheckerPromos)
- func (s *ForgeUpdates) UnmarshalJSON(data []byte) error
- type ForgeUpdatesParams
- type ForgeUpdatesRes
- type GalleryImage
- func (s *GalleryImage) Decode(d *jx.Decoder) error
- func (s *GalleryImage) Encode(e *jx.Encoder)
- func (s *GalleryImage) GetCreated() string
- func (s *GalleryImage) GetDescription() OptNilString
- func (s *GalleryImage) GetFeatured() bool
- func (s *GalleryImage) GetOrdering() OptInt
- func (s *GalleryImage) GetTitle() OptNilString
- func (s *GalleryImage) GetURL() string
- func (s *GalleryImage) MarshalJSON() ([]byte, error)
- func (s *GalleryImage) SetCreated(val string)
- func (s *GalleryImage) SetDescription(val OptNilString)
- func (s *GalleryImage) SetFeatured(val bool)
- func (s *GalleryImage) SetOrdering(val OptInt)
- func (s *GalleryImage) SetTitle(val OptNilString)
- func (s *GalleryImage) SetURL(val string)
- func (s *GalleryImage) UnmarshalJSON(data []byte) error
- type GameVersionTag
- func (s *GameVersionTag) Decode(d *jx.Decoder) error
- func (s *GameVersionTag) Encode(e *jx.Encoder)
- func (s *GameVersionTag) GetDate() string
- func (s *GameVersionTag) GetMajor() bool
- func (s *GameVersionTag) GetVersion() string
- func (s *GameVersionTag) GetVersionType() GameVersionTagVersionType
- func (s *GameVersionTag) MarshalJSON() ([]byte, error)
- func (s *GameVersionTag) SetDate(val string)
- func (s *GameVersionTag) SetMajor(val bool)
- func (s *GameVersionTag) SetVersion(val string)
- func (s *GameVersionTag) SetVersionType(val GameVersionTagVersionType)
- func (s *GameVersionTag) UnmarshalJSON(data []byte) error
- func (s *GameVersionTag) Validate() error
- type GameVersionTagVersionType
- func (GameVersionTagVersionType) AllValues() []GameVersionTagVersionType
- func (s *GameVersionTagVersionType) Decode(d *jx.Decoder) error
- func (s GameVersionTagVersionType) Encode(e *jx.Encoder)
- func (s GameVersionTagVersionType) MarshalJSON() ([]byte, error)
- func (s GameVersionTagVersionType) MarshalText() ([]byte, error)
- func (s *GameVersionTagVersionType) UnmarshalJSON(data []byte) error
- func (s *GameVersionTagVersionType) UnmarshalText(data []byte) error
- func (s GameVersionTagVersionType) Validate() error
- type GetDependenciesNotFound
- type GetDependenciesParams
- type GetDependenciesRes
- type GetFollowedProjectsNotFound
- type GetFollowedProjectsOKApplicationJSON
- func (s *GetFollowedProjectsOKApplicationJSON) Decode(d *jx.Decoder) error
- func (s GetFollowedProjectsOKApplicationJSON) Encode(e *jx.Encoder)
- func (s GetFollowedProjectsOKApplicationJSON) MarshalJSON() ([]byte, error)
- func (s *GetFollowedProjectsOKApplicationJSON) UnmarshalJSON(data []byte) error
- func (s GetFollowedProjectsOKApplicationJSON) Validate() error
- type GetFollowedProjectsParams
- type GetFollowedProjectsRes
- type GetLatestVersionFromHashBadRequest
- type GetLatestVersionFromHashBody
- func (s *GetLatestVersionFromHashBody) Decode(d *jx.Decoder) error
- func (s *GetLatestVersionFromHashBody) Encode(e *jx.Encoder)
- func (s *GetLatestVersionFromHashBody) GetGameVersions() []string
- func (s *GetLatestVersionFromHashBody) GetLoaders() []string
- func (s *GetLatestVersionFromHashBody) MarshalJSON() ([]byte, error)
- func (s *GetLatestVersionFromHashBody) SetGameVersions(val []string)
- func (s *GetLatestVersionFromHashBody) SetLoaders(val []string)
- func (s *GetLatestVersionFromHashBody) UnmarshalJSON(data []byte) error
- func (s *GetLatestVersionFromHashBody) Validate() error
- type GetLatestVersionFromHashNotFound
- type GetLatestVersionFromHashParams
- type GetLatestVersionFromHashRes
- type GetLatestVersionsFromHashesBadRequest
- type GetLatestVersionsFromHashesBody
- func (s *GetLatestVersionsFromHashesBody) Decode(d *jx.Decoder) error
- func (s *GetLatestVersionsFromHashesBody) Encode(e *jx.Encoder)
- func (s *GetLatestVersionsFromHashesBody) GetAlgorithm() GetLatestVersionsFromHashesBodyAlgorithm
- func (s *GetLatestVersionsFromHashesBody) GetGameVersions() []string
- func (s *GetLatestVersionsFromHashesBody) GetHashes() []string
- func (s *GetLatestVersionsFromHashesBody) GetLoaders() []string
- func (s *GetLatestVersionsFromHashesBody) MarshalJSON() ([]byte, error)
- func (s *GetLatestVersionsFromHashesBody) SetAlgorithm(val GetLatestVersionsFromHashesBodyAlgorithm)
- func (s *GetLatestVersionsFromHashesBody) SetGameVersions(val []string)
- func (s *GetLatestVersionsFromHashesBody) SetHashes(val []string)
- func (s *GetLatestVersionsFromHashesBody) SetLoaders(val []string)
- func (s *GetLatestVersionsFromHashesBody) UnmarshalJSON(data []byte) error
- func (s *GetLatestVersionsFromHashesBody) Validate() error
- type GetLatestVersionsFromHashesBodyAlgorithm
- func (GetLatestVersionsFromHashesBodyAlgorithm) AllValues() []GetLatestVersionsFromHashesBodyAlgorithm
- func (s *GetLatestVersionsFromHashesBodyAlgorithm) Decode(d *jx.Decoder) error
- func (s GetLatestVersionsFromHashesBodyAlgorithm) Encode(e *jx.Encoder)
- func (s GetLatestVersionsFromHashesBodyAlgorithm) MarshalJSON() ([]byte, error)
- func (s GetLatestVersionsFromHashesBodyAlgorithm) MarshalText() ([]byte, error)
- func (s *GetLatestVersionsFromHashesBodyAlgorithm) UnmarshalJSON(data []byte) error
- func (s *GetLatestVersionsFromHashesBodyAlgorithm) UnmarshalText(data []byte) error
- func (s GetLatestVersionsFromHashesBodyAlgorithm) Validate() error
- type GetLatestVersionsFromHashesRes
- type GetNotificationNotFound
- type GetNotificationParams
- type GetNotificationRes
- type GetNotificationsNotFound
- type GetNotificationsOKApplicationJSON
- func (s *GetNotificationsOKApplicationJSON) Decode(d *jx.Decoder) error
- func (s GetNotificationsOKApplicationJSON) Encode(e *jx.Encoder)
- func (s GetNotificationsOKApplicationJSON) MarshalJSON() ([]byte, error)
- func (s *GetNotificationsOKApplicationJSON) UnmarshalJSON(data []byte) error
- func (s GetNotificationsOKApplicationJSON) Validate() error
- type GetNotificationsParams
- type GetNotificationsRes
- type GetOpenReportsNotFound
- type GetOpenReportsOKApplicationJSON
- func (s *GetOpenReportsOKApplicationJSON) Decode(d *jx.Decoder) error
- func (s GetOpenReportsOKApplicationJSON) Encode(e *jx.Encoder)
- func (s GetOpenReportsOKApplicationJSON) MarshalJSON() ([]byte, error)
- func (s *GetOpenReportsOKApplicationJSON) UnmarshalJSON(data []byte) error
- func (s GetOpenReportsOKApplicationJSON) Validate() error
- type GetOpenReportsParams
- type GetOpenReportsRes
- type GetPayoutHistoryNotFound
- type GetPayoutHistoryParams
- type GetPayoutHistoryRes
- type GetProjectNotFound
- type GetProjectParams
- type GetProjectRes
- type GetProjectTeamMembersNotFound
- type GetProjectTeamMembersOKApplicationJSON
- func (s *GetProjectTeamMembersOKApplicationJSON) Decode(d *jx.Decoder) error
- func (s GetProjectTeamMembersOKApplicationJSON) Encode(e *jx.Encoder)
- func (s GetProjectTeamMembersOKApplicationJSON) MarshalJSON() ([]byte, error)
- func (s *GetProjectTeamMembersOKApplicationJSON) UnmarshalJSON(data []byte) error
- func (s GetProjectTeamMembersOKApplicationJSON) Validate() error
- type GetProjectTeamMembersParams
- type GetProjectTeamMembersRes
- type GetProjectVersionsNotFound
- type GetProjectVersionsOKApplicationJSON
- func (s *GetProjectVersionsOKApplicationJSON) Decode(d *jx.Decoder) error
- func (s GetProjectVersionsOKApplicationJSON) Encode(e *jx.Encoder)
- func (s GetProjectVersionsOKApplicationJSON) MarshalJSON() ([]byte, error)
- func (s *GetProjectVersionsOKApplicationJSON) UnmarshalJSON(data []byte) error
- func (s GetProjectVersionsOKApplicationJSON) Validate() error
- type GetProjectVersionsParams
- type GetProjectVersionsRes
- type GetProjectsParams
- type GetReportNotFound
- type GetReportParams
- type GetReportRes
- type GetReportsNotFound
- type GetReportsOKApplicationJSON
- func (s *GetReportsOKApplicationJSON) Decode(d *jx.Decoder) error
- func (s GetReportsOKApplicationJSON) Encode(e *jx.Encoder)
- func (s GetReportsOKApplicationJSON) MarshalJSON() ([]byte, error)
- func (s *GetReportsOKApplicationJSON) UnmarshalJSON(data []byte) error
- func (s GetReportsOKApplicationJSON) Validate() error
- type GetReportsParams
- type GetReportsRes
- type GetTeamMembersParams
- type GetTeamsParams
- type GetThreadNotFound
- type GetThreadParams
- type GetThreadRes
- type GetThreadsNotFound
- type GetThreadsOKApplicationJSON
- func (s *GetThreadsOKApplicationJSON) Decode(d *jx.Decoder) error
- func (s GetThreadsOKApplicationJSON) Encode(e *jx.Encoder)
- func (s GetThreadsOKApplicationJSON) MarshalJSON() ([]byte, error)
- func (s *GetThreadsOKApplicationJSON) UnmarshalJSON(data []byte) error
- func (s GetThreadsOKApplicationJSON) Validate() error
- type GetThreadsParams
- type GetThreadsRes
- type GetUserFromAuthRes
- type GetUserNotFound
- type GetUserNotificationsNotFound
- type GetUserNotificationsOKApplicationJSON
- func (s *GetUserNotificationsOKApplicationJSON) Decode(d *jx.Decoder) error
- func (s GetUserNotificationsOKApplicationJSON) Encode(e *jx.Encoder)
- func (s GetUserNotificationsOKApplicationJSON) MarshalJSON() ([]byte, error)
- func (s *GetUserNotificationsOKApplicationJSON) UnmarshalJSON(data []byte) error
- func (s GetUserNotificationsOKApplicationJSON) Validate() error
- type GetUserNotificationsParams
- type GetUserNotificationsRes
- type GetUserParams
- type GetUserProjectsNotFound
- type GetUserProjectsOKApplicationJSON
- func (s *GetUserProjectsOKApplicationJSON) Decode(d *jx.Decoder) error
- func (s GetUserProjectsOKApplicationJSON) Encode(e *jx.Encoder)
- func (s GetUserProjectsOKApplicationJSON) MarshalJSON() ([]byte, error)
- func (s *GetUserProjectsOKApplicationJSON) UnmarshalJSON(data []byte) error
- func (s GetUserProjectsOKApplicationJSON) Validate() error
- type GetUserProjectsParams
- type GetUserProjectsRes
- type GetUserRes
- type GetUsersParams
- type GetVersionFromIdOrNumberNotFound
- type GetVersionFromIdOrNumberParams
- type GetVersionFromIdOrNumberRes
- type GetVersionNotFound
- type GetVersionParams
- type GetVersionRes
- type GetVersionsParams
- type HashList
- func (s *HashList) Decode(d *jx.Decoder) error
- func (s *HashList) Encode(e *jx.Encoder)
- func (s *HashList) GetAlgorithm() HashListAlgorithm
- func (s *HashList) GetHashes() []string
- func (s *HashList) MarshalJSON() ([]byte, error)
- func (s *HashList) SetAlgorithm(val HashListAlgorithm)
- func (s *HashList) SetHashes(val []string)
- func (s *HashList) UnmarshalJSON(data []byte) error
- func (s *HashList) Validate() error
- type HashListAlgorithm
- func (HashListAlgorithm) AllValues() []HashListAlgorithm
- func (s *HashListAlgorithm) Decode(d *jx.Decoder) error
- func (s HashListAlgorithm) Encode(e *jx.Encoder)
- func (s HashListAlgorithm) MarshalJSON() ([]byte, error)
- func (s HashListAlgorithm) MarshalText() ([]byte, error)
- func (s *HashListAlgorithm) UnmarshalJSON(data []byte) error
- func (s *HashListAlgorithm) UnmarshalText(data []byte) error
- func (s HashListAlgorithm) Validate() error
- type HashVersionMap
- type InvalidInputError
- func (s *InvalidInputError) Decode(d *jx.Decoder) error
- func (s *InvalidInputError) Encode(e *jx.Encoder)
- func (s *InvalidInputError) GetDescription() string
- func (s *InvalidInputError) GetError() string
- func (s *InvalidInputError) MarshalJSON() ([]byte, error)
- func (s *InvalidInputError) SetDescription(val string)
- func (s *InvalidInputError) SetError(val string)
- func (s *InvalidInputError) UnmarshalJSON(data []byte) error
- type Invoker
- type JoinTeamNoContent
- type JoinTeamNotFound
- type JoinTeamParams
- type JoinTeamRes
- type License
- func (s *License) Decode(d *jx.Decoder) error
- func (s *License) Encode(e *jx.Encoder)
- func (s *License) GetBody() OptString
- func (s *License) GetTitle() OptString
- func (s *License) MarshalJSON() ([]byte, error)
- func (s *License) SetBody(val OptString)
- func (s *License) SetTitle(val OptString)
- func (s *License) UnmarshalJSON(data []byte) error
- type LicenseTag
- func (s *LicenseTag) Decode(d *jx.Decoder) error
- func (s *LicenseTag) Encode(e *jx.Encoder)
- func (s *LicenseTag) GetName() string
- func (s *LicenseTag) GetShort() string
- func (s *LicenseTag) MarshalJSON() ([]byte, error)
- func (s *LicenseTag) SetName(val string)
- func (s *LicenseTag) SetShort(val string)
- func (s *LicenseTag) UnmarshalJSON(data []byte) error
- type LicenseTextParams
- type LicenseTextRes
- type LoaderTag
- func (s *LoaderTag) Decode(d *jx.Decoder) error
- func (s *LoaderTag) Encode(e *jx.Encoder)
- func (s *LoaderTag) GetIcon() string
- func (s *LoaderTag) GetName() string
- func (s *LoaderTag) GetSupportedProjectTypes() []string
- func (s *LoaderTag) MarshalJSON() ([]byte, error)
- func (s *LoaderTag) SetIcon(val string)
- func (s *LoaderTag) SetName(val string)
- func (s *LoaderTag) SetSupportedProjectTypes(val []string)
- func (s *LoaderTag) UnmarshalJSON(data []byte) error
- func (s *LoaderTag) Validate() error
- type ModeratorMessagedeprecated
- func (s *ModeratorMessage) Decode(d *jx.Decoder) error
- func (s *ModeratorMessage) Encode(e *jx.Encoder)
- func (s *ModeratorMessage) GetBody() OptNilString
- func (s *ModeratorMessage) GetMessage() OptString
- func (s *ModeratorMessage) MarshalJSON() ([]byte, error)
- func (s *ModeratorMessage) SetBody(val OptNilString)
- func (s *ModeratorMessage) SetMessage(val OptString)
- func (s *ModeratorMessage) UnmarshalJSON(data []byte) error
- type ModifyGalleryImageNoContent
- type ModifyGalleryImageNotFound
- type ModifyGalleryImageParams
- type ModifyGalleryImageRes
- type ModifyProjectNoContent
- type ModifyProjectNotFound
- type ModifyProjectParams
- type ModifyProjectRes
- type ModifyReportNoContent
- type ModifyReportNotFound
- type ModifyReportParams
- type ModifyReportReq
- func (s *ModifyReportReq) Decode(d *jx.Decoder) error
- func (s *ModifyReportReq) Encode(e *jx.Encoder)
- func (s *ModifyReportReq) GetBody() OptString
- func (s *ModifyReportReq) GetClosed() OptBool
- func (s *ModifyReportReq) MarshalJSON() ([]byte, error)
- func (s *ModifyReportReq) SetBody(val OptString)
- func (s *ModifyReportReq) SetClosed(val OptBool)
- func (s *ModifyReportReq) UnmarshalJSON(data []byte) error
- type ModifyReportRes
- type ModifyTeamMemberBody
- type ModifyTeamMemberNoContent
- type ModifyTeamMemberNotFound
- type ModifyTeamMemberParams
- type ModifyTeamMemberRes
- type ModifyUserNoContent
- type ModifyUserNotFound
- type ModifyUserParams
- type ModifyUserRes
- type ModifyVersionNoContent
- type ModifyVersionNotFound
- type ModifyVersionParams
- type ModifyVersionRes
- type NilEditableFileTypeFileType
- func (o *NilEditableFileTypeFileType) Decode(d *jx.Decoder) error
- func (o NilEditableFileTypeFileType) Encode(e *jx.Encoder)
- func (o NilEditableFileTypeFileType) Get() (v EditableFileTypeFileType, ok bool)
- func (o NilEditableFileTypeFileType) IsNull() bool
- func (s NilEditableFileTypeFileType) MarshalJSON() ([]byte, error)
- func (o NilEditableFileTypeFileType) Or(d EditableFileTypeFileType) EditableFileTypeFileType
- func (o *NilEditableFileTypeFileType) SetTo(v EditableFileTypeFileType)
- func (o *NilEditableFileTypeFileType) SetToNull()
- func (s *NilEditableFileTypeFileType) UnmarshalJSON(data []byte) error
- type NilGalleryImage
- func (o *NilGalleryImage) Decode(d *jx.Decoder) error
- func (o NilGalleryImage) Encode(e *jx.Encoder)
- func (o NilGalleryImage) Get() (v GalleryImage, ok bool)
- func (o NilGalleryImage) IsNull() bool
- func (s NilGalleryImage) MarshalJSON() ([]byte, error)
- func (o NilGalleryImage) Or(d GalleryImage) GalleryImage
- func (o *NilGalleryImage) SetTo(v GalleryImage)
- func (o *NilGalleryImage) SetToNull()
- func (s *NilGalleryImage) UnmarshalJSON(data []byte) error
- type Notification
- func (s *Notification) Decode(d *jx.Decoder) error
- func (s *Notification) Encode(e *jx.Encoder)
- func (s *Notification) GetActions() []NotificationAction
- func (s *Notification) GetCreated() string
- func (s *Notification) GetID() string
- func (s *Notification) GetLink() string
- func (s *Notification) GetRead() bool
- func (s *Notification) GetText() string
- func (s *Notification) GetTitle() string
- func (s *Notification) GetType() OptNilNotificationType
- func (s *Notification) GetUserID() string
- func (s *Notification) MarshalJSON() ([]byte, error)
- func (s *Notification) SetActions(val []NotificationAction)
- func (s *Notification) SetCreated(val string)
- func (s *Notification) SetID(val string)
- func (s *Notification) SetLink(val string)
- func (s *Notification) SetRead(val bool)
- func (s *Notification) SetText(val string)
- func (s *Notification) SetTitle(val string)
- func (s *Notification) SetType(val OptNilNotificationType)
- func (s *Notification) SetUserID(val string)
- func (s *Notification) UnmarshalJSON(data []byte) error
- func (s *Notification) Validate() error
- type NotificationAction
- func (s *NotificationAction) Decode(d *jx.Decoder) error
- func (s *NotificationAction) Encode(e *jx.Encoder)
- func (s *NotificationAction) GetActionRoute() []string
- func (s *NotificationAction) GetTitle() OptString
- func (s *NotificationAction) MarshalJSON() ([]byte, error)
- func (s *NotificationAction) SetActionRoute(val []string)
- func (s *NotificationAction) SetTitle(val OptString)
- func (s *NotificationAction) UnmarshalJSON(data []byte) error
- type NotificationType
- func (NotificationType) AllValues() []NotificationType
- func (s *NotificationType) Decode(d *jx.Decoder) error
- func (s NotificationType) Encode(e *jx.Encoder)
- func (s NotificationType) MarshalJSON() ([]byte, error)
- func (s NotificationType) MarshalText() ([]byte, error)
- func (s *NotificationType) UnmarshalJSON(data []byte) error
- func (s *NotificationType) UnmarshalText(data []byte) error
- func (s NotificationType) Validate() error
- type OperationName
- type OptBool
- func (o *OptBool) Decode(d *jx.Decoder) error
- func (o OptBool) Encode(e *jx.Encoder)
- func (o OptBool) Get() (v bool, ok bool)
- func (o OptBool) IsSet() bool
- func (s OptBool) MarshalJSON() ([]byte, error)
- func (o OptBool) Or(d bool) bool
- func (o *OptBool) Reset()
- func (o *OptBool) SetTo(v bool)
- func (s *OptBool) UnmarshalJSON(data []byte) error
- type OptCreatableReport
- func (o *OptCreatableReport) Decode(d *jx.Decoder) error
- func (o OptCreatableReport) Encode(e *jx.Encoder)
- func (o OptCreatableReport) Get() (v CreatableReport, ok bool)
- func (o OptCreatableReport) IsSet() bool
- func (s OptCreatableReport) MarshalJSON() ([]byte, error)
- func (o OptCreatableReport) Or(d CreatableReport) CreatableReport
- func (o *OptCreatableReport) Reset()
- func (o *OptCreatableReport) SetTo(v CreatableReport)
- func (s *OptCreatableReport) UnmarshalJSON(data []byte) error
- type OptCreatableVersionStatus
- func (o *OptCreatableVersionStatus) Decode(d *jx.Decoder) error
- func (o OptCreatableVersionStatus) Encode(e *jx.Encoder)
- func (o OptCreatableVersionStatus) Get() (v CreatableVersionStatus, ok bool)
- func (o OptCreatableVersionStatus) IsSet() bool
- func (s OptCreatableVersionStatus) MarshalJSON() ([]byte, error)
- func (o OptCreatableVersionStatus) Or(d CreatableVersionStatus) CreatableVersionStatus
- func (o *OptCreatableVersionStatus) Reset()
- func (o *OptCreatableVersionStatus) SetTo(v CreatableVersionStatus)
- func (s *OptCreatableVersionStatus) UnmarshalJSON(data []byte) error
- type OptCreateVersionBodyMultipart
- func (o OptCreateVersionBodyMultipart) Get() (v CreateVersionBodyMultipart, ok bool)
- func (o OptCreateVersionBodyMultipart) IsSet() bool
- func (o OptCreateVersionBodyMultipart) Or(d CreateVersionBodyMultipart) CreateVersionBodyMultipart
- func (o *OptCreateVersionBodyMultipart) Reset()
- func (o *OptCreateVersionBodyMultipart) SetTo(v CreateVersionBodyMultipart)
- type OptEditableProject
- func (o *OptEditableProject) Decode(d *jx.Decoder) error
- func (o OptEditableProject) Encode(e *jx.Encoder)
- func (o OptEditableProject) Get() (v EditableProject, ok bool)
- func (o OptEditableProject) IsSet() bool
- func (s OptEditableProject) MarshalJSON() ([]byte, error)
- func (o OptEditableProject) Or(d EditableProject) EditableProject
- func (o *OptEditableProject) Reset()
- func (o *OptEditableProject) SetTo(v EditableProject)
- func (s *OptEditableProject) UnmarshalJSON(data []byte) error
- type OptEditableProjectClientSide
- func (o *OptEditableProjectClientSide) Decode(d *jx.Decoder) error
- func (o OptEditableProjectClientSide) Encode(e *jx.Encoder)
- func (o OptEditableProjectClientSide) Get() (v EditableProjectClientSide, ok bool)
- func (o OptEditableProjectClientSide) IsSet() bool
- func (s OptEditableProjectClientSide) MarshalJSON() ([]byte, error)
- func (o OptEditableProjectClientSide) Or(d EditableProjectClientSide) EditableProjectClientSide
- func (o *OptEditableProjectClientSide) Reset()
- func (o *OptEditableProjectClientSide) SetTo(v EditableProjectClientSide)
- func (s *OptEditableProjectClientSide) UnmarshalJSON(data []byte) error
- type OptEditableProjectServerSide
- func (o *OptEditableProjectServerSide) Decode(d *jx.Decoder) error
- func (o OptEditableProjectServerSide) Encode(e *jx.Encoder)
- func (o OptEditableProjectServerSide) Get() (v EditableProjectServerSide, ok bool)
- func (o OptEditableProjectServerSide) IsSet() bool
- func (s OptEditableProjectServerSide) MarshalJSON() ([]byte, error)
- func (o OptEditableProjectServerSide) Or(d EditableProjectServerSide) EditableProjectServerSide
- func (o *OptEditableProjectServerSide) Reset()
- func (o *OptEditableProjectServerSide) SetTo(v EditableProjectServerSide)
- func (s *OptEditableProjectServerSide) UnmarshalJSON(data []byte) error
- type OptEditableProjectStatus
- func (o *OptEditableProjectStatus) Decode(d *jx.Decoder) error
- func (o OptEditableProjectStatus) Encode(e *jx.Encoder)
- func (o OptEditableProjectStatus) Get() (v EditableProjectStatus, ok bool)
- func (o OptEditableProjectStatus) IsSet() bool
- func (s OptEditableProjectStatus) MarshalJSON() ([]byte, error)
- func (o OptEditableProjectStatus) Or(d EditableProjectStatus) EditableProjectStatus
- func (o *OptEditableProjectStatus) Reset()
- func (o *OptEditableProjectStatus) SetTo(v EditableProjectStatus)
- func (s *OptEditableProjectStatus) UnmarshalJSON(data []byte) error
- type OptEditableUser
- func (o *OptEditableUser) Decode(d *jx.Decoder) error
- func (o OptEditableUser) Encode(e *jx.Encoder)
- func (o OptEditableUser) Get() (v EditableUser, ok bool)
- func (o OptEditableUser) IsSet() bool
- func (s OptEditableUser) MarshalJSON() ([]byte, error)
- func (o OptEditableUser) Or(d EditableUser) EditableUser
- func (o *OptEditableUser) Reset()
- func (o *OptEditableUser) SetTo(v EditableUser)
- func (s *OptEditableUser) UnmarshalJSON(data []byte) error
- type OptEditableVersion
- func (o *OptEditableVersion) Decode(d *jx.Decoder) error
- func (o OptEditableVersion) Encode(e *jx.Encoder)
- func (o OptEditableVersion) Get() (v EditableVersion, ok bool)
- func (o OptEditableVersion) IsSet() bool
- func (s OptEditableVersion) MarshalJSON() ([]byte, error)
- func (o OptEditableVersion) Or(d EditableVersion) EditableVersion
- func (o *OptEditableVersion) Reset()
- func (o *OptEditableVersion) SetTo(v EditableVersion)
- func (s *OptEditableVersion) UnmarshalJSON(data []byte) error
- type OptEditableVersionStatus
- func (o *OptEditableVersionStatus) Decode(d *jx.Decoder) error
- func (o OptEditableVersionStatus) Encode(e *jx.Encoder)
- func (o OptEditableVersionStatus) Get() (v EditableVersionStatus, ok bool)
- func (o OptEditableVersionStatus) IsSet() bool
- func (s OptEditableVersionStatus) MarshalJSON() ([]byte, error)
- func (o OptEditableVersionStatus) Or(d EditableVersionStatus) EditableVersionStatus
- func (o *OptEditableVersionStatus) Reset()
- func (o *OptEditableVersionStatus) SetTo(v EditableVersionStatus)
- func (s *OptEditableVersionStatus) UnmarshalJSON(data []byte) error
- type OptEditableVersionVersionType
- func (o *OptEditableVersionVersionType) Decode(d *jx.Decoder) error
- func (o OptEditableVersionVersionType) Encode(e *jx.Encoder)
- func (o OptEditableVersionVersionType) Get() (v EditableVersionVersionType, ok bool)
- func (o OptEditableVersionVersionType) IsSet() bool
- func (s OptEditableVersionVersionType) MarshalJSON() ([]byte, error)
- func (o OptEditableVersionVersionType) Or(d EditableVersionVersionType) EditableVersionVersionType
- func (o *OptEditableVersionVersionType) Reset()
- func (o *OptEditableVersionVersionType) SetTo(v EditableVersionVersionType)
- func (s *OptEditableVersionVersionType) UnmarshalJSON(data []byte) error
- type OptForgeUpdateCheckerPromos
- func (o *OptForgeUpdateCheckerPromos) Decode(d *jx.Decoder) error
- func (o OptForgeUpdateCheckerPromos) Encode(e *jx.Encoder)
- func (o OptForgeUpdateCheckerPromos) Get() (v ForgeUpdateCheckerPromos, ok bool)
- func (o OptForgeUpdateCheckerPromos) IsSet() bool
- func (s OptForgeUpdateCheckerPromos) MarshalJSON() ([]byte, error)
- func (o OptForgeUpdateCheckerPromos) Or(d ForgeUpdateCheckerPromos) ForgeUpdateCheckerPromos
- func (o *OptForgeUpdateCheckerPromos) Reset()
- func (o *OptForgeUpdateCheckerPromos) SetTo(v ForgeUpdateCheckerPromos)
- func (s *OptForgeUpdateCheckerPromos) UnmarshalJSON(data []byte) error
- type OptGetLatestVersionFromHashBody
- func (o *OptGetLatestVersionFromHashBody) Decode(d *jx.Decoder) error
- func (o OptGetLatestVersionFromHashBody) Encode(e *jx.Encoder)
- func (o OptGetLatestVersionFromHashBody) Get() (v GetLatestVersionFromHashBody, ok bool)
- func (o OptGetLatestVersionFromHashBody) IsSet() bool
- func (s OptGetLatestVersionFromHashBody) MarshalJSON() ([]byte, error)
- func (o OptGetLatestVersionFromHashBody) Or(d GetLatestVersionFromHashBody) GetLatestVersionFromHashBody
- func (o *OptGetLatestVersionFromHashBody) Reset()
- func (o *OptGetLatestVersionFromHashBody) SetTo(v GetLatestVersionFromHashBody)
- func (s *OptGetLatestVersionFromHashBody) UnmarshalJSON(data []byte) error
- type OptGetLatestVersionsFromHashesBody
- func (o *OptGetLatestVersionsFromHashesBody) Decode(d *jx.Decoder) error
- func (o OptGetLatestVersionsFromHashesBody) Encode(e *jx.Encoder)
- func (o OptGetLatestVersionsFromHashesBody) Get() (v GetLatestVersionsFromHashesBody, ok bool)
- func (o OptGetLatestVersionsFromHashesBody) IsSet() bool
- func (s OptGetLatestVersionsFromHashesBody) MarshalJSON() ([]byte, error)
- func (o OptGetLatestVersionsFromHashesBody) Or(d GetLatestVersionsFromHashesBody) GetLatestVersionsFromHashesBody
- func (o *OptGetLatestVersionsFromHashesBody) Reset()
- func (o *OptGetLatestVersionsFromHashesBody) SetTo(v GetLatestVersionsFromHashesBody)
- func (s *OptGetLatestVersionsFromHashesBody) UnmarshalJSON(data []byte) error
- type OptHashList
- func (o *OptHashList) Decode(d *jx.Decoder) error
- func (o OptHashList) Encode(e *jx.Encoder)
- func (o OptHashList) Get() (v HashList, ok bool)
- func (o OptHashList) IsSet() bool
- func (s OptHashList) MarshalJSON() ([]byte, error)
- func (o OptHashList) Or(d HashList) HashList
- func (o *OptHashList) Reset()
- func (o *OptHashList) SetTo(v HashList)
- func (s *OptHashList) UnmarshalJSON(data []byte) error
- type OptInt
- func (o *OptInt) Decode(d *jx.Decoder) error
- func (o OptInt) Encode(e *jx.Encoder)
- func (o OptInt) Get() (v int, ok bool)
- func (o OptInt) IsSet() bool
- func (s OptInt) MarshalJSON() ([]byte, error)
- func (o OptInt) Or(d int) int
- func (o *OptInt) Reset()
- func (o *OptInt) SetTo(v int)
- func (s *OptInt) UnmarshalJSON(data []byte) error
- type OptModifyReportReq
- func (o *OptModifyReportReq) Decode(d *jx.Decoder) error
- func (o OptModifyReportReq) Encode(e *jx.Encoder)
- func (o OptModifyReportReq) Get() (v ModifyReportReq, ok bool)
- func (o OptModifyReportReq) IsSet() bool
- func (s OptModifyReportReq) MarshalJSON() ([]byte, error)
- func (o OptModifyReportReq) Or(d ModifyReportReq) ModifyReportReq
- func (o *OptModifyReportReq) Reset()
- func (o *OptModifyReportReq) SetTo(v ModifyReportReq)
- func (s *OptModifyReportReq) UnmarshalJSON(data []byte) error
- type OptNilBool
- func (o *OptNilBool) Decode(d *jx.Decoder) error
- func (o OptNilBool) Encode(e *jx.Encoder)
- func (o OptNilBool) Get() (v bool, ok bool)
- func (o OptNilBool) IsNull() bool
- func (o OptNilBool) IsSet() bool
- func (s OptNilBool) MarshalJSON() ([]byte, error)
- func (o OptNilBool) Or(d bool) bool
- func (o *OptNilBool) Reset()
- func (o *OptNilBool) SetTo(v bool)
- func (o *OptNilBool) SetToNull()
- func (s *OptNilBool) UnmarshalJSON(data []byte) error
- type OptNilCreatableVersionRequestedStatus
- func (o *OptNilCreatableVersionRequestedStatus) Decode(d *jx.Decoder) error
- func (o OptNilCreatableVersionRequestedStatus) Encode(e *jx.Encoder)
- func (o OptNilCreatableVersionRequestedStatus) Get() (v CreatableVersionRequestedStatus, ok bool)
- func (o OptNilCreatableVersionRequestedStatus) IsNull() bool
- func (o OptNilCreatableVersionRequestedStatus) IsSet() bool
- func (s OptNilCreatableVersionRequestedStatus) MarshalJSON() ([]byte, error)
- func (o OptNilCreatableVersionRequestedStatus) Or(d CreatableVersionRequestedStatus) CreatableVersionRequestedStatus
- func (o *OptNilCreatableVersionRequestedStatus) Reset()
- func (o *OptNilCreatableVersionRequestedStatus) SetTo(v CreatableVersionRequestedStatus)
- func (o *OptNilCreatableVersionRequestedStatus) SetToNull()
- func (s *OptNilCreatableVersionRequestedStatus) UnmarshalJSON(data []byte) error
- type OptNilEditableProjectRequestedStatus
- func (o *OptNilEditableProjectRequestedStatus) Decode(d *jx.Decoder) error
- func (o OptNilEditableProjectRequestedStatus) Encode(e *jx.Encoder)
- func (o OptNilEditableProjectRequestedStatus) Get() (v EditableProjectRequestedStatus, ok bool)
- func (o OptNilEditableProjectRequestedStatus) IsNull() bool
- func (o OptNilEditableProjectRequestedStatus) IsSet() bool
- func (s OptNilEditableProjectRequestedStatus) MarshalJSON() ([]byte, error)
- func (o OptNilEditableProjectRequestedStatus) Or(d EditableProjectRequestedStatus) EditableProjectRequestedStatus
- func (o *OptNilEditableProjectRequestedStatus) Reset()
- func (o *OptNilEditableProjectRequestedStatus) SetTo(v EditableProjectRequestedStatus)
- func (o *OptNilEditableProjectRequestedStatus) SetToNull()
- func (s *OptNilEditableProjectRequestedStatus) UnmarshalJSON(data []byte) error
- type OptNilEditableVersionRequestedStatus
- func (o *OptNilEditableVersionRequestedStatus) Decode(d *jx.Decoder) error
- func (o OptNilEditableVersionRequestedStatus) Encode(e *jx.Encoder)
- func (o OptNilEditableVersionRequestedStatus) Get() (v EditableVersionRequestedStatus, ok bool)
- func (o OptNilEditableVersionRequestedStatus) IsNull() bool
- func (o OptNilEditableVersionRequestedStatus) IsSet() bool
- func (s OptNilEditableVersionRequestedStatus) MarshalJSON() ([]byte, error)
- func (o OptNilEditableVersionRequestedStatus) Or(d EditableVersionRequestedStatus) EditableVersionRequestedStatus
- func (o *OptNilEditableVersionRequestedStatus) Reset()
- func (o *OptNilEditableVersionRequestedStatus) SetTo(v EditableVersionRequestedStatus)
- func (o *OptNilEditableVersionRequestedStatus) SetToNull()
- func (s *OptNilEditableVersionRequestedStatus) UnmarshalJSON(data []byte) error
- type OptNilInt
- func (o *OptNilInt) Decode(d *jx.Decoder) error
- func (o OptNilInt) Encode(e *jx.Encoder)
- func (o OptNilInt) Get() (v int, ok bool)
- func (o OptNilInt) IsNull() bool
- func (o OptNilInt) IsSet() bool
- func (s OptNilInt) MarshalJSON() ([]byte, error)
- func (o OptNilInt) Or(d int) int
- func (o *OptNilInt) Reset()
- func (o *OptNilInt) SetTo(v int)
- func (o *OptNilInt) SetToNull()
- func (s *OptNilInt) UnmarshalJSON(data []byte) error
- type OptNilModeratorMessage
- func (o *OptNilModeratorMessage) Decode(d *jx.Decoder) error
- func (o OptNilModeratorMessage) Encode(e *jx.Encoder)
- func (o OptNilModeratorMessage) Get() (v ModeratorMessage, ok bool)
- func (o OptNilModeratorMessage) IsNull() bool
- func (o OptNilModeratorMessage) IsSet() bool
- func (s OptNilModeratorMessage) MarshalJSON() ([]byte, error)
- func (o OptNilModeratorMessage) Or(d ModeratorMessage) ModeratorMessage
- func (o *OptNilModeratorMessage) Reset()
- func (o *OptNilModeratorMessage) SetTo(v ModeratorMessage)
- func (o *OptNilModeratorMessage) SetToNull()
- func (s *OptNilModeratorMessage) UnmarshalJSON(data []byte) error
- type OptNilNotificationType
- func (o *OptNilNotificationType) Decode(d *jx.Decoder) error
- func (o OptNilNotificationType) Encode(e *jx.Encoder)
- func (o OptNilNotificationType) Get() (v NotificationType, ok bool)
- func (o OptNilNotificationType) IsNull() bool
- func (o OptNilNotificationType) IsSet() bool
- func (s OptNilNotificationType) MarshalJSON() ([]byte, error)
- func (o OptNilNotificationType) Or(d NotificationType) NotificationType
- func (o *OptNilNotificationType) Reset()
- func (o *OptNilNotificationType) SetTo(v NotificationType)
- func (o *OptNilNotificationType) SetToNull()
- func (s *OptNilNotificationType) UnmarshalJSON(data []byte) error
- type OptNilProjectRequestedStatus
- func (o *OptNilProjectRequestedStatus) Decode(d *jx.Decoder) error
- func (o OptNilProjectRequestedStatus) Encode(e *jx.Encoder)
- func (o OptNilProjectRequestedStatus) Get() (v ProjectRequestedStatus, ok bool)
- func (o OptNilProjectRequestedStatus) IsNull() bool
- func (o OptNilProjectRequestedStatus) IsSet() bool
- func (s OptNilProjectRequestedStatus) MarshalJSON() ([]byte, error)
- func (o OptNilProjectRequestedStatus) Or(d ProjectRequestedStatus) ProjectRequestedStatus
- func (o *OptNilProjectRequestedStatus) Reset()
- func (o *OptNilProjectRequestedStatus) SetTo(v ProjectRequestedStatus)
- func (o *OptNilProjectRequestedStatus) SetToNull()
- func (s *OptNilProjectRequestedStatus) UnmarshalJSON(data []byte) error
- type OptNilString
- func (o *OptNilString) Decode(d *jx.Decoder) error
- func (o OptNilString) Encode(e *jx.Encoder)
- func (o OptNilString) Get() (v string, ok bool)
- func (o OptNilString) IsNull() bool
- func (o OptNilString) IsSet() bool
- func (s OptNilString) MarshalJSON() ([]byte, error)
- func (o OptNilString) Or(d string) string
- func (o *OptNilString) Reset()
- func (o *OptNilString) SetTo(v string)
- func (o *OptNilString) SetToNull()
- func (s *OptNilString) UnmarshalJSON(data []byte) error
- type OptNilStringArray
- func (o *OptNilStringArray) Decode(d *jx.Decoder) error
- func (o OptNilStringArray) Encode(e *jx.Encoder)
- func (o OptNilStringArray) Get() (v []string, ok bool)
- func (o OptNilStringArray) IsNull() bool
- func (o OptNilStringArray) IsSet() bool
- func (s OptNilStringArray) MarshalJSON() ([]byte, error)
- func (o OptNilStringArray) Or(d []string) []string
- func (o *OptNilStringArray) Reset()
- func (o *OptNilStringArray) SetTo(v []string)
- func (o *OptNilStringArray) SetToNull()
- func (s *OptNilStringArray) UnmarshalJSON(data []byte) error
- type OptNilUserPayoutData
- func (o *OptNilUserPayoutData) Decode(d *jx.Decoder) error
- func (o OptNilUserPayoutData) Encode(e *jx.Encoder)
- func (o OptNilUserPayoutData) Get() (v UserPayoutData, ok bool)
- func (o OptNilUserPayoutData) IsNull() bool
- func (o OptNilUserPayoutData) IsSet() bool
- func (s OptNilUserPayoutData) MarshalJSON() ([]byte, error)
- func (o OptNilUserPayoutData) Or(d UserPayoutData) UserPayoutData
- func (o *OptNilUserPayoutData) Reset()
- func (o *OptNilUserPayoutData) SetTo(v UserPayoutData)
- func (o *OptNilUserPayoutData) SetToNull()
- func (s *OptNilUserPayoutData) UnmarshalJSON(data []byte) error
- type OptNilVersionFileFileType
- func (o *OptNilVersionFileFileType) Decode(d *jx.Decoder) error
- func (o OptNilVersionFileFileType) Encode(e *jx.Encoder)
- func (o OptNilVersionFileFileType) Get() (v VersionFileFileType, ok bool)
- func (o OptNilVersionFileFileType) IsNull() bool
- func (o OptNilVersionFileFileType) IsSet() bool
- func (s OptNilVersionFileFileType) MarshalJSON() ([]byte, error)
- func (o OptNilVersionFileFileType) Or(d VersionFileFileType) VersionFileFileType
- func (o *OptNilVersionFileFileType) Reset()
- func (o *OptNilVersionFileFileType) SetTo(v VersionFileFileType)
- func (o *OptNilVersionFileFileType) SetToNull()
- func (s *OptNilVersionFileFileType) UnmarshalJSON(data []byte) error
- type OptNilVersionRequestedStatus
- func (o *OptNilVersionRequestedStatus) Decode(d *jx.Decoder) error
- func (o OptNilVersionRequestedStatus) Encode(e *jx.Encoder)
- func (o OptNilVersionRequestedStatus) Get() (v VersionRequestedStatus, ok bool)
- func (o OptNilVersionRequestedStatus) IsNull() bool
- func (o OptNilVersionRequestedStatus) IsSet() bool
- func (s OptNilVersionRequestedStatus) MarshalJSON() ([]byte, error)
- func (o OptNilVersionRequestedStatus) Or(d VersionRequestedStatus) VersionRequestedStatus
- func (o *OptNilVersionRequestedStatus) Reset()
- func (o *OptNilVersionRequestedStatus) SetTo(v VersionRequestedStatus)
- func (o *OptNilVersionRequestedStatus) SetToNull()
- func (s *OptNilVersionRequestedStatus) UnmarshalJSON(data []byte) error
- type OptPatchProjectsBody
- func (o *OptPatchProjectsBody) Decode(d *jx.Decoder) error
- func (o OptPatchProjectsBody) Encode(e *jx.Encoder)
- func (o OptPatchProjectsBody) Get() (v PatchProjectsBody, ok bool)
- func (o OptPatchProjectsBody) IsSet() bool
- func (s OptPatchProjectsBody) MarshalJSON() ([]byte, error)
- func (o OptPatchProjectsBody) Or(d PatchProjectsBody) PatchProjectsBody
- func (o *OptPatchProjectsBody) Reset()
- func (o *OptPatchProjectsBody) SetTo(v PatchProjectsBody)
- func (s *OptPatchProjectsBody) UnmarshalJSON(data []byte) error
- type OptProjectLicense
- func (o *OptProjectLicense) Decode(d *jx.Decoder) error
- func (o OptProjectLicense) Encode(e *jx.Encoder)
- func (o OptProjectLicense) Get() (v ProjectLicense, ok bool)
- func (o OptProjectLicense) IsSet() bool
- func (s OptProjectLicense) MarshalJSON() ([]byte, error)
- func (o OptProjectLicense) Or(d ProjectLicense) ProjectLicense
- func (o *OptProjectLicense) Reset()
- func (o *OptProjectLicense) SetTo(v ProjectLicense)
- func (s *OptProjectLicense) UnmarshalJSON(data []byte) error
- type OptProjectMonetizationStatus
- func (o *OptProjectMonetizationStatus) Decode(d *jx.Decoder) error
- func (o OptProjectMonetizationStatus) Encode(e *jx.Encoder)
- func (o OptProjectMonetizationStatus) Get() (v ProjectMonetizationStatus, ok bool)
- func (o OptProjectMonetizationStatus) IsSet() bool
- func (s OptProjectMonetizationStatus) MarshalJSON() ([]byte, error)
- func (o OptProjectMonetizationStatus) Or(d ProjectMonetizationStatus) ProjectMonetizationStatus
- func (o *OptProjectMonetizationStatus) Reset()
- func (o *OptProjectMonetizationStatus) SetTo(v ProjectMonetizationStatus)
- func (s *OptProjectMonetizationStatus) UnmarshalJSON(data []byte) error
- type OptProjectResultMonetizationStatus
- func (o *OptProjectResultMonetizationStatus) Decode(d *jx.Decoder) error
- func (o OptProjectResultMonetizationStatus) Encode(e *jx.Encoder)
- func (o OptProjectResultMonetizationStatus) Get() (v ProjectResultMonetizationStatus, ok bool)
- func (o OptProjectResultMonetizationStatus) IsSet() bool
- func (s OptProjectResultMonetizationStatus) MarshalJSON() ([]byte, error)
- func (o OptProjectResultMonetizationStatus) Or(d ProjectResultMonetizationStatus) ProjectResultMonetizationStatus
- func (o *OptProjectResultMonetizationStatus) Reset()
- func (o *OptProjectResultMonetizationStatus) SetTo(v ProjectResultMonetizationStatus)
- func (s *OptProjectResultMonetizationStatus) UnmarshalJSON(data []byte) error
- type OptSchedule
- func (o *OptSchedule) Decode(d *jx.Decoder) error
- func (o OptSchedule) Encode(e *jx.Encoder)
- func (o OptSchedule) Get() (v Schedule, ok bool)
- func (o OptSchedule) IsSet() bool
- func (s OptSchedule) MarshalJSON() ([]byte, error)
- func (o OptSchedule) Or(d Schedule) Schedule
- func (o *OptSchedule) Reset()
- func (o *OptSchedule) SetTo(v Schedule)
- func (s *OptSchedule) UnmarshalJSON(data []byte) error
- type OptSearchProjectsIndex
- type OptString
- func (o *OptString) Decode(d *jx.Decoder) error
- func (o OptString) Encode(e *jx.Encoder)
- func (o OptString) Get() (v string, ok bool)
- func (o OptString) IsSet() bool
- func (s OptString) MarshalJSON() ([]byte, error)
- func (o OptString) Or(d string) string
- func (o *OptString) Reset()
- func (o *OptString) SetTo(v string)
- func (s *OptString) UnmarshalJSON(data []byte) error
- type OptThreadMessageBody
- func (o *OptThreadMessageBody) Decode(d *jx.Decoder) error
- func (o OptThreadMessageBody) Encode(e *jx.Encoder)
- func (o OptThreadMessageBody) Get() (v ThreadMessageBody, ok bool)
- func (o OptThreadMessageBody) IsSet() bool
- func (s OptThreadMessageBody) MarshalJSON() ([]byte, error)
- func (o OptThreadMessageBody) Or(d ThreadMessageBody) ThreadMessageBody
- func (o *OptThreadMessageBody) Reset()
- func (o *OptThreadMessageBody) SetTo(v ThreadMessageBody)
- func (s *OptThreadMessageBody) UnmarshalJSON(data []byte) error
- type OptThreadMessageBodyNewStatus
- func (o *OptThreadMessageBodyNewStatus) Decode(d *jx.Decoder) error
- func (o OptThreadMessageBodyNewStatus) Encode(e *jx.Encoder)
- func (o OptThreadMessageBodyNewStatus) Get() (v ThreadMessageBodyNewStatus, ok bool)
- func (o OptThreadMessageBodyNewStatus) IsSet() bool
- func (s OptThreadMessageBodyNewStatus) MarshalJSON() ([]byte, error)
- func (o OptThreadMessageBodyNewStatus) Or(d ThreadMessageBodyNewStatus) ThreadMessageBodyNewStatus
- func (o *OptThreadMessageBodyNewStatus) Reset()
- func (o *OptThreadMessageBodyNewStatus) SetTo(v ThreadMessageBodyNewStatus)
- func (s *OptThreadMessageBodyNewStatus) UnmarshalJSON(data []byte) error
- type OptThreadMessageBodyOldStatus
- func (o *OptThreadMessageBodyOldStatus) Decode(d *jx.Decoder) error
- func (o OptThreadMessageBodyOldStatus) Encode(e *jx.Encoder)
- func (o OptThreadMessageBodyOldStatus) Get() (v ThreadMessageBodyOldStatus, ok bool)
- func (o OptThreadMessageBodyOldStatus) IsSet() bool
- func (s OptThreadMessageBodyOldStatus) MarshalJSON() ([]byte, error)
- func (o OptThreadMessageBodyOldStatus) Or(d ThreadMessageBodyOldStatus) ThreadMessageBodyOldStatus
- func (o *OptThreadMessageBodyOldStatus) Reset()
- func (o *OptThreadMessageBodyOldStatus) SetTo(v ThreadMessageBodyOldStatus)
- func (s *OptThreadMessageBodyOldStatus) UnmarshalJSON(data []byte) error
- type OptUserPayoutDataPayoutWallet
- func (o *OptUserPayoutDataPayoutWallet) Decode(d *jx.Decoder) error
- func (o OptUserPayoutDataPayoutWallet) Encode(e *jx.Encoder)
- func (o OptUserPayoutDataPayoutWallet) Get() (v UserPayoutDataPayoutWallet, ok bool)
- func (o OptUserPayoutDataPayoutWallet) IsSet() bool
- func (s OptUserPayoutDataPayoutWallet) MarshalJSON() ([]byte, error)
- func (o OptUserPayoutDataPayoutWallet) Or(d UserPayoutDataPayoutWallet) UserPayoutDataPayoutWallet
- func (o *OptUserPayoutDataPayoutWallet) Reset()
- func (o *OptUserPayoutDataPayoutWallet) SetTo(v UserPayoutDataPayoutWallet)
- func (s *OptUserPayoutDataPayoutWallet) UnmarshalJSON(data []byte) error
- type OptUserPayoutDataPayoutWalletType
- func (o *OptUserPayoutDataPayoutWalletType) Decode(d *jx.Decoder) error
- func (o OptUserPayoutDataPayoutWalletType) Encode(e *jx.Encoder)
- func (o OptUserPayoutDataPayoutWalletType) Get() (v UserPayoutDataPayoutWalletType, ok bool)
- func (o OptUserPayoutDataPayoutWalletType) IsSet() bool
- func (s OptUserPayoutDataPayoutWalletType) MarshalJSON() ([]byte, error)
- func (o OptUserPayoutDataPayoutWalletType) Or(d UserPayoutDataPayoutWalletType) UserPayoutDataPayoutWalletType
- func (o *OptUserPayoutDataPayoutWalletType) Reset()
- func (o *OptUserPayoutDataPayoutWalletType) SetTo(v UserPayoutDataPayoutWalletType)
- func (s *OptUserPayoutDataPayoutWalletType) UnmarshalJSON(data []byte) error
- type OptVersionStatus
- func (o *OptVersionStatus) Decode(d *jx.Decoder) error
- func (o OptVersionStatus) Encode(e *jx.Encoder)
- func (o OptVersionStatus) Get() (v VersionStatus, ok bool)
- func (o OptVersionStatus) IsSet() bool
- func (s OptVersionStatus) MarshalJSON() ([]byte, error)
- func (o OptVersionStatus) Or(d VersionStatus) VersionStatus
- func (o *OptVersionStatus) Reset()
- func (o *OptVersionStatus) SetTo(v VersionStatus)
- func (s *OptVersionStatus) UnmarshalJSON(data []byte) error
- type Option
- type PatchProjectsBody
- func (s *PatchProjectsBody) Decode(d *jx.Decoder) error
- func (s *PatchProjectsBody) Encode(e *jx.Encoder)
- func (s *PatchProjectsBody) GetAddAdditionalCategories() []string
- func (s *PatchProjectsBody) GetAddCategories() []string
- func (s *PatchProjectsBody) GetAddDonationUrls() []ProjectDonationURL
- func (s *PatchProjectsBody) GetAdditionalCategories() []string
- func (s *PatchProjectsBody) GetCategories() []string
- func (s *PatchProjectsBody) GetDiscordURL() OptNilString
- func (s *PatchProjectsBody) GetDonationUrls() []ProjectDonationURL
- func (s *PatchProjectsBody) GetIssuesURL() OptNilString
- func (s *PatchProjectsBody) GetRemoveAdditionalCategories() []string
- func (s *PatchProjectsBody) GetRemoveCategories() []string
- func (s *PatchProjectsBody) GetRemoveDonationUrls() []ProjectDonationURL
- func (s *PatchProjectsBody) GetSourceURL() OptNilString
- func (s *PatchProjectsBody) GetWikiURL() OptNilString
- func (s *PatchProjectsBody) MarshalJSON() ([]byte, error)
- func (s *PatchProjectsBody) SetAddAdditionalCategories(val []string)
- func (s *PatchProjectsBody) SetAddCategories(val []string)
- func (s *PatchProjectsBody) SetAddDonationUrls(val []ProjectDonationURL)
- func (s *PatchProjectsBody) SetAdditionalCategories(val []string)
- func (s *PatchProjectsBody) SetCategories(val []string)
- func (s *PatchProjectsBody) SetDiscordURL(val OptNilString)
- func (s *PatchProjectsBody) SetDonationUrls(val []ProjectDonationURL)
- func (s *PatchProjectsBody) SetIssuesURL(val OptNilString)
- func (s *PatchProjectsBody) SetRemoveAdditionalCategories(val []string)
- func (s *PatchProjectsBody) SetRemoveCategories(val []string)
- func (s *PatchProjectsBody) SetRemoveDonationUrls(val []ProjectDonationURL)
- func (s *PatchProjectsBody) SetSourceURL(val OptNilString)
- func (s *PatchProjectsBody) SetWikiURL(val OptNilString)
- func (s *PatchProjectsBody) UnmarshalJSON(data []byte) error
- type PatchProjectsNoContent
- type PatchProjectsParams
- type PatchProjectsRes
- type Project
- func (s *Project) Decode(d *jx.Decoder) error
- func (s *Project) Encode(e *jx.Encoder)
- func (s *Project) GetAdditionalCategories() []string
- func (s *Project) GetApproved() OptNilString
- func (s *Project) GetBody() string
- func (s *Project) GetBodyURL() OptNilString
- func (s *Project) GetCategories() []string
- func (s *Project) GetClientSide() ProjectClientSide
- func (s *Project) GetColor() OptNilInt
- func (s *Project) GetDescription() string
- func (s *Project) GetDiscordURL() OptNilString
- func (s *Project) GetDonationUrls() []ProjectDonationURL
- func (s *Project) GetDownloads() int
- func (s *Project) GetFollowers() int
- func (s *Project) GetGallery() []NilGalleryImage
- func (s *Project) GetGameVersions() []string
- func (s *Project) GetID() string
- func (s *Project) GetIconURL() OptNilString
- func (s *Project) GetIssuesURL() OptNilString
- func (s *Project) GetLicense() OptProjectLicense
- func (s *Project) GetLoaders() []string
- func (s *Project) GetModeratorMessage() OptNilModeratorMessage
- func (s *Project) GetMonetizationStatus() OptProjectMonetizationStatus
- func (s *Project) GetProjectType() ProjectProjectType
- func (s *Project) GetPublished() string
- func (s *Project) GetQueued() OptNilString
- func (s *Project) GetRequestedStatus() OptNilProjectRequestedStatus
- func (s *Project) GetServerSide() ProjectServerSide
- func (s *Project) GetSlug() string
- func (s *Project) GetSourceURL() OptNilString
- func (s *Project) GetStatus() ProjectStatus
- func (s *Project) GetTeam() string
- func (s *Project) GetThreadID() OptString
- func (s *Project) GetTitle() string
- func (s *Project) GetUpdated() string
- func (s *Project) GetVersions() []string
- func (s *Project) GetWikiURL() OptNilString
- func (s *Project) MarshalJSON() ([]byte, error)
- func (s *Project) SetAdditionalCategories(val []string)
- func (s *Project) SetApproved(val OptNilString)
- func (s *Project) SetBody(val string)
- func (s *Project) SetBodyURL(val OptNilString)
- func (s *Project) SetCategories(val []string)
- func (s *Project) SetClientSide(val ProjectClientSide)
- func (s *Project) SetColor(val OptNilInt)
- func (s *Project) SetDescription(val string)
- func (s *Project) SetDiscordURL(val OptNilString)
- func (s *Project) SetDonationUrls(val []ProjectDonationURL)
- func (s *Project) SetDownloads(val int)
- func (s *Project) SetFollowers(val int)
- func (s *Project) SetGallery(val []NilGalleryImage)
- func (s *Project) SetGameVersions(val []string)
- func (s *Project) SetID(val string)
- func (s *Project) SetIconURL(val OptNilString)
- func (s *Project) SetIssuesURL(val OptNilString)
- func (s *Project) SetLicense(val OptProjectLicense)
- func (s *Project) SetLoaders(val []string)
- func (s *Project) SetModeratorMessage(val OptNilModeratorMessage)
- func (s *Project) SetMonetizationStatus(val OptProjectMonetizationStatus)
- func (s *Project) SetProjectType(val ProjectProjectType)
- func (s *Project) SetPublished(val string)
- func (s *Project) SetQueued(val OptNilString)
- func (s *Project) SetRequestedStatus(val OptNilProjectRequestedStatus)
- func (s *Project) SetServerSide(val ProjectServerSide)
- func (s *Project) SetSlug(val string)
- func (s *Project) SetSourceURL(val OptNilString)
- func (s *Project) SetStatus(val ProjectStatus)
- func (s *Project) SetTeam(val string)
- func (s *Project) SetThreadID(val OptString)
- func (s *Project) SetTitle(val string)
- func (s *Project) SetUpdated(val string)
- func (s *Project) SetVersions(val []string)
- func (s *Project) SetWikiURL(val OptNilString)
- func (s *Project) UnmarshalJSON(data []byte) error
- func (s *Project) Validate() error
- type ProjectClientSide
- func (ProjectClientSide) AllValues() []ProjectClientSide
- func (s *ProjectClientSide) Decode(d *jx.Decoder) error
- func (s ProjectClientSide) Encode(e *jx.Encoder)
- func (s ProjectClientSide) MarshalJSON() ([]byte, error)
- func (s ProjectClientSide) MarshalText() ([]byte, error)
- func (s *ProjectClientSide) UnmarshalJSON(data []byte) error
- func (s *ProjectClientSide) UnmarshalText(data []byte) error
- func (s ProjectClientSide) Validate() error
- type ProjectDependencyList
- func (s *ProjectDependencyList) Decode(d *jx.Decoder) error
- func (s *ProjectDependencyList) Encode(e *jx.Encoder)
- func (s *ProjectDependencyList) GetProjects() []Project
- func (s *ProjectDependencyList) GetVersions() []Version
- func (s *ProjectDependencyList) MarshalJSON() ([]byte, error)
- func (s *ProjectDependencyList) SetProjects(val []Project)
- func (s *ProjectDependencyList) SetVersions(val []Version)
- func (s *ProjectDependencyList) UnmarshalJSON(data []byte) error
- func (s *ProjectDependencyList) Validate() error
- type ProjectDonationURL
- func (s *ProjectDonationURL) Decode(d *jx.Decoder) error
- func (s *ProjectDonationURL) Encode(e *jx.Encoder)
- func (s *ProjectDonationURL) GetID() OptString
- func (s *ProjectDonationURL) GetPlatform() OptString
- func (s *ProjectDonationURL) GetURL() OptString
- func (s *ProjectDonationURL) MarshalJSON() ([]byte, error)
- func (s *ProjectDonationURL) SetID(val OptString)
- func (s *ProjectDonationURL) SetPlatform(val OptString)
- func (s *ProjectDonationURL) SetURL(val OptString)
- func (s *ProjectDonationURL) UnmarshalJSON(data []byte) error
- type ProjectIdentifier
- func (s *ProjectIdentifier) Decode(d *jx.Decoder) error
- func (s *ProjectIdentifier) Encode(e *jx.Encoder)
- func (s *ProjectIdentifier) GetID() OptString
- func (s *ProjectIdentifier) MarshalJSON() ([]byte, error)
- func (s *ProjectIdentifier) SetID(val OptString)
- func (s *ProjectIdentifier) UnmarshalJSON(data []byte) error
- type ProjectLicense
- func (s *ProjectLicense) Decode(d *jx.Decoder) error
- func (s *ProjectLicense) Encode(e *jx.Encoder)
- func (s *ProjectLicense) GetID() OptString
- func (s *ProjectLicense) GetName() OptString
- func (s *ProjectLicense) GetURL() OptNilString
- func (s *ProjectLicense) MarshalJSON() ([]byte, error)
- func (s *ProjectLicense) SetID(val OptString)
- func (s *ProjectLicense) SetName(val OptString)
- func (s *ProjectLicense) SetURL(val OptNilString)
- func (s *ProjectLicense) UnmarshalJSON(data []byte) error
- type ProjectMonetizationStatus
- func (ProjectMonetizationStatus) AllValues() []ProjectMonetizationStatus
- func (s *ProjectMonetizationStatus) Decode(d *jx.Decoder) error
- func (s ProjectMonetizationStatus) Encode(e *jx.Encoder)
- func (s ProjectMonetizationStatus) MarshalJSON() ([]byte, error)
- func (s ProjectMonetizationStatus) MarshalText() ([]byte, error)
- func (s *ProjectMonetizationStatus) UnmarshalJSON(data []byte) error
- func (s *ProjectMonetizationStatus) UnmarshalText(data []byte) error
- func (s ProjectMonetizationStatus) Validate() error
- type ProjectProjectType
- func (ProjectProjectType) AllValues() []ProjectProjectType
- func (s *ProjectProjectType) Decode(d *jx.Decoder) error
- func (s ProjectProjectType) Encode(e *jx.Encoder)
- func (s ProjectProjectType) MarshalJSON() ([]byte, error)
- func (s ProjectProjectType) MarshalText() ([]byte, error)
- func (s *ProjectProjectType) UnmarshalJSON(data []byte) error
- func (s *ProjectProjectType) UnmarshalText(data []byte) error
- func (s ProjectProjectType) Validate() error
- type ProjectRequestedStatus
- func (ProjectRequestedStatus) AllValues() []ProjectRequestedStatus
- func (s *ProjectRequestedStatus) Decode(d *jx.Decoder) error
- func (s ProjectRequestedStatus) Encode(e *jx.Encoder)
- func (s ProjectRequestedStatus) MarshalJSON() ([]byte, error)
- func (s ProjectRequestedStatus) MarshalText() ([]byte, error)
- func (s *ProjectRequestedStatus) UnmarshalJSON(data []byte) error
- func (s *ProjectRequestedStatus) UnmarshalText(data []byte) error
- func (s ProjectRequestedStatus) Validate() error
- type ProjectResult
- func (s *ProjectResult) Decode(d *jx.Decoder) error
- func (s *ProjectResult) Encode(e *jx.Encoder)
- func (s *ProjectResult) GetAuthor() string
- func (s *ProjectResult) GetCategories() []string
- func (s *ProjectResult) GetClientSide() ProjectResultClientSide
- func (s *ProjectResult) GetColor() OptNilInt
- func (s *ProjectResult) GetDateCreated() string
- func (s *ProjectResult) GetDateModified() string
- func (s *ProjectResult) GetDescription() string
- func (s *ProjectResult) GetDisplayCategories() []string
- func (s *ProjectResult) GetDownloads() int
- func (s *ProjectResult) GetFeaturedGallery() OptNilString
- func (s *ProjectResult) GetFollows() int
- func (s *ProjectResult) GetGallery() []string
- func (s *ProjectResult) GetIconURL() OptNilString
- func (s *ProjectResult) GetLatestVersion() OptString
- func (s *ProjectResult) GetLicense() string
- func (s *ProjectResult) GetMonetizationStatus() OptProjectResultMonetizationStatus
- func (s *ProjectResult) GetProjectID() string
- func (s *ProjectResult) GetProjectType() ProjectResultProjectType
- func (s *ProjectResult) GetServerSide() ProjectResultServerSide
- func (s *ProjectResult) GetSlug() string
- func (s *ProjectResult) GetThreadID() OptString
- func (s *ProjectResult) GetTitle() string
- func (s *ProjectResult) GetVersions() []string
- func (s *ProjectResult) MarshalJSON() ([]byte, error)
- func (s *ProjectResult) SetAuthor(val string)
- func (s *ProjectResult) SetCategories(val []string)
- func (s *ProjectResult) SetClientSide(val ProjectResultClientSide)
- func (s *ProjectResult) SetColor(val OptNilInt)
- func (s *ProjectResult) SetDateCreated(val string)
- func (s *ProjectResult) SetDateModified(val string)
- func (s *ProjectResult) SetDescription(val string)
- func (s *ProjectResult) SetDisplayCategories(val []string)
- func (s *ProjectResult) SetDownloads(val int)
- func (s *ProjectResult) SetFeaturedGallery(val OptNilString)
- func (s *ProjectResult) SetFollows(val int)
- func (s *ProjectResult) SetGallery(val []string)
- func (s *ProjectResult) SetIconURL(val OptNilString)
- func (s *ProjectResult) SetLatestVersion(val OptString)
- func (s *ProjectResult) SetLicense(val string)
- func (s *ProjectResult) SetMonetizationStatus(val OptProjectResultMonetizationStatus)
- func (s *ProjectResult) SetProjectID(val string)
- func (s *ProjectResult) SetProjectType(val ProjectResultProjectType)
- func (s *ProjectResult) SetServerSide(val ProjectResultServerSide)
- func (s *ProjectResult) SetSlug(val string)
- func (s *ProjectResult) SetThreadID(val OptString)
- func (s *ProjectResult) SetTitle(val string)
- func (s *ProjectResult) SetVersions(val []string)
- func (s *ProjectResult) UnmarshalJSON(data []byte) error
- func (s *ProjectResult) Validate() error
- type ProjectResultClientSide
- func (ProjectResultClientSide) AllValues() []ProjectResultClientSide
- func (s *ProjectResultClientSide) Decode(d *jx.Decoder) error
- func (s ProjectResultClientSide) Encode(e *jx.Encoder)
- func (s ProjectResultClientSide) MarshalJSON() ([]byte, error)
- func (s ProjectResultClientSide) MarshalText() ([]byte, error)
- func (s *ProjectResultClientSide) UnmarshalJSON(data []byte) error
- func (s *ProjectResultClientSide) UnmarshalText(data []byte) error
- func (s ProjectResultClientSide) Validate() error
- type ProjectResultMonetizationStatus
- func (ProjectResultMonetizationStatus) AllValues() []ProjectResultMonetizationStatus
- func (s *ProjectResultMonetizationStatus) Decode(d *jx.Decoder) error
- func (s ProjectResultMonetizationStatus) Encode(e *jx.Encoder)
- func (s ProjectResultMonetizationStatus) MarshalJSON() ([]byte, error)
- func (s ProjectResultMonetizationStatus) MarshalText() ([]byte, error)
- func (s *ProjectResultMonetizationStatus) UnmarshalJSON(data []byte) error
- func (s *ProjectResultMonetizationStatus) UnmarshalText(data []byte) error
- func (s ProjectResultMonetizationStatus) Validate() error
- type ProjectResultProjectType
- func (ProjectResultProjectType) AllValues() []ProjectResultProjectType
- func (s *ProjectResultProjectType) Decode(d *jx.Decoder) error
- func (s ProjectResultProjectType) Encode(e *jx.Encoder)
- func (s ProjectResultProjectType) MarshalJSON() ([]byte, error)
- func (s ProjectResultProjectType) MarshalText() ([]byte, error)
- func (s *ProjectResultProjectType) UnmarshalJSON(data []byte) error
- func (s *ProjectResultProjectType) UnmarshalText(data []byte) error
- func (s ProjectResultProjectType) Validate() error
- type ProjectResultServerSide
- func (ProjectResultServerSide) AllValues() []ProjectResultServerSide
- func (s *ProjectResultServerSide) Decode(d *jx.Decoder) error
- func (s ProjectResultServerSide) Encode(e *jx.Encoder)
- func (s ProjectResultServerSide) MarshalJSON() ([]byte, error)
- func (s ProjectResultServerSide) MarshalText() ([]byte, error)
- func (s *ProjectResultServerSide) UnmarshalJSON(data []byte) error
- func (s *ProjectResultServerSide) UnmarshalText(data []byte) error
- func (s ProjectResultServerSide) Validate() error
- type ProjectServerSide
- func (ProjectServerSide) AllValues() []ProjectServerSide
- func (s *ProjectServerSide) Decode(d *jx.Decoder) error
- func (s ProjectServerSide) Encode(e *jx.Encoder)
- func (s ProjectServerSide) MarshalJSON() ([]byte, error)
- func (s ProjectServerSide) MarshalText() ([]byte, error)
- func (s *ProjectServerSide) UnmarshalJSON(data []byte) error
- func (s *ProjectServerSide) UnmarshalText(data []byte) error
- func (s ProjectServerSide) Validate() error
- type ProjectStatus
- func (ProjectStatus) AllValues() []ProjectStatus
- func (s *ProjectStatus) Decode(d *jx.Decoder) error
- func (s ProjectStatus) Encode(e *jx.Encoder)
- func (s ProjectStatus) MarshalJSON() ([]byte, error)
- func (s ProjectStatus) MarshalText() ([]byte, error)
- func (s *ProjectStatus) UnmarshalJSON(data []byte) error
- func (s *ProjectStatus) UnmarshalText(data []byte) error
- func (s ProjectStatus) Validate() error
- type RandomProjectsOKApplicationJSON
- func (s *RandomProjectsOKApplicationJSON) Decode(d *jx.Decoder) error
- func (s RandomProjectsOKApplicationJSON) Encode(e *jx.Encoder)
- func (s RandomProjectsOKApplicationJSON) MarshalJSON() ([]byte, error)
- func (s *RandomProjectsOKApplicationJSON) UnmarshalJSON(data []byte) error
- func (s RandomProjectsOKApplicationJSON) Validate() error
- type RandomProjectsParams
- type RandomProjectsRes
- type ReadNotificationNoContent
- type ReadNotificationNotFound
- type ReadNotificationParams
- type ReadNotificationRes
- type ReadNotificationsNoContent
- type ReadNotificationsNotFound
- type ReadNotificationsParams
- type ReadNotificationsRes
- type Report
- func (s *Report) Decode(d *jx.Decoder) error
- func (s *Report) Encode(e *jx.Encoder)
- func (s *Report) GetBody() string
- func (s *Report) GetClosed() bool
- func (s *Report) GetCreated() string
- func (s *Report) GetID() OptString
- func (s *Report) GetItemID() string
- func (s *Report) GetItemType() ReportItemType
- func (s *Report) GetReportType() string
- func (s *Report) GetReporter() string
- func (s *Report) GetThreadID() string
- func (s *Report) MarshalJSON() ([]byte, error)
- func (s *Report) SetBody(val string)
- func (s *Report) SetClosed(val bool)
- func (s *Report) SetCreated(val string)
- func (s *Report) SetID(val OptString)
- func (s *Report) SetItemID(val string)
- func (s *Report) SetItemType(val ReportItemType)
- func (s *Report) SetReportType(val string)
- func (s *Report) SetReporter(val string)
- func (s *Report) SetThreadID(val string)
- func (s *Report) UnmarshalJSON(data []byte) error
- func (s *Report) Validate() error
- type ReportItemType
- func (ReportItemType) AllValues() []ReportItemType
- func (s *ReportItemType) Decode(d *jx.Decoder) error
- func (s ReportItemType) Encode(e *jx.Encoder)
- func (s ReportItemType) MarshalJSON() ([]byte, error)
- func (s ReportItemType) MarshalText() ([]byte, error)
- func (s *ReportItemType) UnmarshalJSON(data []byte) error
- func (s *ReportItemType) UnmarshalText(data []byte) error
- func (s ReportItemType) Validate() error
- type Schedule
- func (s *Schedule) Decode(d *jx.Decoder) error
- func (s *Schedule) Encode(e *jx.Encoder)
- func (s *Schedule) GetRequestedStatus() ScheduleRequestedStatus
- func (s *Schedule) GetTime() string
- func (s *Schedule) MarshalJSON() ([]byte, error)
- func (s *Schedule) SetRequestedStatus(val ScheduleRequestedStatus)
- func (s *Schedule) SetTime(val string)
- func (s *Schedule) UnmarshalJSON(data []byte) error
- func (s *Schedule) Validate() error
- type ScheduleProjectNoContent
- type ScheduleProjectParams
- type ScheduleProjectRes
- type ScheduleRequestedStatus
- func (ScheduleRequestedStatus) AllValues() []ScheduleRequestedStatus
- func (s *ScheduleRequestedStatus) Decode(d *jx.Decoder) error
- func (s ScheduleRequestedStatus) Encode(e *jx.Encoder)
- func (s ScheduleRequestedStatus) MarshalJSON() ([]byte, error)
- func (s ScheduleRequestedStatus) MarshalText() ([]byte, error)
- func (s *ScheduleRequestedStatus) UnmarshalJSON(data []byte) error
- func (s *ScheduleRequestedStatus) UnmarshalText(data []byte) error
- func (s ScheduleRequestedStatus) Validate() error
- type ScheduleVersionNoContent
- type ScheduleVersionParams
- type ScheduleVersionRes
- type SearchProjectsIndex
- type SearchProjectsParams
- type SearchProjectsRes
- type SearchResults
- func (s *SearchResults) Decode(d *jx.Decoder) error
- func (s *SearchResults) Encode(e *jx.Encoder)
- func (s *SearchResults) GetHits() []ProjectResult
- func (s *SearchResults) GetLimit() int
- func (s *SearchResults) GetOffset() int
- func (s *SearchResults) GetTotalHits() int
- func (s *SearchResults) MarshalJSON() ([]byte, error)
- func (s *SearchResults) SetHits(val []ProjectResult)
- func (s *SearchResults) SetLimit(val int)
- func (s *SearchResults) SetOffset(val int)
- func (s *SearchResults) SetTotalHits(val int)
- func (s *SearchResults) UnmarshalJSON(data []byte) error
- func (s *SearchResults) Validate() error
- type SecuritySource
- type SendThreadMessageNotFound
- type SendThreadMessageParams
- type SendThreadMessageRes
- type Statistics
- func (s *Statistics) Decode(d *jx.Decoder) error
- func (s *Statistics) Encode(e *jx.Encoder)
- func (s *Statistics) GetAuthors() OptInt
- func (s *Statistics) GetFiles() OptInt
- func (s *Statistics) GetProjects() OptInt
- func (s *Statistics) GetVersions() OptInt
- func (s *Statistics) MarshalJSON() ([]byte, error)
- func (s *Statistics) SetAuthors(val OptInt)
- func (s *Statistics) SetFiles(val OptInt)
- func (s *Statistics) SetProjects(val OptInt)
- func (s *Statistics) SetVersions(val OptInt)
- func (s *Statistics) UnmarshalJSON(data []byte) error
- type SubmitReportRes
- type TeamMember
- func (s *TeamMember) Decode(d *jx.Decoder) error
- func (s *TeamMember) Encode(e *jx.Encoder)
- func (s *TeamMember) GetAccepted() bool
- func (s *TeamMember) GetOrdering() OptInt
- func (s *TeamMember) GetPayoutsSplit() OptInt
- func (s *TeamMember) GetPermissions() OptInt
- func (s *TeamMember) GetRole() string
- func (s *TeamMember) GetTeamID() string
- func (s *TeamMember) GetUser() User
- func (s *TeamMember) MarshalJSON() ([]byte, error)
- func (s *TeamMember) SetAccepted(val bool)
- func (s *TeamMember) SetOrdering(val OptInt)
- func (s *TeamMember) SetPayoutsSplit(val OptInt)
- func (s *TeamMember) SetPermissions(val OptInt)
- func (s *TeamMember) SetRole(val string)
- func (s *TeamMember) SetTeamID(val string)
- func (s *TeamMember) SetUser(val User)
- func (s *TeamMember) UnmarshalJSON(data []byte) error
- func (s *TeamMember) Validate() error
- type Thread
- func (s *Thread) Decode(d *jx.Decoder) error
- func (s *Thread) Encode(e *jx.Encoder)
- func (s *Thread) GetID() string
- func (s *Thread) GetMembers() []User
- func (s *Thread) GetMessages() []ThreadMessage
- func (s *Thread) GetProjectID() OptNilString
- func (s *Thread) GetReportID() OptNilString
- func (s *Thread) GetType() ThreadType
- func (s *Thread) MarshalJSON() ([]byte, error)
- func (s *Thread) SetID(val string)
- func (s *Thread) SetMembers(val []User)
- func (s *Thread) SetMessages(val []ThreadMessage)
- func (s *Thread) SetProjectID(val OptNilString)
- func (s *Thread) SetReportID(val OptNilString)
- func (s *Thread) SetType(val ThreadType)
- func (s *Thread) UnmarshalJSON(data []byte) error
- func (s *Thread) Validate() error
- type ThreadMessage
- func (s *ThreadMessage) Decode(d *jx.Decoder) error
- func (s *ThreadMessage) Encode(e *jx.Encoder)
- func (s *ThreadMessage) GetAuthorID() OptNilString
- func (s *ThreadMessage) GetBody() ThreadMessageBody
- func (s *ThreadMessage) GetCreated() string
- func (s *ThreadMessage) GetID() string
- func (s *ThreadMessage) MarshalJSON() ([]byte, error)
- func (s *ThreadMessage) SetAuthorID(val OptNilString)
- func (s *ThreadMessage) SetBody(val ThreadMessageBody)
- func (s *ThreadMessage) SetCreated(val string)
- func (s *ThreadMessage) SetID(val string)
- func (s *ThreadMessage) UnmarshalJSON(data []byte) error
- func (s *ThreadMessage) Validate() error
- type ThreadMessageBody
- func (s *ThreadMessageBody) Decode(d *jx.Decoder) error
- func (s *ThreadMessageBody) Encode(e *jx.Encoder)
- func (s *ThreadMessageBody) GetBody() OptString
- func (s *ThreadMessageBody) GetNewStatus() OptThreadMessageBodyNewStatus
- func (s *ThreadMessageBody) GetOldStatus() OptThreadMessageBodyOldStatus
- func (s *ThreadMessageBody) GetPrivate() OptBool
- func (s *ThreadMessageBody) GetReplyingTo() OptNilString
- func (s *ThreadMessageBody) GetType() ThreadMessageBodyType
- func (s *ThreadMessageBody) MarshalJSON() ([]byte, error)
- func (s *ThreadMessageBody) SetBody(val OptString)
- func (s *ThreadMessageBody) SetNewStatus(val OptThreadMessageBodyNewStatus)
- func (s *ThreadMessageBody) SetOldStatus(val OptThreadMessageBodyOldStatus)
- func (s *ThreadMessageBody) SetPrivate(val OptBool)
- func (s *ThreadMessageBody) SetReplyingTo(val OptNilString)
- func (s *ThreadMessageBody) SetType(val ThreadMessageBodyType)
- func (s *ThreadMessageBody) UnmarshalJSON(data []byte) error
- func (s *ThreadMessageBody) Validate() error
- type ThreadMessageBodyNewStatus
- func (ThreadMessageBodyNewStatus) AllValues() []ThreadMessageBodyNewStatus
- func (s *ThreadMessageBodyNewStatus) Decode(d *jx.Decoder) error
- func (s ThreadMessageBodyNewStatus) Encode(e *jx.Encoder)
- func (s ThreadMessageBodyNewStatus) MarshalJSON() ([]byte, error)
- func (s ThreadMessageBodyNewStatus) MarshalText() ([]byte, error)
- func (s *ThreadMessageBodyNewStatus) UnmarshalJSON(data []byte) error
- func (s *ThreadMessageBodyNewStatus) UnmarshalText(data []byte) error
- func (s ThreadMessageBodyNewStatus) Validate() error
- type ThreadMessageBodyOldStatus
- func (ThreadMessageBodyOldStatus) AllValues() []ThreadMessageBodyOldStatus
- func (s *ThreadMessageBodyOldStatus) Decode(d *jx.Decoder) error
- func (s ThreadMessageBodyOldStatus) Encode(e *jx.Encoder)
- func (s ThreadMessageBodyOldStatus) MarshalJSON() ([]byte, error)
- func (s ThreadMessageBodyOldStatus) MarshalText() ([]byte, error)
- func (s *ThreadMessageBodyOldStatus) UnmarshalJSON(data []byte) error
- func (s *ThreadMessageBodyOldStatus) UnmarshalText(data []byte) error
- func (s ThreadMessageBodyOldStatus) Validate() error
- type ThreadMessageBodyType
- func (ThreadMessageBodyType) AllValues() []ThreadMessageBodyType
- func (s *ThreadMessageBodyType) Decode(d *jx.Decoder) error
- func (s ThreadMessageBodyType) Encode(e *jx.Encoder)
- func (s ThreadMessageBodyType) MarshalJSON() ([]byte, error)
- func (s ThreadMessageBodyType) MarshalText() ([]byte, error)
- func (s *ThreadMessageBodyType) UnmarshalJSON(data []byte) error
- func (s *ThreadMessageBodyType) UnmarshalText(data []byte) error
- func (s ThreadMessageBodyType) Validate() error
- type ThreadType
- func (ThreadType) AllValues() []ThreadType
- func (s *ThreadType) Decode(d *jx.Decoder) error
- func (s ThreadType) Encode(e *jx.Encoder)
- func (s ThreadType) MarshalJSON() ([]byte, error)
- func (s ThreadType) MarshalText() ([]byte, error)
- func (s *ThreadType) UnmarshalJSON(data []byte) error
- func (s *ThreadType) UnmarshalText(data []byte) error
- func (s ThreadType) Validate() error
- type TokenAuth
- type TransferTeamOwnershipNoContent
- type TransferTeamOwnershipNotFound
- type TransferTeamOwnershipParams
- type TransferTeamOwnershipRes
- type UnfollowProjectNoContent
- type UnfollowProjectParams
- type UnfollowProjectRes
- type User
- func (s *User) Decode(d *jx.Decoder) error
- func (s *User) Encode(e *jx.Encoder)
- func (s *User) GetAuthProviders() OptNilStringArray
- func (s *User) GetAvatarURL() string
- func (s *User) GetBadges() OptInt
- func (s *User) GetBio() OptString
- func (s *User) GetCreated() string
- func (s *User) GetEmail() OptNilString
- func (s *User) GetEmailVerified() OptNilBool
- func (s *User) GetGithubID() OptNilInt
- func (s *User) GetHasPassword() OptNilBool
- func (s *User) GetHasTotp() OptNilBool
- func (s *User) GetID() string
- func (s *User) GetName() OptNilString
- func (s *User) GetPayoutData() OptNilUserPayoutData
- func (s *User) GetRole() UserRole
- func (s *User) GetUsername() string
- func (s *User) MarshalJSON() ([]byte, error)
- func (s *User) SetAuthProviders(val OptNilStringArray)
- func (s *User) SetAvatarURL(val string)
- func (s *User) SetBadges(val OptInt)
- func (s *User) SetBio(val OptString)
- func (s *User) SetCreated(val string)
- func (s *User) SetEmail(val OptNilString)
- func (s *User) SetEmailVerified(val OptNilBool)
- func (s *User) SetGithubID(val OptNilInt)
- func (s *User) SetHasPassword(val OptNilBool)
- func (s *User) SetHasTotp(val OptNilBool)
- func (s *User) SetID(val string)
- func (s *User) SetName(val OptNilString)
- func (s *User) SetPayoutData(val OptNilUserPayoutData)
- func (s *User) SetRole(val UserRole)
- func (s *User) SetUsername(val string)
- func (s *User) UnmarshalJSON(data []byte) error
- func (s *User) Validate() error
- type UserIdentifier
- type UserPayoutData
- func (s *UserPayoutData) Decode(d *jx.Decoder) error
- func (s *UserPayoutData) Encode(e *jx.Encoder)
- func (s *UserPayoutData) GetBalance() OptInt
- func (s *UserPayoutData) GetPayoutAddress() OptString
- func (s *UserPayoutData) GetPayoutWallet() OptUserPayoutDataPayoutWallet
- func (s *UserPayoutData) GetPayoutWalletType() OptUserPayoutDataPayoutWalletType
- func (s *UserPayoutData) MarshalJSON() ([]byte, error)
- func (s *UserPayoutData) SetBalance(val OptInt)
- func (s *UserPayoutData) SetPayoutAddress(val OptString)
- func (s *UserPayoutData) SetPayoutWallet(val OptUserPayoutDataPayoutWallet)
- func (s *UserPayoutData) SetPayoutWalletType(val OptUserPayoutDataPayoutWalletType)
- func (s *UserPayoutData) UnmarshalJSON(data []byte) error
- func (s *UserPayoutData) Validate() error
- type UserPayoutDataPayoutWallet
- func (UserPayoutDataPayoutWallet) AllValues() []UserPayoutDataPayoutWallet
- func (s *UserPayoutDataPayoutWallet) Decode(d *jx.Decoder) error
- func (s UserPayoutDataPayoutWallet) Encode(e *jx.Encoder)
- func (s UserPayoutDataPayoutWallet) MarshalJSON() ([]byte, error)
- func (s UserPayoutDataPayoutWallet) MarshalText() ([]byte, error)
- func (s *UserPayoutDataPayoutWallet) UnmarshalJSON(data []byte) error
- func (s *UserPayoutDataPayoutWallet) UnmarshalText(data []byte) error
- func (s UserPayoutDataPayoutWallet) Validate() error
- type UserPayoutDataPayoutWalletType
- func (UserPayoutDataPayoutWalletType) AllValues() []UserPayoutDataPayoutWalletType
- func (s *UserPayoutDataPayoutWalletType) Decode(d *jx.Decoder) error
- func (s UserPayoutDataPayoutWalletType) Encode(e *jx.Encoder)
- func (s UserPayoutDataPayoutWalletType) MarshalJSON() ([]byte, error)
- func (s UserPayoutDataPayoutWalletType) MarshalText() ([]byte, error)
- func (s *UserPayoutDataPayoutWalletType) UnmarshalJSON(data []byte) error
- func (s *UserPayoutDataPayoutWalletType) UnmarshalText(data []byte) error
- func (s UserPayoutDataPayoutWalletType) Validate() error
- type UserPayoutHistory
- func (s *UserPayoutHistory) Decode(d *jx.Decoder) error
- func (s *UserPayoutHistory) Encode(e *jx.Encoder)
- func (s *UserPayoutHistory) GetAllTime() OptString
- func (s *UserPayoutHistory) GetLastMonth() OptString
- func (s *UserPayoutHistory) GetPayouts() []UserPayoutHistoryEntry
- func (s *UserPayoutHistory) MarshalJSON() ([]byte, error)
- func (s *UserPayoutHistory) SetAllTime(val OptString)
- func (s *UserPayoutHistory) SetLastMonth(val OptString)
- func (s *UserPayoutHistory) SetPayouts(val []UserPayoutHistoryEntry)
- func (s *UserPayoutHistory) UnmarshalJSON(data []byte) error
- type UserPayoutHistoryEntry
- func (s *UserPayoutHistoryEntry) Decode(d *jx.Decoder) error
- func (s *UserPayoutHistoryEntry) Encode(e *jx.Encoder)
- func (s *UserPayoutHistoryEntry) GetAmount() OptInt
- func (s *UserPayoutHistoryEntry) GetCreated() OptString
- func (s *UserPayoutHistoryEntry) GetStatus() OptString
- func (s *UserPayoutHistoryEntry) MarshalJSON() ([]byte, error)
- func (s *UserPayoutHistoryEntry) SetAmount(val OptInt)
- func (s *UserPayoutHistoryEntry) SetCreated(val OptString)
- func (s *UserPayoutHistoryEntry) SetStatus(val OptString)
- func (s *UserPayoutHistoryEntry) UnmarshalJSON(data []byte) error
- type UserRole
- func (UserRole) AllValues() []UserRole
- func (s *UserRole) Decode(d *jx.Decoder) error
- func (s UserRole) Encode(e *jx.Encoder)
- func (s UserRole) MarshalJSON() ([]byte, error)
- func (s UserRole) MarshalText() ([]byte, error)
- func (s *UserRole) UnmarshalJSON(data []byte) error
- func (s *UserRole) UnmarshalText(data []byte) error
- func (s UserRole) Validate() error
- type Version
- func (s *Version) Decode(d *jx.Decoder) error
- func (s *Version) Encode(e *jx.Encoder)
- func (s *Version) GetAuthorID() string
- func (s *Version) GetChangelog() OptNilString
- func (s *Version) GetChangelogURL() OptNilString
- func (s *Version) GetDatePublished() string
- func (s *Version) GetDependencies() []VersionDependency
- func (s *Version) GetDownloads() int
- func (s *Version) GetFeatured() bool
- func (s *Version) GetFiles() []VersionFile
- func (s *Version) GetGameVersions() []string
- func (s *Version) GetID() string
- func (s *Version) GetLoaders() []string
- func (s *Version) GetName() string
- func (s *Version) GetProjectID() string
- func (s *Version) GetRequestedStatus() OptNilVersionRequestedStatus
- func (s *Version) GetStatus() OptVersionStatus
- func (s *Version) GetVersionNumber() string
- func (s *Version) GetVersionType() VersionVersionType
- func (s *Version) MarshalJSON() ([]byte, error)
- func (s *Version) SetAuthorID(val string)
- func (s *Version) SetChangelog(val OptNilString)
- func (s *Version) SetChangelogURL(val OptNilString)
- func (s *Version) SetDatePublished(val string)
- func (s *Version) SetDependencies(val []VersionDependency)
- func (s *Version) SetDownloads(val int)
- func (s *Version) SetFeatured(val bool)
- func (s *Version) SetFiles(val []VersionFile)
- func (s *Version) SetGameVersions(val []string)
- func (s *Version) SetID(val string)
- func (s *Version) SetLoaders(val []string)
- func (s *Version) SetName(val string)
- func (s *Version) SetProjectID(val string)
- func (s *Version) SetRequestedStatus(val OptNilVersionRequestedStatus)
- func (s *Version) SetStatus(val OptVersionStatus)
- func (s *Version) SetVersionNumber(val string)
- func (s *Version) SetVersionType(val VersionVersionType)
- func (s *Version) UnmarshalJSON(data []byte) error
- func (s *Version) Validate() error
- type VersionDependency
- func (s *VersionDependency) Decode(d *jx.Decoder) error
- func (s *VersionDependency) Encode(e *jx.Encoder)
- func (s *VersionDependency) GetDependencyType() VersionDependencyDependencyType
- func (s *VersionDependency) GetFileName() OptNilString
- func (s *VersionDependency) GetProjectID() OptNilString
- func (s *VersionDependency) GetVersionID() OptNilString
- func (s *VersionDependency) MarshalJSON() ([]byte, error)
- func (s *VersionDependency) SetDependencyType(val VersionDependencyDependencyType)
- func (s *VersionDependency) SetFileName(val OptNilString)
- func (s *VersionDependency) SetProjectID(val OptNilString)
- func (s *VersionDependency) SetVersionID(val OptNilString)
- func (s *VersionDependency) UnmarshalJSON(data []byte) error
- func (s *VersionDependency) Validate() error
- type VersionDependencyDependencyType
- func (VersionDependencyDependencyType) AllValues() []VersionDependencyDependencyType
- func (s *VersionDependencyDependencyType) Decode(d *jx.Decoder) error
- func (s VersionDependencyDependencyType) Encode(e *jx.Encoder)
- func (s VersionDependencyDependencyType) MarshalJSON() ([]byte, error)
- func (s VersionDependencyDependencyType) MarshalText() ([]byte, error)
- func (s *VersionDependencyDependencyType) UnmarshalJSON(data []byte) error
- func (s *VersionDependencyDependencyType) UnmarshalText(data []byte) error
- func (s VersionDependencyDependencyType) Validate() error
- type VersionFile
- func (s *VersionFile) Decode(d *jx.Decoder) error
- func (s *VersionFile) Encode(e *jx.Encoder)
- func (s *VersionFile) GetFileType() OptNilVersionFileFileType
- func (s *VersionFile) GetFilename() string
- func (s *VersionFile) GetHashes() VersionFileHashes
- func (s *VersionFile) GetPrimary() bool
- func (s *VersionFile) GetSize() int
- func (s *VersionFile) GetURL() string
- func (s *VersionFile) MarshalJSON() ([]byte, error)
- func (s *VersionFile) SetFileType(val OptNilVersionFileFileType)
- func (s *VersionFile) SetFilename(val string)
- func (s *VersionFile) SetHashes(val VersionFileHashes)
- func (s *VersionFile) SetPrimary(val bool)
- func (s *VersionFile) SetSize(val int)
- func (s *VersionFile) SetURL(val string)
- func (s *VersionFile) UnmarshalJSON(data []byte) error
- func (s *VersionFile) Validate() error
- type VersionFileFileType
- func (VersionFileFileType) AllValues() []VersionFileFileType
- func (s *VersionFileFileType) Decode(d *jx.Decoder) error
- func (s VersionFileFileType) Encode(e *jx.Encoder)
- func (s VersionFileFileType) MarshalJSON() ([]byte, error)
- func (s VersionFileFileType) MarshalText() ([]byte, error)
- func (s *VersionFileFileType) UnmarshalJSON(data []byte) error
- func (s *VersionFileFileType) UnmarshalText(data []byte) error
- func (s VersionFileFileType) Validate() error
- type VersionFileHashes
- func (s *VersionFileHashes) Decode(d *jx.Decoder) error
- func (s *VersionFileHashes) Encode(e *jx.Encoder)
- func (s *VersionFileHashes) GetSHA1() OptString
- func (s *VersionFileHashes) GetSha512() OptString
- func (s *VersionFileHashes) MarshalJSON() ([]byte, error)
- func (s *VersionFileHashes) SetSHA1(val OptString)
- func (s *VersionFileHashes) SetSha512(val OptString)
- func (s *VersionFileHashes) UnmarshalJSON(data []byte) error
- type VersionFromHashNotFound
- type VersionFromHashParams
- type VersionFromHashRes
- type VersionRequestedStatus
- func (VersionRequestedStatus) AllValues() []VersionRequestedStatus
- func (s *VersionRequestedStatus) Decode(d *jx.Decoder) error
- func (s VersionRequestedStatus) Encode(e *jx.Encoder)
- func (s VersionRequestedStatus) MarshalJSON() ([]byte, error)
- func (s VersionRequestedStatus) MarshalText() ([]byte, error)
- func (s *VersionRequestedStatus) UnmarshalJSON(data []byte) error
- func (s *VersionRequestedStatus) UnmarshalText(data []byte) error
- func (s VersionRequestedStatus) Validate() error
- type VersionStatus
- func (VersionStatus) AllValues() []VersionStatus
- func (s *VersionStatus) Decode(d *jx.Decoder) error
- func (s VersionStatus) Encode(e *jx.Encoder)
- func (s VersionStatus) MarshalJSON() ([]byte, error)
- func (s VersionStatus) MarshalText() ([]byte, error)
- func (s *VersionStatus) UnmarshalJSON(data []byte) error
- func (s *VersionStatus) UnmarshalText(data []byte) error
- func (s VersionStatus) Validate() error
- type VersionVersionType
- func (VersionVersionType) AllValues() []VersionVersionType
- func (s *VersionVersionType) Decode(d *jx.Decoder) error
- func (s VersionVersionType) Encode(e *jx.Encoder)
- func (s VersionVersionType) MarshalJSON() ([]byte, error)
- func (s VersionVersionType) MarshalText() ([]byte, error)
- func (s *VersionVersionType) UnmarshalJSON(data []byte) error
- func (s *VersionVersionType) UnmarshalText(data []byte) error
- func (s VersionVersionType) Validate() error
- type VersionsFromHashesBadRequest
- type VersionsFromHashesRes
- type WithdrawPayoutNoContent
- type WithdrawPayoutNotFound
- type WithdrawPayoutParams
- type WithdrawPayoutRes
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type AddGalleryImageExt ¶
type AddGalleryImageExt string
const ( AddGalleryImageExtPNG AddGalleryImageExt = "png" AddGalleryImageExtJPG AddGalleryImageExt = "jpg" AddGalleryImageExtJpeg AddGalleryImageExt = "jpeg" AddGalleryImageExtBmp AddGalleryImageExt = "bmp" AddGalleryImageExtGIF AddGalleryImageExt = "gif" AddGalleryImageExtWEBP AddGalleryImageExt = "webp" AddGalleryImageExtSvg AddGalleryImageExt = "svg" AddGalleryImageExtSvgz AddGalleryImageExt = "svgz" AddGalleryImageExtRgb AddGalleryImageExt = "rgb" )
func (AddGalleryImageExt) AllValues ¶
func (AddGalleryImageExt) AllValues() []AddGalleryImageExt
AllValues returns all AddGalleryImageExt values.
func (AddGalleryImageExt) MarshalText ¶
func (s AddGalleryImageExt) MarshalText() ([]byte, error)
MarshalText implements encoding.TextMarshaler.
func (*AddGalleryImageExt) UnmarshalText ¶
func (s *AddGalleryImageExt) UnmarshalText(data []byte) error
UnmarshalText implements encoding.TextUnmarshaler.
func (AddGalleryImageExt) Validate ¶
func (s AddGalleryImageExt) Validate() error
type AddGalleryImageNoContent ¶
type AddGalleryImageNoContent struct{}
AddGalleryImageNoContent is response for AddGalleryImage operation.
type AddGalleryImageNotFound ¶
type AddGalleryImageNotFound struct{}
AddGalleryImageNotFound is response for AddGalleryImage operation.
type AddGalleryImageParams ¶
type AddGalleryImageParams struct {
// Image extension.
Ext AddGalleryImageExt
// Whether an image is featured.
Featured bool
// Title of the image.
Title OptString
// Description of the image.
Description OptString
// Ordering of the image.
Ordering OptInt
// The ID or slug of the project.
IDSlug string
}
AddGalleryImageParams is parameters of addGalleryImage operation.
type AddGalleryImageReq ¶
type AddGalleryImageReq interface {
// contains filtered or unexported methods
}
type AddGalleryImageReqEmptyBody ¶
type AddGalleryImageReqEmptyBody struct{}
type AddGalleryImageRes ¶
type AddGalleryImageRes interface {
// contains filtered or unexported methods
}
type AddTeamMemberNoContent ¶
type AddTeamMemberNoContent struct{}
AddTeamMemberNoContent is response for AddTeamMember operation.
type AddTeamMemberNotFound ¶
type AddTeamMemberNotFound struct{}
AddTeamMemberNotFound is response for AddTeamMember operation.
type AddTeamMemberParams ¶
type AddTeamMemberParams struct {
// The ID of the team.
ID string
}
AddTeamMemberParams is parameters of addTeamMember operation.
type AddTeamMemberRes ¶
type AddTeamMemberRes interface {
// contains filtered or unexported methods
}
type AlgorithmIdentifier ¶
type AlgorithmIdentifier string
const ( AlgorithmIdentifierSHA1 AlgorithmIdentifier = "sha1" AlgorithmIdentifierSha512 AlgorithmIdentifier = "sha512" )
func (AlgorithmIdentifier) AllValues ¶
func (AlgorithmIdentifier) AllValues() []AlgorithmIdentifier
AllValues returns all AlgorithmIdentifier values.
func (AlgorithmIdentifier) MarshalText ¶
func (s AlgorithmIdentifier) MarshalText() ([]byte, error)
MarshalText implements encoding.TextMarshaler.
func (*AlgorithmIdentifier) UnmarshalText ¶
func (s *AlgorithmIdentifier) UnmarshalText(data []byte) error
UnmarshalText implements encoding.TextUnmarshaler.
func (AlgorithmIdentifier) Validate ¶
func (s AlgorithmIdentifier) Validate() error
type AuthError ¶
type AuthError struct {
// The name of the error.
Error string `json:"error"`
// The contents of the error.
Description string `json:"description"`
}
Ref: #/components/schemas/AuthError
func (*AuthError) GetDescription ¶
GetDescription returns the value of Description.
func (*AuthError) MarshalJSON ¶
MarshalJSON implements stdjson.Marshaler.
func (*AuthError) SetDescription ¶
SetDescription sets the value of Description.
func (*AuthError) UnmarshalJSON ¶
UnmarshalJSON implements stdjson.Unmarshaler.
type CategoryTag ¶
type CategoryTag struct {
// The SVG icon of a category.
Icon string `json:"icon"`
// The name of the category.
Name string `json:"name"`
// The project type this category is applicable to.
ProjectType string `json:"project_type"`
// The header under which the category should go.
Header string `json:"header"`
}
Ref: #/components/schemas/CategoryTag
func (*CategoryTag) Decode ¶
func (s *CategoryTag) Decode(d *jx.Decoder) error
Decode decodes CategoryTag from json.
func (*CategoryTag) Encode ¶
func (s *CategoryTag) Encode(e *jx.Encoder)
Encode implements json.Marshaler.
func (*CategoryTag) GetHeader ¶
func (s *CategoryTag) GetHeader() string
GetHeader returns the value of Header.
func (*CategoryTag) GetIcon ¶
func (s *CategoryTag) GetIcon() string
GetIcon returns the value of Icon.
func (*CategoryTag) GetName ¶
func (s *CategoryTag) GetName() string
GetName returns the value of Name.
func (*CategoryTag) GetProjectType ¶
func (s *CategoryTag) GetProjectType() string
GetProjectType returns the value of ProjectType.
func (*CategoryTag) MarshalJSON ¶
func (s *CategoryTag) MarshalJSON() ([]byte, error)
MarshalJSON implements stdjson.Marshaler.
func (*CategoryTag) SetHeader ¶
func (s *CategoryTag) SetHeader(val string)
SetHeader sets the value of Header.
func (*CategoryTag) SetIcon ¶
func (s *CategoryTag) SetIcon(val string)
SetIcon sets the value of Icon.
func (*CategoryTag) SetName ¶
func (s *CategoryTag) SetName(val string)
SetName sets the value of Name.
func (*CategoryTag) SetProjectType ¶
func (s *CategoryTag) SetProjectType(val string)
SetProjectType sets the value of ProjectType.
func (*CategoryTag) UnmarshalJSON ¶
func (s *CategoryTag) UnmarshalJSON(data []byte) error
UnmarshalJSON implements stdjson.Unmarshaler.
type ChangeProjectIconExt ¶
type ChangeProjectIconExt string
const ( ChangeProjectIconExtPNG ChangeProjectIconExt = "png" ChangeProjectIconExtJPG ChangeProjectIconExt = "jpg" ChangeProjectIconExtJpeg ChangeProjectIconExt = "jpeg" ChangeProjectIconExtBmp ChangeProjectIconExt = "bmp" ChangeProjectIconExtGIF ChangeProjectIconExt = "gif" ChangeProjectIconExtWEBP ChangeProjectIconExt = "webp" ChangeProjectIconExtSvg ChangeProjectIconExt = "svg" ChangeProjectIconExtSvgz ChangeProjectIconExt = "svgz" ChangeProjectIconExtRgb ChangeProjectIconExt = "rgb" )
func (ChangeProjectIconExt) AllValues ¶
func (ChangeProjectIconExt) AllValues() []ChangeProjectIconExt
AllValues returns all ChangeProjectIconExt values.
func (ChangeProjectIconExt) MarshalText ¶
func (s ChangeProjectIconExt) MarshalText() ([]byte, error)
MarshalText implements encoding.TextMarshaler.
func (*ChangeProjectIconExt) UnmarshalText ¶
func (s *ChangeProjectIconExt) UnmarshalText(data []byte) error
UnmarshalText implements encoding.TextUnmarshaler.
func (ChangeProjectIconExt) Validate ¶
func (s ChangeProjectIconExt) Validate() error
type ChangeProjectIconNoContent ¶
type ChangeProjectIconNoContent struct{}
ChangeProjectIconNoContent is response for ChangeProjectIcon operation.
type ChangeProjectIconParams ¶
type ChangeProjectIconParams struct {
// Image extension.
Ext ChangeProjectIconExt
// The ID or slug of the project.
IDSlug string
}
ChangeProjectIconParams is parameters of changeProjectIcon operation.
type ChangeProjectIconReq ¶
type ChangeProjectIconReq interface {
// contains filtered or unexported methods
}
type ChangeProjectIconReqEmptyBody ¶
type ChangeProjectIconReqEmptyBody struct{}
type ChangeProjectIconRes ¶
type ChangeProjectIconRes interface {
// contains filtered or unexported methods
}
type ChangeUserIconNoContent ¶
type ChangeUserIconNoContent struct{}
ChangeUserIconNoContent is response for ChangeUserIcon operation.
type ChangeUserIconNotFound ¶
type ChangeUserIconNotFound struct{}
ChangeUserIconNotFound is response for ChangeUserIcon operation.
type ChangeUserIconParams ¶
type ChangeUserIconParams struct {
// The ID or username of the user.
IDUsername string
}
ChangeUserIconParams is parameters of changeUserIcon operation.
type ChangeUserIconReq ¶
type ChangeUserIconReq interface {
// contains filtered or unexported methods
}
type ChangeUserIconReqEmptyBody ¶
type ChangeUserIconReqEmptyBody struct{}
type ChangeUserIconRes ¶
type ChangeUserIconRes interface {
// contains filtered or unexported methods
}
type CheckProjectValidityNotFound ¶
type CheckProjectValidityNotFound struct{}
CheckProjectValidityNotFound is response for CheckProjectValidity operation.
type CheckProjectValidityParams ¶
type CheckProjectValidityParams struct {
// The ID or slug of the project.
IDSlug string
}
CheckProjectValidityParams is parameters of checkProjectValidity operation.
type CheckProjectValidityRes ¶
type CheckProjectValidityRes interface {
// contains filtered or unexported methods
}
type Client ¶
type Client struct {
// contains filtered or unexported fields
}
Client implements OAS client.
func NewClient ¶
func NewClient(serverURL string, sec SecuritySource, opts ...ClientOption) (*Client, error)
NewClient initializes new Client defined by OAS.
func (*Client) AddGalleryImage ¶
func (c *Client) AddGalleryImage(ctx context.Context, request AddGalleryImageReq, params AddGalleryImageParams) (AddGalleryImageRes, error)
AddGalleryImage invokes addGalleryImage operation.
Modrinth allows you to upload files of up to 5MiB to a project's gallery.
POST /project/{id|slug}/gallery
func (*Client) AddTeamMember ¶
func (c *Client) AddTeamMember(ctx context.Context, request UserIdentifier, params AddTeamMemberParams) (AddTeamMemberRes, error)
AddTeamMember invokes addTeamMember operation.
Add a user to a team.
POST /team/{id}/members
func (*Client) CategoryList ¶
func (c *Client) CategoryList(ctx context.Context) ([]CategoryTag, error)
CategoryList invokes categoryList operation.
Gets an array of categories, their icons, and applicable project types.
GET /tag/category
func (*Client) ChangeProjectIcon ¶
func (c *Client) ChangeProjectIcon(ctx context.Context, request ChangeProjectIconReq, params ChangeProjectIconParams) (ChangeProjectIconRes, error)
ChangeProjectIcon invokes changeProjectIcon operation.
The new icon may be up to 256KiB in size.
PATCH /project/{id|slug}/icon
func (*Client) ChangeUserIcon ¶
func (c *Client) ChangeUserIcon(ctx context.Context, request ChangeUserIconReq, params ChangeUserIconParams) (ChangeUserIconRes, error)
ChangeUserIcon invokes changeUserIcon operation.
The new avatar may be up to 2MiB in size.
PATCH /user/{id|username}/icon
func (*Client) CheckProjectValidity ¶
func (c *Client) CheckProjectValidity(ctx context.Context, params CheckProjectValidityParams) (CheckProjectValidityRes, error)
CheckProjectValidity invokes checkProjectValidity operation.
Check project slug/ID validity.
GET /project/{id|slug}/check
func (*Client) CreateVersion ¶
func (c *Client) CreateVersion(ctx context.Context, request OptCreateVersionBodyMultipart) (CreateVersionRes, error)
CreateVersion invokes createVersion operation.
This route creates a version on an existing project. There must be at least one file attached to each new version, unless the new version's status is `draft`. `.mrpack`, `.jar`, `.zip`, and `. litemod` files are accepted. The request is a [multipart request](https://www.ietf.org/rfc/rfc2388.txt) with at least two form fields: one is `data`, which includes a JSON body with the version metadata as shown below, and at least one field containing an upload file. You can name the file parts anything you would like, but you must list each of the parts' names in `file_parts`, and optionally, provide one to use as the primary file in `primary_file`.
POST /version
func (*Client) DeleteFileFromHash ¶
func (c *Client) DeleteFileFromHash(ctx context.Context, params DeleteFileFromHashParams) (DeleteFileFromHashRes, error)
DeleteFileFromHash invokes deleteFileFromHash operation.
Delete a file from its hash.
DELETE /version_file/{hash}
func (*Client) DeleteGalleryImage ¶
func (c *Client) DeleteGalleryImage(ctx context.Context, params DeleteGalleryImageParams) (DeleteGalleryImageRes, error)
DeleteGalleryImage invokes deleteGalleryImage operation.
Delete a gallery image.
DELETE /project/{id|slug}/gallery
func (*Client) DeleteNotification ¶
func (c *Client) DeleteNotification(ctx context.Context, params DeleteNotificationParams) (DeleteNotificationRes, error)
DeleteNotification invokes deleteNotification operation.
Delete notification.
DELETE /notification/{id}
func (*Client) DeleteNotifications ¶
func (c *Client) DeleteNotifications(ctx context.Context, params DeleteNotificationsParams) (DeleteNotificationsRes, error)
DeleteNotifications invokes deleteNotifications operation.
Delete multiple notifications.
DELETE /notifications
func (*Client) DeleteProject ¶
func (c *Client) DeleteProject(ctx context.Context, params DeleteProjectParams) (DeleteProjectRes, error)
DeleteProject invokes deleteProject operation.
Delete a project.
DELETE /project/{id|slug}
func (*Client) DeleteProjectIcon ¶
func (c *Client) DeleteProjectIcon(ctx context.Context, params DeleteProjectIconParams) (DeleteProjectIconRes, error)
DeleteProjectIcon invokes deleteProjectIcon operation.
Delete project's icon.
DELETE /project/{id|slug}/icon
func (*Client) DeleteTeamMember ¶
func (c *Client) DeleteTeamMember(ctx context.Context, params DeleteTeamMemberParams) (DeleteTeamMemberRes, error)
DeleteTeamMember invokes deleteTeamMember operation.
Remove a member from a team.
DELETE /team/{id}/members/{id|username}
func (*Client) DeleteThreadMessage ¶
func (c *Client) DeleteThreadMessage(ctx context.Context, params DeleteThreadMessageParams) (DeleteThreadMessageRes, error)
DeleteThreadMessage invokes deleteThreadMessage operation.
Delete a thread message.
DELETE /message/{id}
func (*Client) DeleteUserIcon ¶
func (c *Client) DeleteUserIcon(ctx context.Context, params DeleteUserIconParams) (DeleteUserIconRes, error)
DeleteUserIcon invokes deleteUserIcon operation.
Remove user's avatar.
DELETE /user/{id|username}/icon
func (*Client) DeleteVersion ¶
func (c *Client) DeleteVersion(ctx context.Context, params DeleteVersionParams) (DeleteVersionRes, error)
DeleteVersion invokes deleteVersion operation.
Delete a version.
DELETE /version/{id}
func (*Client) DonationPlatformList ¶
func (c *Client) DonationPlatformList(ctx context.Context) ([]DonationPlatformTag, error)
DonationPlatformList invokes donationPlatformList operation.
Gets an array of donation platforms and information about them.
GET /tag/donation_platform
func (*Client) FollowProject ¶
func (c *Client) FollowProject(ctx context.Context, params FollowProjectParams) (FollowProjectRes, error)
FollowProject invokes followProject operation.
Follow a project.
POST /project/{id|slug}/follow
func (*Client) ForgeUpdates ¶
func (c *Client) ForgeUpdates(ctx context.Context, params ForgeUpdatesParams) (ForgeUpdatesRes, error)
ForgeUpdates invokes forgeUpdates operation.
If you're a Forge mod developer, your Modrinth mods have an automatically generated `updates.json` using the [Forge Update Checker](https://docs.minecraftforge.net/en/latest/misc/updatechecker/). The only setup is to insert the URL into the `[[mods]]` section of your `mods.toml` file as such: ```toml [[mods]] # the other stuff here - ID, version, display name, etc. updateJSONURL = "https://api.modrinth.com/updates/{slug|ID}/forge_updates.json" ``` Replace `{slug|id}` with the slug or ID of your project. Modrinth will handle the rest! When you update your mod, Forge will notify your users that their copy of your mod is out of date. Make sure that the version format you use for your Modrinth releases is the same as the version format you use in your `mods.toml`. If you use a format such as `1.2.3-forge` or `1.2.3+1.19` with your Modrinth releases but your `mods.toml` only has `1.2.3`, the update checker may not function properly.
GET /updates/{id|slug}/forge_updates.json
func (*Client) GetDependencies ¶
func (c *Client) GetDependencies(ctx context.Context, params GetDependenciesParams) (GetDependenciesRes, error)
GetDependencies invokes getDependencies operation.
Get all of a project's dependencies.
GET /project/{id|slug}/dependencies
func (*Client) GetFollowedProjects ¶
func (c *Client) GetFollowedProjects(ctx context.Context, params GetFollowedProjectsParams) (GetFollowedProjectsRes, error)
GetFollowedProjects invokes getFollowedProjects operation.
Get user's followed projects.
GET /user/{id|username}/follows
func (*Client) GetLatestVersionFromHash ¶
func (c *Client) GetLatestVersionFromHash(ctx context.Context, request OptGetLatestVersionFromHashBody, params GetLatestVersionFromHashParams) (GetLatestVersionFromHashRes, error)
GetLatestVersionFromHash invokes getLatestVersionFromHash operation.
Latest version of a project from a hash, loader(s), and game version(s).
POST /version_file/{hash}/update
func (*Client) GetLatestVersionsFromHashes ¶
func (c *Client) GetLatestVersionsFromHashes(ctx context.Context, request OptGetLatestVersionsFromHashesBody) (GetLatestVersionsFromHashesRes, error)
GetLatestVersionsFromHashes invokes getLatestVersionsFromHashes operation.
This is the same as [`/version_file/{hash}/update`](#operation/getLatestVersionFromHash) except it accepts multiple hashes.
POST /version_files/update
func (*Client) GetNotification ¶
func (c *Client) GetNotification(ctx context.Context, params GetNotificationParams) (GetNotificationRes, error)
GetNotification invokes getNotification operation.
Get notification from ID.
GET /notification/{id}
func (*Client) GetNotifications ¶
func (c *Client) GetNotifications(ctx context.Context, params GetNotificationsParams) (GetNotificationsRes, error)
GetNotifications invokes getNotifications operation.
Get multiple notifications.
GET /notifications
func (*Client) GetOpenReports ¶
func (c *Client) GetOpenReports(ctx context.Context, params GetOpenReportsParams) (GetOpenReportsRes, error)
GetOpenReports invokes getOpenReports operation.
Get your open reports.
GET /report
func (*Client) GetPayoutHistory ¶
func (c *Client) GetPayoutHistory(ctx context.Context, params GetPayoutHistoryParams) (GetPayoutHistoryRes, error)
GetPayoutHistory invokes getPayoutHistory operation.
Get user's payout history.
GET /user/{id|username}/payouts
func (*Client) GetProject ¶
func (c *Client) GetProject(ctx context.Context, params GetProjectParams) (GetProjectRes, error)
GetProject invokes getProject operation.
Get a project.
GET /project/{id|slug}
func (*Client) GetProjectTeamMembers ¶
func (c *Client) GetProjectTeamMembers(ctx context.Context, params GetProjectTeamMembersParams) (GetProjectTeamMembersRes, error)
GetProjectTeamMembers invokes getProjectTeamMembers operation.
Get a project's team members.
GET /project/{id|slug}/members
func (*Client) GetProjectVersions ¶
func (c *Client) GetProjectVersions(ctx context.Context, params GetProjectVersionsParams) (GetProjectVersionsRes, error)
GetProjectVersions invokes getProjectVersions operation.
List project's versions.
GET /project/{id|slug}/version
func (*Client) GetProjects ¶
GetProjects invokes getProjects operation.
Get multiple projects.
GET /projects
func (*Client) GetReport ¶
func (c *Client) GetReport(ctx context.Context, params GetReportParams) (GetReportRes, error)
GetReport invokes getReport operation.
Get report from ID.
GET /report/{id}
func (*Client) GetReports ¶
func (c *Client) GetReports(ctx context.Context, params GetReportsParams) (GetReportsRes, error)
GetReports invokes getReports operation.
Get multiple reports.
GET /reports
func (*Client) GetTeamMembers ¶
func (c *Client) GetTeamMembers(ctx context.Context, params GetTeamMembersParams) ([]TeamMember, error)
GetTeamMembers invokes getTeamMembers operation.
Get a team's members.
GET /team/{id}/members
func (*Client) GetTeams ¶
func (c *Client) GetTeams(ctx context.Context, params GetTeamsParams) ([][]TeamMember, error)
GetTeams invokes getTeams operation.
Get the members of multiple teams.
GET /teams
func (*Client) GetThread ¶
func (c *Client) GetThread(ctx context.Context, params GetThreadParams) (GetThreadRes, error)
GetThread invokes getThread operation.
Get a thread.
GET /thread/{id}
func (*Client) GetThreads ¶
func (c *Client) GetThreads(ctx context.Context, params GetThreadsParams) (GetThreadsRes, error)
GetThreads invokes getThreads operation.
Get multiple threads.
GET /threads
func (*Client) GetUser ¶
func (c *Client) GetUser(ctx context.Context, params GetUserParams) (GetUserRes, error)
GetUser invokes getUser operation.
Get a user.
GET /user/{id|username}
func (*Client) GetUserFromAuth ¶
func (c *Client) GetUserFromAuth(ctx context.Context) (GetUserFromAuthRes, error)
GetUserFromAuth invokes getUserFromAuth operation.
Get user from authorization header.
GET /user
func (*Client) GetUserNotifications ¶
func (c *Client) GetUserNotifications(ctx context.Context, params GetUserNotificationsParams) (GetUserNotificationsRes, error)
GetUserNotifications invokes getUserNotifications operation.
Get user's notifications.
GET /user/{id|username}/notifications
func (*Client) GetUserProjects ¶
func (c *Client) GetUserProjects(ctx context.Context, params GetUserProjectsParams) (GetUserProjectsRes, error)
GetUserProjects invokes getUserProjects operation.
Get user's projects.
GET /user/{id|username}/projects
func (*Client) GetVersion ¶
func (c *Client) GetVersion(ctx context.Context, params GetVersionParams) (GetVersionRes, error)
GetVersion invokes getVersion operation.
Get a version.
GET /version/{id}
func (*Client) GetVersionFromIdOrNumber ¶
func (c *Client) GetVersionFromIdOrNumber(ctx context.Context, params GetVersionFromIdOrNumberParams) (GetVersionFromIdOrNumberRes, error)
GetVersionFromIdOrNumber invokes getVersionFromIdOrNumber operation.
Please note that, if the version number provided matches multiple versions, only the **oldest matching version** will be returned.
GET /project/{id|slug}/version/{id|number}
func (*Client) GetVersions ¶
GetVersions invokes getVersions operation.
Get multiple versions.
GET /versions
func (*Client) JoinTeam ¶
func (c *Client) JoinTeam(ctx context.Context, params JoinTeamParams) (JoinTeamRes, error)
JoinTeam invokes joinTeam operation.
Join a team.
POST /team/{id}/join
func (*Client) LicenseList
deprecated
func (c *Client) LicenseList(ctx context.Context) ([]LicenseTag, error)
LicenseList invokes licenseList operation.
Deprecated - simply use SPDX IDs.
Deprecated: schema marks this operation as deprecated.
GET /tag/license
func (*Client) LicenseText ¶
func (c *Client) LicenseText(ctx context.Context, params LicenseTextParams) (LicenseTextRes, error)
LicenseText invokes licenseText operation.
Get the text and title of a license.
GET /tag/license/{id}
func (*Client) LoaderList ¶
LoaderList invokes loaderList operation.
Gets an array of loaders, their icons, and supported project types.
GET /tag/loader
func (*Client) ModifyGalleryImage ¶
func (c *Client) ModifyGalleryImage(ctx context.Context, params ModifyGalleryImageParams) (ModifyGalleryImageRes, error)
ModifyGalleryImage invokes modifyGalleryImage operation.
Modify a gallery image.
PATCH /project/{id|slug}/gallery
func (*Client) ModifyProject ¶
func (c *Client) ModifyProject(ctx context.Context, request OptEditableProject, params ModifyProjectParams) (ModifyProjectRes, error)
ModifyProject invokes modifyProject operation.
Modify a project.
PATCH /project/{id|slug}
func (*Client) ModifyReport ¶
func (c *Client) ModifyReport(ctx context.Context, request OptModifyReportReq, params ModifyReportParams) (ModifyReportRes, error)
ModifyReport invokes modifyReport operation.
Modify a report.
PATCH /report/{id}
func (*Client) ModifyTeamMember ¶
func (c *Client) ModifyTeamMember(ctx context.Context, request ModifyTeamMemberBody, params ModifyTeamMemberParams) (ModifyTeamMemberRes, error)
ModifyTeamMember invokes modifyTeamMember operation.
Modify a team member's information.
PATCH /team/{id}/members/{id|username}
func (*Client) ModifyUser ¶
func (c *Client) ModifyUser(ctx context.Context, request OptEditableUser, params ModifyUserParams) (ModifyUserRes, error)
ModifyUser invokes modifyUser operation.
Modify a user.
PATCH /user/{id|username}
func (*Client) ModifyVersion ¶
func (c *Client) ModifyVersion(ctx context.Context, request OptEditableVersion, params ModifyVersionParams) (ModifyVersionRes, error)
ModifyVersion invokes modifyVersion operation.
Modify a version.
PATCH /version/{id}
func (*Client) PatchProjects ¶
func (c *Client) PatchProjects(ctx context.Context, request OptPatchProjectsBody, params PatchProjectsParams) (PatchProjectsRes, error)
PatchProjects invokes patchProjects operation.
Bulk-edit multiple projects.
PATCH /projects
func (*Client) ProjectTypeList ¶
ProjectTypeList invokes projectTypeList operation.
Gets an array of valid project types.
GET /tag/project_type
func (*Client) RandomProjects ¶
func (c *Client) RandomProjects(ctx context.Context, params RandomProjectsParams) (RandomProjectsRes, error)
RandomProjects invokes randomProjects operation.
Get a list of random projects.
GET /projects_random
func (*Client) ReadNotification ¶
func (c *Client) ReadNotification(ctx context.Context, params ReadNotificationParams) (ReadNotificationRes, error)
ReadNotification invokes readNotification operation.
Mark notification as read.
PATCH /notification/{id}
func (*Client) ReadNotifications ¶
func (c *Client) ReadNotifications(ctx context.Context, params ReadNotificationsParams) (ReadNotificationsRes, error)
ReadNotifications invokes readNotifications operation.
Mark multiple notifications as read.
PATCH /notifications
func (*Client) ReportTypeList ¶
ReportTypeList invokes reportTypeList operation.
Gets an array of valid report types.
GET /tag/report_type
func (*Client) ScheduleProject ¶
func (c *Client) ScheduleProject(ctx context.Context, request OptSchedule, params ScheduleProjectParams) (ScheduleProjectRes, error)
ScheduleProject invokes scheduleProject operation.
Schedule a project.
POST /project/{id|slug}/schedule
func (*Client) ScheduleVersion ¶
func (c *Client) ScheduleVersion(ctx context.Context, request OptSchedule, params ScheduleVersionParams) (ScheduleVersionRes, error)
ScheduleVersion invokes scheduleVersion operation.
Schedule a version.
POST /version/{id}/schedule
func (*Client) SearchProjects ¶
func (c *Client) SearchProjects(ctx context.Context, params SearchProjectsParams) (SearchProjectsRes, error)
SearchProjects invokes searchProjects operation.
Search projects.
GET /search
func (*Client) SendThreadMessage ¶
func (c *Client) SendThreadMessage(ctx context.Context, request OptThreadMessageBody, params SendThreadMessageParams) (SendThreadMessageRes, error)
SendThreadMessage invokes sendThreadMessage operation.
Send a text message to a thread.
POST /thread/{id}
func (*Client) SideTypeList ¶
SideTypeList invokes sideTypeList operation.
Gets an array of valid side types.
GET /tag/side_type
func (*Client) Statistics ¶
func (c *Client) Statistics(ctx context.Context) (*Statistics, error)
Statistics invokes statistics operation.
Various statistics about this Modrinth instance.
GET /statistics
func (*Client) SubmitReport ¶
func (c *Client) SubmitReport(ctx context.Context, request OptCreatableReport) (SubmitReportRes, error)
SubmitReport invokes submitReport operation.
Bring a project, user, or version to the attention of the moderators by reporting it.
POST /report
func (*Client) TransferTeamOwnership ¶
func (c *Client) TransferTeamOwnership(ctx context.Context, request UserIdentifier, params TransferTeamOwnershipParams) (TransferTeamOwnershipRes, error)
TransferTeamOwnership invokes transferTeamOwnership operation.
Transfer team's ownership to another user.
PATCH /team/{id}/owner
func (*Client) UnfollowProject ¶
func (c *Client) UnfollowProject(ctx context.Context, params UnfollowProjectParams) (UnfollowProjectRes, error)
UnfollowProject invokes unfollowProject operation.
Unfollow a project.
DELETE /project/{id|slug}/follow
func (*Client) VersionFromHash ¶
func (c *Client) VersionFromHash(ctx context.Context, params VersionFromHashParams) (VersionFromHashRes, error)
VersionFromHash invokes versionFromHash operation.
Get version from hash.
GET /version_file/{hash}
func (*Client) VersionList ¶
func (c *Client) VersionList(ctx context.Context) ([]GameVersionTag, error)
VersionList invokes versionList operation.
Gets an array of game versions and information about them.
GET /tag/game_version
func (*Client) VersionsFromHashes ¶
func (c *Client) VersionsFromHashes(ctx context.Context, request OptHashList) (VersionsFromHashesRes, error)
VersionsFromHashes invokes versionsFromHashes operation.
This is the same as [`/version_file/{hash}`](#operation/versionFromHash) except it accepts multiple hashes.
POST /version_files
func (*Client) WithdrawPayout ¶
func (c *Client) WithdrawPayout(ctx context.Context, params WithdrawPayoutParams) (WithdrawPayoutRes, error)
WithdrawPayout invokes withdrawPayout operation.
Warning: certain amounts get withheld for fees. Please do not call this API endpoint without first acknowledging the warnings on the corresponding frontend page.
POST /user/{id|username}/payouts
type ClientOption ¶
type ClientOption interface {
// contains filtered or unexported methods
}
ClientOption is client config option.
func WithClient ¶
func WithClient(client ht.Client) ClientOption
WithClient specifies http client to use.
type CreatableReport ¶
type CreatableReport struct {
// The type of the report being sent.
ReportType string `json:"report_type"`
// The ID of the item (project, version, or user) being reported.
ItemID string `json:"item_id"`
// The type of the item being reported.
ItemType CreatableReportItemType `json:"item_type"`
// The extended explanation of the report.
Body string `json:"body"`
}
Ref: #/components/schemas/CreatableReport
func (*CreatableReport) Decode ¶
func (s *CreatableReport) Decode(d *jx.Decoder) error
Decode decodes CreatableReport from json.
func (*CreatableReport) Encode ¶
func (s *CreatableReport) Encode(e *jx.Encoder)
Encode implements json.Marshaler.
func (*CreatableReport) GetBody ¶
func (s *CreatableReport) GetBody() string
GetBody returns the value of Body.
func (*CreatableReport) GetItemID ¶
func (s *CreatableReport) GetItemID() string
GetItemID returns the value of ItemID.
func (*CreatableReport) GetItemType ¶
func (s *CreatableReport) GetItemType() CreatableReportItemType
GetItemType returns the value of ItemType.
func (*CreatableReport) GetReportType ¶
func (s *CreatableReport) GetReportType() string
GetReportType returns the value of ReportType.
func (*CreatableReport) MarshalJSON ¶
func (s *CreatableReport) MarshalJSON() ([]byte, error)
MarshalJSON implements stdjson.Marshaler.
func (*CreatableReport) SetBody ¶
func (s *CreatableReport) SetBody(val string)
SetBody sets the value of Body.
func (*CreatableReport) SetItemID ¶
func (s *CreatableReport) SetItemID(val string)
SetItemID sets the value of ItemID.
func (*CreatableReport) SetItemType ¶
func (s *CreatableReport) SetItemType(val CreatableReportItemType)
SetItemType sets the value of ItemType.
func (*CreatableReport) SetReportType ¶
func (s *CreatableReport) SetReportType(val string)
SetReportType sets the value of ReportType.
func (*CreatableReport) UnmarshalJSON ¶
func (s *CreatableReport) UnmarshalJSON(data []byte) error
UnmarshalJSON implements stdjson.Unmarshaler.
func (*CreatableReport) Validate ¶
func (s *CreatableReport) Validate() error
type CreatableReportItemType ¶
type CreatableReportItemType string
The type of the item being reported.
const ( CreatableReportItemTypeProject CreatableReportItemType = "project" CreatableReportItemTypeUser CreatableReportItemType = "user" CreatableReportItemTypeVersion CreatableReportItemType = "version" )
func (CreatableReportItemType) AllValues ¶
func (CreatableReportItemType) AllValues() []CreatableReportItemType
AllValues returns all CreatableReportItemType values.
func (*CreatableReportItemType) Decode ¶
func (s *CreatableReportItemType) Decode(d *jx.Decoder) error
Decode decodes CreatableReportItemType from json.
func (CreatableReportItemType) Encode ¶
func (s CreatableReportItemType) Encode(e *jx.Encoder)
Encode encodes CreatableReportItemType as json.
func (CreatableReportItemType) MarshalJSON ¶
func (s CreatableReportItemType) MarshalJSON() ([]byte, error)
MarshalJSON implements stdjson.Marshaler.
func (CreatableReportItemType) MarshalText ¶
func (s CreatableReportItemType) MarshalText() ([]byte, error)
MarshalText implements encoding.TextMarshaler.
func (*CreatableReportItemType) UnmarshalJSON ¶
func (s *CreatableReportItemType) UnmarshalJSON(data []byte) error
UnmarshalJSON implements stdjson.Unmarshaler.
func (*CreatableReportItemType) UnmarshalText ¶
func (s *CreatableReportItemType) UnmarshalText(data []byte) error
UnmarshalText implements encoding.TextUnmarshaler.
func (CreatableReportItemType) Validate ¶
func (s CreatableReportItemType) Validate() error
type CreatableVersion ¶
type CreatableVersion struct {
// The name of this version.
Name string `json:"name"`
// The version number. Ideally will follow semantic versioning.
VersionNumber string `json:"version_number"`
// The changelog for this version.
Changelog OptNilString `json:"changelog"`
// A list of specific versions of projects that this version depends on.
Dependencies []VersionDependency `json:"dependencies"`
// A list of versions of Minecraft that this version supports.
GameVersions []string `json:"game_versions"`
// The release channel for this version.
VersionType CreatableVersionVersionType `json:"version_type"`
// The mod loaders that this version supports. In case of resource packs, use "minecraft".
Loaders []string `json:"loaders"`
// Whether the version is featured or not.
Featured bool `json:"featured"`
Status OptCreatableVersionStatus `json:"status"`
RequestedStatus OptNilCreatableVersionRequestedStatus `json:"requested_status"`
// The ID of the project this version is for.
ProjectID string `json:"project_id"`
// An array of the multipart field names of each file that goes with this version.
FileParts []string `json:"file_parts"`
// The multipart field name of the primary file.
PrimaryFile OptString `json:"primary_file"`
}
Merged schema. Ref: #/components/schemas/CreatableVersion
func (*CreatableVersion) Decode ¶
func (s *CreatableVersion) Decode(d *jx.Decoder) error
Decode decodes CreatableVersion from json.
func (*CreatableVersion) Encode ¶
func (s *CreatableVersion) Encode(e *jx.Encoder)
Encode implements json.Marshaler.
func (*CreatableVersion) GetChangelog ¶
func (s *CreatableVersion) GetChangelog() OptNilString
GetChangelog returns the value of Changelog.
func (*CreatableVersion) GetDependencies ¶
func (s *CreatableVersion) GetDependencies() []VersionDependency
GetDependencies returns the value of Dependencies.
func (*CreatableVersion) GetFeatured ¶
func (s *CreatableVersion) GetFeatured() bool
GetFeatured returns the value of Featured.
func (*CreatableVersion) GetFileParts ¶
func (s *CreatableVersion) GetFileParts() []string
GetFileParts returns the value of FileParts.
func (*CreatableVersion) GetGameVersions ¶
func (s *CreatableVersion) GetGameVersions() []string
GetGameVersions returns the value of GameVersions.
func (*CreatableVersion) GetLoaders ¶
func (s *CreatableVersion) GetLoaders() []string
GetLoaders returns the value of Loaders.
func (*CreatableVersion) GetName ¶
func (s *CreatableVersion) GetName() string
GetName returns the value of Name.
func (*CreatableVersion) GetPrimaryFile ¶
func (s *CreatableVersion) GetPrimaryFile() OptString
GetPrimaryFile returns the value of PrimaryFile.
func (*CreatableVersion) GetProjectID ¶
func (s *CreatableVersion) GetProjectID() string
GetProjectID returns the value of ProjectID.
func (*CreatableVersion) GetRequestedStatus ¶
func (s *CreatableVersion) GetRequestedStatus() OptNilCreatableVersionRequestedStatus
GetRequestedStatus returns the value of RequestedStatus.
func (*CreatableVersion) GetStatus ¶
func (s *CreatableVersion) GetStatus() OptCreatableVersionStatus
GetStatus returns the value of Status.
func (*CreatableVersion) GetVersionNumber ¶
func (s *CreatableVersion) GetVersionNumber() string
GetVersionNumber returns the value of VersionNumber.
func (*CreatableVersion) GetVersionType ¶
func (s *CreatableVersion) GetVersionType() CreatableVersionVersionType
GetVersionType returns the value of VersionType.
func (*CreatableVersion) MarshalJSON ¶
func (s *CreatableVersion) MarshalJSON() ([]byte, error)
MarshalJSON implements stdjson.Marshaler.
func (*CreatableVersion) SetChangelog ¶
func (s *CreatableVersion) SetChangelog(val OptNilString)
SetChangelog sets the value of Changelog.
func (*CreatableVersion) SetDependencies ¶
func (s *CreatableVersion) SetDependencies(val []VersionDependency)
SetDependencies sets the value of Dependencies.
func (*CreatableVersion) SetFeatured ¶
func (s *CreatableVersion) SetFeatured(val bool)
SetFeatured sets the value of Featured.
func (*CreatableVersion) SetFileParts ¶
func (s *CreatableVersion) SetFileParts(val []string)
SetFileParts sets the value of FileParts.
func (*CreatableVersion) SetGameVersions ¶
func (s *CreatableVersion) SetGameVersions(val []string)
SetGameVersions sets the value of GameVersions.
func (*CreatableVersion) SetLoaders ¶
func (s *CreatableVersion) SetLoaders(val []string)
SetLoaders sets the value of Loaders.
func (*CreatableVersion) SetName ¶
func (s *CreatableVersion) SetName(val string)
SetName sets the value of Name.
func (*CreatableVersion) SetPrimaryFile ¶
func (s *CreatableVersion) SetPrimaryFile(val OptString)
SetPrimaryFile sets the value of PrimaryFile.
func (*CreatableVersion) SetProjectID ¶
func (s *CreatableVersion) SetProjectID(val string)
SetProjectID sets the value of ProjectID.
func (*CreatableVersion) SetRequestedStatus ¶
func (s *CreatableVersion) SetRequestedStatus(val OptNilCreatableVersionRequestedStatus)
SetRequestedStatus sets the value of RequestedStatus.
func (*CreatableVersion) SetStatus ¶
func (s *CreatableVersion) SetStatus(val OptCreatableVersionStatus)
SetStatus sets the value of Status.
func (*CreatableVersion) SetVersionNumber ¶
func (s *CreatableVersion) SetVersionNumber(val string)
SetVersionNumber sets the value of VersionNumber.
func (*CreatableVersion) SetVersionType ¶
func (s *CreatableVersion) SetVersionType(val CreatableVersionVersionType)
SetVersionType sets the value of VersionType.
func (*CreatableVersion) UnmarshalJSON ¶
func (s *CreatableVersion) UnmarshalJSON(data []byte) error
UnmarshalJSON implements stdjson.Unmarshaler.
func (*CreatableVersion) Validate ¶
func (s *CreatableVersion) Validate() error
type CreatableVersionRequestedStatus ¶
type CreatableVersionRequestedStatus string
const ( CreatableVersionRequestedStatusListed CreatableVersionRequestedStatus = "listed" CreatableVersionRequestedStatusArchived CreatableVersionRequestedStatus = "archived" CreatableVersionRequestedStatusDraft CreatableVersionRequestedStatus = "draft" CreatableVersionRequestedStatusUnlisted CreatableVersionRequestedStatus = "unlisted" )
func (CreatableVersionRequestedStatus) AllValues ¶
func (CreatableVersionRequestedStatus) AllValues() []CreatableVersionRequestedStatus
AllValues returns all CreatableVersionRequestedStatus values.
func (*CreatableVersionRequestedStatus) Decode ¶
func (s *CreatableVersionRequestedStatus) Decode(d *jx.Decoder) error
Decode decodes CreatableVersionRequestedStatus from json.
func (CreatableVersionRequestedStatus) Encode ¶
func (s CreatableVersionRequestedStatus) Encode(e *jx.Encoder)
Encode encodes CreatableVersionRequestedStatus as json.
func (CreatableVersionRequestedStatus) MarshalJSON ¶
func (s CreatableVersionRequestedStatus) MarshalJSON() ([]byte, error)
MarshalJSON implements stdjson.Marshaler.
func (CreatableVersionRequestedStatus) MarshalText ¶
func (s CreatableVersionRequestedStatus) MarshalText() ([]byte, error)
MarshalText implements encoding.TextMarshaler.
func (*CreatableVersionRequestedStatus) UnmarshalJSON ¶
func (s *CreatableVersionRequestedStatus) UnmarshalJSON(data []byte) error
UnmarshalJSON implements stdjson.Unmarshaler.
func (*CreatableVersionRequestedStatus) UnmarshalText ¶
func (s *CreatableVersionRequestedStatus) UnmarshalText(data []byte) error
UnmarshalText implements encoding.TextUnmarshaler.
func (CreatableVersionRequestedStatus) Validate ¶
func (s CreatableVersionRequestedStatus) Validate() error
type CreatableVersionStatus ¶
type CreatableVersionStatus string
const ( CreatableVersionStatusListed CreatableVersionStatus = "listed" CreatableVersionStatusArchived CreatableVersionStatus = "archived" CreatableVersionStatusDraft CreatableVersionStatus = "draft" CreatableVersionStatusUnlisted CreatableVersionStatus = "unlisted" CreatableVersionStatusScheduled CreatableVersionStatus = "scheduled" CreatableVersionStatusUnknown CreatableVersionStatus = "unknown" )
func (CreatableVersionStatus) AllValues ¶
func (CreatableVersionStatus) AllValues() []CreatableVersionStatus
AllValues returns all CreatableVersionStatus values.
func (*CreatableVersionStatus) Decode ¶
func (s *CreatableVersionStatus) Decode(d *jx.Decoder) error
Decode decodes CreatableVersionStatus from json.
func (CreatableVersionStatus) Encode ¶
func (s CreatableVersionStatus) Encode(e *jx.Encoder)
Encode encodes CreatableVersionStatus as json.
func (CreatableVersionStatus) MarshalJSON ¶
func (s CreatableVersionStatus) MarshalJSON() ([]byte, error)
MarshalJSON implements stdjson.Marshaler.
func (CreatableVersionStatus) MarshalText ¶
func (s CreatableVersionStatus) MarshalText() ([]byte, error)
MarshalText implements encoding.TextMarshaler.
func (*CreatableVersionStatus) UnmarshalJSON ¶
func (s *CreatableVersionStatus) UnmarshalJSON(data []byte) error
UnmarshalJSON implements stdjson.Unmarshaler.
func (*CreatableVersionStatus) UnmarshalText ¶
func (s *CreatableVersionStatus) UnmarshalText(data []byte) error
UnmarshalText implements encoding.TextUnmarshaler.
func (CreatableVersionStatus) Validate ¶
func (s CreatableVersionStatus) Validate() error
type CreatableVersionVersionType ¶
type CreatableVersionVersionType string
The release channel for this version.
const ( CreatableVersionVersionTypeRelease CreatableVersionVersionType = "release" CreatableVersionVersionTypeBeta CreatableVersionVersionType = "beta" CreatableVersionVersionTypeAlpha CreatableVersionVersionType = "alpha" )
func (CreatableVersionVersionType) AllValues ¶
func (CreatableVersionVersionType) AllValues() []CreatableVersionVersionType
AllValues returns all CreatableVersionVersionType values.
func (*CreatableVersionVersionType) Decode ¶
func (s *CreatableVersionVersionType) Decode(d *jx.Decoder) error
Decode decodes CreatableVersionVersionType from json.
func (CreatableVersionVersionType) Encode ¶
func (s CreatableVersionVersionType) Encode(e *jx.Encoder)
Encode encodes CreatableVersionVersionType as json.
func (CreatableVersionVersionType) MarshalJSON ¶
func (s CreatableVersionVersionType) MarshalJSON() ([]byte, error)
MarshalJSON implements stdjson.Marshaler.
func (CreatableVersionVersionType) MarshalText ¶
func (s CreatableVersionVersionType) MarshalText() ([]byte, error)
MarshalText implements encoding.TextMarshaler.
func (*CreatableVersionVersionType) UnmarshalJSON ¶
func (s *CreatableVersionVersionType) UnmarshalJSON(data []byte) error
UnmarshalJSON implements stdjson.Unmarshaler.
func (*CreatableVersionVersionType) UnmarshalText ¶
func (s *CreatableVersionVersionType) UnmarshalText(data []byte) error
UnmarshalText implements encoding.TextUnmarshaler.
func (CreatableVersionVersionType) Validate ¶
func (s CreatableVersionVersionType) Validate() error
type CreateVersionBodyMultipart ¶
type CreateVersionBodyMultipart struct {
Data CreatableVersion `json:"data"`
}
Ref: #/components/schemas/CreateVersionBody
func (*CreateVersionBodyMultipart) GetData ¶
func (s *CreateVersionBodyMultipart) GetData() CreatableVersion
GetData returns the value of Data.
func (*CreateVersionBodyMultipart) SetData ¶
func (s *CreateVersionBodyMultipart) SetData(val CreatableVersion)
SetData sets the value of Data.
func (*CreateVersionBodyMultipart) Validate ¶
func (s *CreateVersionBodyMultipart) Validate() error
type CreateVersionRes ¶
type CreateVersionRes interface {
// contains filtered or unexported methods
}
type DeleteFileFromHashNoContent ¶
type DeleteFileFromHashNoContent struct{}
DeleteFileFromHashNoContent is response for DeleteFileFromHash operation.
type DeleteFileFromHashNotFound ¶
type DeleteFileFromHashNotFound struct{}
DeleteFileFromHashNotFound is response for DeleteFileFromHash operation.
type DeleteFileFromHashParams ¶
type DeleteFileFromHashParams struct {
// Version ID to delete the version from, if multiple files of the same hash exist.
VersionID OptString
// The hash of the file, considering its byte content, and encoded in hexadecimal.
Hash string
// The algorithm of the hash.
Algorithm AlgorithmIdentifier
}
DeleteFileFromHashParams is parameters of deleteFileFromHash operation.
type DeleteFileFromHashRes ¶
type DeleteFileFromHashRes interface {
// contains filtered or unexported methods
}
type DeleteGalleryImageNoContent ¶
type DeleteGalleryImageNoContent struct{}
DeleteGalleryImageNoContent is response for DeleteGalleryImage operation.
type DeleteGalleryImageParams ¶
type DeleteGalleryImageParams struct {
// URL link of the image to delete.
URL url.URL
// The ID or slug of the project.
IDSlug string
}
DeleteGalleryImageParams is parameters of deleteGalleryImage operation.
type DeleteGalleryImageRes ¶
type DeleteGalleryImageRes interface {
// contains filtered or unexported methods
}
type DeleteNotificationNoContent ¶
type DeleteNotificationNoContent struct{}
DeleteNotificationNoContent is response for DeleteNotification operation.
type DeleteNotificationNotFound ¶
type DeleteNotificationNotFound struct{}
DeleteNotificationNotFound is response for DeleteNotification operation.
type DeleteNotificationParams ¶
type DeleteNotificationParams struct {
// The ID of the notification.
ID string
}
DeleteNotificationParams is parameters of deleteNotification operation.
type DeleteNotificationRes ¶
type DeleteNotificationRes interface {
// contains filtered or unexported methods
}
type DeleteNotificationsNoContent ¶
type DeleteNotificationsNoContent struct{}
DeleteNotificationsNoContent is response for DeleteNotifications operation.
type DeleteNotificationsNotFound ¶
type DeleteNotificationsNotFound struct{}
DeleteNotificationsNotFound is response for DeleteNotifications operation.
type DeleteNotificationsParams ¶
type DeleteNotificationsParams struct {
// The IDs of the notifications.
Ids string
}
DeleteNotificationsParams is parameters of deleteNotifications operation.
type DeleteNotificationsRes ¶
type DeleteNotificationsRes interface {
// contains filtered or unexported methods
}
type DeleteProjectIconNoContent ¶
type DeleteProjectIconNoContent struct{}
DeleteProjectIconNoContent is response for DeleteProjectIcon operation.
type DeleteProjectIconParams ¶
type DeleteProjectIconParams struct {
// The ID or slug of the project.
IDSlug string
}
DeleteProjectIconParams is parameters of deleteProjectIcon operation.
type DeleteProjectIconRes ¶
type DeleteProjectIconRes interface {
// contains filtered or unexported methods
}
type DeleteProjectNoContent ¶
type DeleteProjectNoContent struct{}
DeleteProjectNoContent is response for DeleteProject operation.
type DeleteProjectParams ¶
type DeleteProjectParams struct {
// The ID or slug of the project.
IDSlug string
}
DeleteProjectParams is parameters of deleteProject operation.
type DeleteProjectRes ¶
type DeleteProjectRes interface {
// contains filtered or unexported methods
}
type DeleteTeamMemberNoContent ¶
type DeleteTeamMemberNoContent struct{}
DeleteTeamMemberNoContent is response for DeleteTeamMember operation.
type DeleteTeamMemberNotFound ¶
type DeleteTeamMemberNotFound struct{}
DeleteTeamMemberNotFound is response for DeleteTeamMember operation.
type DeleteTeamMemberParams ¶
type DeleteTeamMemberParams struct {
// The ID of the team.
ID string
// The ID or username of the user.
IDUsername string
}
DeleteTeamMemberParams is parameters of deleteTeamMember operation.
type DeleteTeamMemberRes ¶
type DeleteTeamMemberRes interface {
// contains filtered or unexported methods
}
type DeleteThreadMessageNoContent ¶
type DeleteThreadMessageNoContent struct{}
DeleteThreadMessageNoContent is response for DeleteThreadMessage operation.
type DeleteThreadMessageNotFound ¶
type DeleteThreadMessageNotFound struct{}
DeleteThreadMessageNotFound is response for DeleteThreadMessage operation.
type DeleteThreadMessageParams ¶
type DeleteThreadMessageParams struct {
// The ID of the message.
ID string
}
DeleteThreadMessageParams is parameters of deleteThreadMessage operation.
type DeleteThreadMessageRes ¶
type DeleteThreadMessageRes interface {
// contains filtered or unexported methods
}
type DeleteUserIconNoContent ¶
type DeleteUserIconNoContent struct{}
DeleteUserIconNoContent is response for DeleteUserIcon operation.
type DeleteUserIconNotFound ¶
type DeleteUserIconNotFound struct{}
DeleteUserIconNotFound is response for DeleteUserIcon operation.
type DeleteUserIconParams ¶
type DeleteUserIconParams struct {
// The ID or username of the user.
IDUsername string
}
DeleteUserIconParams is parameters of deleteUserIcon operation.
type DeleteUserIconRes ¶
type DeleteUserIconRes interface {
// contains filtered or unexported methods
}
type DeleteVersionNoContent ¶
type DeleteVersionNoContent struct{}
DeleteVersionNoContent is response for DeleteVersion operation.
type DeleteVersionNotFound ¶
type DeleteVersionNotFound struct{}
DeleteVersionNotFound is response for DeleteVersion operation.
type DeleteVersionParams ¶
type DeleteVersionParams struct {
// The ID of the version.
ID string
}
DeleteVersionParams is parameters of deleteVersion operation.
type DeleteVersionRes ¶
type DeleteVersionRes interface {
// contains filtered or unexported methods
}
type DonationPlatformTag ¶
type DonationPlatformTag struct {
// The short identifier of the donation platform.
Short string `json:"short"`
// The full name of the donation platform.
Name string `json:"name"`
}
Ref: #/components/schemas/DonationPlatformTag
func (*DonationPlatformTag) Decode ¶
func (s *DonationPlatformTag) Decode(d *jx.Decoder) error
Decode decodes DonationPlatformTag from json.
func (*DonationPlatformTag) Encode ¶
func (s *DonationPlatformTag) Encode(e *jx.Encoder)
Encode implements json.Marshaler.
func (*DonationPlatformTag) GetName ¶
func (s *DonationPlatformTag) GetName() string
GetName returns the value of Name.
func (*DonationPlatformTag) GetShort ¶
func (s *DonationPlatformTag) GetShort() string
GetShort returns the value of Short.
func (*DonationPlatformTag) MarshalJSON ¶
func (s *DonationPlatformTag) MarshalJSON() ([]byte, error)
MarshalJSON implements stdjson.Marshaler.
func (*DonationPlatformTag) SetName ¶
func (s *DonationPlatformTag) SetName(val string)
SetName sets the value of Name.
func (*DonationPlatformTag) SetShort ¶
func (s *DonationPlatformTag) SetShort(val string)
SetShort sets the value of Short.
func (*DonationPlatformTag) UnmarshalJSON ¶
func (s *DonationPlatformTag) UnmarshalJSON(data []byte) error
UnmarshalJSON implements stdjson.Unmarshaler.
type EditableFileType ¶
type EditableFileType struct {
// The hash algorithm of the hash specified in the hash field.
Algorithm string `json:"algorithm"`
// The hash of the file you're editing.
Hash string `json:"hash"`
// The hash algorithm of the file you're editing.
FileType NilEditableFileTypeFileType `json:"file_type"`
}
Ref: #/components/schemas/EditableFileType
func (*EditableFileType) Decode ¶
func (s *EditableFileType) Decode(d *jx.Decoder) error
Decode decodes EditableFileType from json.
func (*EditableFileType) Encode ¶
func (s *EditableFileType) Encode(e *jx.Encoder)
Encode implements json.Marshaler.
func (*EditableFileType) GetAlgorithm ¶
func (s *EditableFileType) GetAlgorithm() string
GetAlgorithm returns the value of Algorithm.
func (*EditableFileType) GetFileType ¶
func (s *EditableFileType) GetFileType() NilEditableFileTypeFileType
GetFileType returns the value of FileType.
func (*EditableFileType) GetHash ¶
func (s *EditableFileType) GetHash() string
GetHash returns the value of Hash.
func (*EditableFileType) MarshalJSON ¶
func (s *EditableFileType) MarshalJSON() ([]byte, error)
MarshalJSON implements stdjson.Marshaler.
func (*EditableFileType) SetAlgorithm ¶
func (s *EditableFileType) SetAlgorithm(val string)
SetAlgorithm sets the value of Algorithm.
func (*EditableFileType) SetFileType ¶
func (s *EditableFileType) SetFileType(val NilEditableFileTypeFileType)
SetFileType sets the value of FileType.
func (*EditableFileType) SetHash ¶
func (s *EditableFileType) SetHash(val string)
SetHash sets the value of Hash.
func (*EditableFileType) UnmarshalJSON ¶
func (s *EditableFileType) UnmarshalJSON(data []byte) error
UnmarshalJSON implements stdjson.Unmarshaler.
func (*EditableFileType) Validate ¶
func (s *EditableFileType) Validate() error
type EditableFileTypeFileType ¶
type EditableFileTypeFileType string
The hash algorithm of the file you're editing.
const ( EditableFileTypeFileTypeRequiredResourcePack EditableFileTypeFileType = "required-resource-pack" EditableFileTypeFileTypeOptionalResourcePack EditableFileTypeFileType = "optional-resource-pack" )
func (EditableFileTypeFileType) AllValues ¶
func (EditableFileTypeFileType) AllValues() []EditableFileTypeFileType
AllValues returns all EditableFileTypeFileType values.
func (*EditableFileTypeFileType) Decode ¶
func (s *EditableFileTypeFileType) Decode(d *jx.Decoder) error
Decode decodes EditableFileTypeFileType from json.
func (EditableFileTypeFileType) Encode ¶
func (s EditableFileTypeFileType) Encode(e *jx.Encoder)
Encode encodes EditableFileTypeFileType as json.
func (EditableFileTypeFileType) MarshalJSON ¶
func (s EditableFileTypeFileType) MarshalJSON() ([]byte, error)
MarshalJSON implements stdjson.Marshaler.
func (EditableFileTypeFileType) MarshalText ¶
func (s EditableFileTypeFileType) MarshalText() ([]byte, error)
MarshalText implements encoding.TextMarshaler.
func (*EditableFileTypeFileType) UnmarshalJSON ¶
func (s *EditableFileTypeFileType) UnmarshalJSON(data []byte) error
UnmarshalJSON implements stdjson.Unmarshaler.
func (*EditableFileTypeFileType) UnmarshalText ¶
func (s *EditableFileTypeFileType) UnmarshalText(data []byte) error
UnmarshalText implements encoding.TextUnmarshaler.
func (EditableFileTypeFileType) Validate ¶
func (s EditableFileTypeFileType) Validate() error
type EditableProject ¶
type EditableProject struct {
// The slug of a project, used for vanity URLs. Regex: “`^[\w!@$()`.+,"\-']{3,64}$“`.
Slug OptString `json:"slug"`
// The title or name of the project.
Title OptString `json:"title"`
// A short description of the project.
Description OptString `json:"description"`
// A list of the categories that the project has.
Categories []string `json:"categories"`
// The client side support of the project.
ClientSide OptEditableProjectClientSide `json:"client_side"`
// The server side support of the project.
ServerSide OptEditableProjectServerSide `json:"server_side"`
// A long form description of the project.
Body OptString `json:"body"`
// The status of the project.
Status OptEditableProjectStatus `json:"status"`
// The requested status when submitting for review or scheduling the project for release.
RequestedStatus OptNilEditableProjectRequestedStatus `json:"requested_status"`
// A list of categories which are searchable but non-primary.
AdditionalCategories []string `json:"additional_categories"`
// An optional link to where to submit bugs or issues with the project.
IssuesURL OptNilString `json:"issues_url"`
// An optional link to the source code of the project.
SourceURL OptNilString `json:"source_url"`
// An optional link to the project's wiki page or other relevant information.
WikiURL OptNilString `json:"wiki_url"`
// An optional invite link to the project's discord.
DiscordURL OptNilString `json:"discord_url"`
// A list of donation links for the project.
DonationUrls []ProjectDonationURL `json:"donation_urls"`
// The SPDX license ID of a project.
LicenseID OptString `json:"license_id"`
// The URL to this license.
LicenseURL OptNilString `json:"license_url"`
// The title of the moderators' message for the project.
ModerationMessage OptNilString `json:"moderation_message"`
// The body of the moderators' message for the project.
ModerationMessageBody OptNilString `json:"moderation_message_body"`
}
Merged schema. Ref: #/components/schemas/EditableProject
func (*EditableProject) Decode ¶
func (s *EditableProject) Decode(d *jx.Decoder) error
Decode decodes EditableProject from json.
func (*EditableProject) Encode ¶
func (s *EditableProject) Encode(e *jx.Encoder)
Encode implements json.Marshaler.
func (*EditableProject) GetAdditionalCategories ¶
func (s *EditableProject) GetAdditionalCategories() []string
GetAdditionalCategories returns the value of AdditionalCategories.
func (*EditableProject) GetBody ¶
func (s *EditableProject) GetBody() OptString
GetBody returns the value of Body.
func (*EditableProject) GetCategories ¶
func (s *EditableProject) GetCategories() []string
GetCategories returns the value of Categories.
func (*EditableProject) GetClientSide ¶
func (s *EditableProject) GetClientSide() OptEditableProjectClientSide
GetClientSide returns the value of ClientSide.
func (*EditableProject) GetDescription ¶
func (s *EditableProject) GetDescription() OptString
GetDescription returns the value of Description.
func (*EditableProject) GetDiscordURL ¶
func (s *EditableProject) GetDiscordURL() OptNilString
GetDiscordURL returns the value of DiscordURL.
func (*EditableProject) GetDonationUrls ¶
func (s *EditableProject) GetDonationUrls() []ProjectDonationURL
GetDonationUrls returns the value of DonationUrls.
func (*EditableProject) GetIssuesURL ¶
func (s *EditableProject) GetIssuesURL() OptNilString
GetIssuesURL returns the value of IssuesURL.
func (*EditableProject) GetLicenseID ¶
func (s *EditableProject) GetLicenseID() OptString
GetLicenseID returns the value of LicenseID.
func (*EditableProject) GetLicenseURL ¶
func (s *EditableProject) GetLicenseURL() OptNilString
GetLicenseURL returns the value of LicenseURL.
func (*EditableProject) GetModerationMessage ¶
func (s *EditableProject) GetModerationMessage() OptNilString
GetModerationMessage returns the value of ModerationMessage.
func (*EditableProject) GetModerationMessageBody ¶
func (s *EditableProject) GetModerationMessageBody() OptNilString
GetModerationMessageBody returns the value of ModerationMessageBody.
func (*EditableProject) GetRequestedStatus ¶
func (s *EditableProject) GetRequestedStatus() OptNilEditableProjectRequestedStatus
GetRequestedStatus returns the value of RequestedStatus.
func (*EditableProject) GetServerSide ¶
func (s *EditableProject) GetServerSide() OptEditableProjectServerSide
GetServerSide returns the value of ServerSide.
func (*EditableProject) GetSlug ¶
func (s *EditableProject) GetSlug() OptString
GetSlug returns the value of Slug.
func (*EditableProject) GetSourceURL ¶
func (s *EditableProject) GetSourceURL() OptNilString
GetSourceURL returns the value of SourceURL.
func (*EditableProject) GetStatus ¶
func (s *EditableProject) GetStatus() OptEditableProjectStatus
GetStatus returns the value of Status.
func (*EditableProject) GetTitle ¶
func (s *EditableProject) GetTitle() OptString
GetTitle returns the value of Title.
func (*EditableProject) GetWikiURL ¶
func (s *EditableProject) GetWikiURL() OptNilString
GetWikiURL returns the value of WikiURL.
func (*EditableProject) MarshalJSON ¶
func (s *EditableProject) MarshalJSON() ([]byte, error)
MarshalJSON implements stdjson.Marshaler.
func (*EditableProject) SetAdditionalCategories ¶
func (s *EditableProject) SetAdditionalCategories(val []string)
SetAdditionalCategories sets the value of AdditionalCategories.
func (*EditableProject) SetBody ¶
func (s *EditableProject) SetBody(val OptString)
SetBody sets the value of Body.
func (*EditableProject) SetCategories ¶
func (s *EditableProject) SetCategories(val []string)
SetCategories sets the value of Categories.
func (*EditableProject) SetClientSide ¶
func (s *EditableProject) SetClientSide(val OptEditableProjectClientSide)
SetClientSide sets the value of ClientSide.
func (*EditableProject) SetDescription ¶
func (s *EditableProject) SetDescription(val OptString)
SetDescription sets the value of Description.
func (*EditableProject) SetDiscordURL ¶
func (s *EditableProject) SetDiscordURL(val OptNilString)
SetDiscordURL sets the value of DiscordURL.
func (*EditableProject) SetDonationUrls ¶
func (s *EditableProject) SetDonationUrls(val []ProjectDonationURL)
SetDonationUrls sets the value of DonationUrls.
func (*EditableProject) SetIssuesURL ¶
func (s *EditableProject) SetIssuesURL(val OptNilString)
SetIssuesURL sets the value of IssuesURL.
func (*EditableProject) SetLicenseID ¶
func (s *EditableProject) SetLicenseID(val OptString)
SetLicenseID sets the value of LicenseID.
func (*EditableProject) SetLicenseURL ¶
func (s *EditableProject) SetLicenseURL(val OptNilString)
SetLicenseURL sets the value of LicenseURL.
func (*EditableProject) SetModerationMessage ¶
func (s *EditableProject) SetModerationMessage(val OptNilString)
SetModerationMessage sets the value of ModerationMessage.
func (*EditableProject) SetModerationMessageBody ¶
func (s *EditableProject) SetModerationMessageBody(val OptNilString)
SetModerationMessageBody sets the value of ModerationMessageBody.
func (*EditableProject) SetRequestedStatus ¶
func (s *EditableProject) SetRequestedStatus(val OptNilEditableProjectRequestedStatus)
SetRequestedStatus sets the value of RequestedStatus.
func (*EditableProject) SetServerSide ¶
func (s *EditableProject) SetServerSide(val OptEditableProjectServerSide)
SetServerSide sets the value of ServerSide.
func (*EditableProject) SetSlug ¶
func (s *EditableProject) SetSlug(val OptString)
SetSlug sets the value of Slug.
func (*EditableProject) SetSourceURL ¶
func (s *EditableProject) SetSourceURL(val OptNilString)
SetSourceURL sets the value of SourceURL.
func (*EditableProject) SetStatus ¶
func (s *EditableProject) SetStatus(val OptEditableProjectStatus)
SetStatus sets the value of Status.
func (*EditableProject) SetTitle ¶
func (s *EditableProject) SetTitle(val OptString)
SetTitle sets the value of Title.
func (*EditableProject) SetWikiURL ¶
func (s *EditableProject) SetWikiURL(val OptNilString)
SetWikiURL sets the value of WikiURL.
func (*EditableProject) UnmarshalJSON ¶
func (s *EditableProject) UnmarshalJSON(data []byte) error
UnmarshalJSON implements stdjson.Unmarshaler.
func (*EditableProject) Validate ¶
func (s *EditableProject) Validate() error
type EditableProjectClientSide ¶
type EditableProjectClientSide string
The client side support of the project.
const ( EditableProjectClientSideRequired EditableProjectClientSide = "required" EditableProjectClientSideOptional EditableProjectClientSide = "optional" EditableProjectClientSideUnsupported EditableProjectClientSide = "unsupported" EditableProjectClientSideUnknown EditableProjectClientSide = "unknown" )
func (EditableProjectClientSide) AllValues ¶
func (EditableProjectClientSide) AllValues() []EditableProjectClientSide
AllValues returns all EditableProjectClientSide values.
func (*EditableProjectClientSide) Decode ¶
func (s *EditableProjectClientSide) Decode(d *jx.Decoder) error
Decode decodes EditableProjectClientSide from json.
func (EditableProjectClientSide) Encode ¶
func (s EditableProjectClientSide) Encode(e *jx.Encoder)
Encode encodes EditableProjectClientSide as json.
func (EditableProjectClientSide) MarshalJSON ¶
func (s EditableProjectClientSide) MarshalJSON() ([]byte, error)
MarshalJSON implements stdjson.Marshaler.
func (EditableProjectClientSide) MarshalText ¶
func (s EditableProjectClientSide) MarshalText() ([]byte, error)
MarshalText implements encoding.TextMarshaler.
func (*EditableProjectClientSide) UnmarshalJSON ¶
func (s *EditableProjectClientSide) UnmarshalJSON(data []byte) error
UnmarshalJSON implements stdjson.Unmarshaler.
func (*EditableProjectClientSide) UnmarshalText ¶
func (s *EditableProjectClientSide) UnmarshalText(data []byte) error
UnmarshalText implements encoding.TextUnmarshaler.
func (EditableProjectClientSide) Validate ¶
func (s EditableProjectClientSide) Validate() error
type EditableProjectRequestedStatus ¶
type EditableProjectRequestedStatus string
The requested status when submitting for review or scheduling the project for release.
const ( EditableProjectRequestedStatusApproved EditableProjectRequestedStatus = "approved" EditableProjectRequestedStatusArchived EditableProjectRequestedStatus = "archived" EditableProjectRequestedStatusUnlisted EditableProjectRequestedStatus = "unlisted" EditableProjectRequestedStatusPrivate EditableProjectRequestedStatus = "private" EditableProjectRequestedStatusDraft EditableProjectRequestedStatus = "draft" )
func (EditableProjectRequestedStatus) AllValues ¶
func (EditableProjectRequestedStatus) AllValues() []EditableProjectRequestedStatus
AllValues returns all EditableProjectRequestedStatus values.
func (*EditableProjectRequestedStatus) Decode ¶
func (s *EditableProjectRequestedStatus) Decode(d *jx.Decoder) error
Decode decodes EditableProjectRequestedStatus from json.
func (EditableProjectRequestedStatus) Encode ¶
func (s EditableProjectRequestedStatus) Encode(e *jx.Encoder)
Encode encodes EditableProjectRequestedStatus as json.
func (EditableProjectRequestedStatus) MarshalJSON ¶
func (s EditableProjectRequestedStatus) MarshalJSON() ([]byte, error)
MarshalJSON implements stdjson.Marshaler.
func (EditableProjectRequestedStatus) MarshalText ¶
func (s EditableProjectRequestedStatus) MarshalText() ([]byte, error)
MarshalText implements encoding.TextMarshaler.
func (*EditableProjectRequestedStatus) UnmarshalJSON ¶
func (s *EditableProjectRequestedStatus) UnmarshalJSON(data []byte) error
UnmarshalJSON implements stdjson.Unmarshaler.
func (*EditableProjectRequestedStatus) UnmarshalText ¶
func (s *EditableProjectRequestedStatus) UnmarshalText(data []byte) error
UnmarshalText implements encoding.TextUnmarshaler.
func (EditableProjectRequestedStatus) Validate ¶
func (s EditableProjectRequestedStatus) Validate() error
type EditableProjectServerSide ¶
type EditableProjectServerSide string
The server side support of the project.
const ( EditableProjectServerSideRequired EditableProjectServerSide = "required" EditableProjectServerSideOptional EditableProjectServerSide = "optional" EditableProjectServerSideUnsupported EditableProjectServerSide = "unsupported" EditableProjectServerSideUnknown EditableProjectServerSide = "unknown" )
func (EditableProjectServerSide) AllValues ¶
func (EditableProjectServerSide) AllValues() []EditableProjectServerSide
AllValues returns all EditableProjectServerSide values.
func (*EditableProjectServerSide) Decode ¶
func (s *EditableProjectServerSide) Decode(d *jx.Decoder) error
Decode decodes EditableProjectServerSide from json.
func (EditableProjectServerSide) Encode ¶
func (s EditableProjectServerSide) Encode(e *jx.Encoder)
Encode encodes EditableProjectServerSide as json.
func (EditableProjectServerSide) MarshalJSON ¶
func (s EditableProjectServerSide) MarshalJSON() ([]byte, error)
MarshalJSON implements stdjson.Marshaler.
func (EditableProjectServerSide) MarshalText ¶
func (s EditableProjectServerSide) MarshalText() ([]byte, error)
MarshalText implements encoding.TextMarshaler.
func (*EditableProjectServerSide) UnmarshalJSON ¶
func (s *EditableProjectServerSide) UnmarshalJSON(data []byte) error
UnmarshalJSON implements stdjson.Unmarshaler.
func (*EditableProjectServerSide) UnmarshalText ¶
func (s *EditableProjectServerSide) UnmarshalText(data []byte) error
UnmarshalText implements encoding.TextUnmarshaler.
func (EditableProjectServerSide) Validate ¶
func (s EditableProjectServerSide) Validate() error
type EditableProjectStatus ¶
type EditableProjectStatus string
The status of the project.
const ( EditableProjectStatusApproved EditableProjectStatus = "approved" EditableProjectStatusArchived EditableProjectStatus = "archived" EditableProjectStatusRejected EditableProjectStatus = "rejected" EditableProjectStatusDraft EditableProjectStatus = "draft" EditableProjectStatusUnlisted EditableProjectStatus = "unlisted" EditableProjectStatusProcessing EditableProjectStatus = "processing" EditableProjectStatusWithheld EditableProjectStatus = "withheld" EditableProjectStatusScheduled EditableProjectStatus = "scheduled" EditableProjectStatusPrivate EditableProjectStatus = "private" EditableProjectStatusUnknown EditableProjectStatus = "unknown" )
func (EditableProjectStatus) AllValues ¶
func (EditableProjectStatus) AllValues() []EditableProjectStatus
AllValues returns all EditableProjectStatus values.
func (*EditableProjectStatus) Decode ¶
func (s *EditableProjectStatus) Decode(d *jx.Decoder) error
Decode decodes EditableProjectStatus from json.
func (EditableProjectStatus) Encode ¶
func (s EditableProjectStatus) Encode(e *jx.Encoder)
Encode encodes EditableProjectStatus as json.
func (EditableProjectStatus) MarshalJSON ¶
func (s EditableProjectStatus) MarshalJSON() ([]byte, error)
MarshalJSON implements stdjson.Marshaler.
func (EditableProjectStatus) MarshalText ¶
func (s EditableProjectStatus) MarshalText() ([]byte, error)
MarshalText implements encoding.TextMarshaler.
func (*EditableProjectStatus) UnmarshalJSON ¶
func (s *EditableProjectStatus) UnmarshalJSON(data []byte) error
UnmarshalJSON implements stdjson.Unmarshaler.
func (*EditableProjectStatus) UnmarshalText ¶
func (s *EditableProjectStatus) UnmarshalText(data []byte) error
UnmarshalText implements encoding.TextUnmarshaler.
func (EditableProjectStatus) Validate ¶
func (s EditableProjectStatus) Validate() error
type EditableUser ¶
type EditableUser struct {
// The user's username.
Username string `json:"username"`
// The user's display name.
Name OptNilString `json:"name"`
// The user's email (only displayed if requesting your own account). Requires `USER_READ_EMAIL` PAT
// scope.
Email OptNilString `json:"email"`
// A description of the user.
Bio OptString `json:"bio"`
PayoutData OptNilUserPayoutData `json:"payout_data"`
}
Ref: #/components/schemas/EditableUser
func (*EditableUser) Decode ¶
func (s *EditableUser) Decode(d *jx.Decoder) error
Decode decodes EditableUser from json.
func (*EditableUser) Encode ¶
func (s *EditableUser) Encode(e *jx.Encoder)
Encode implements json.Marshaler.
func (*EditableUser) GetBio ¶
func (s *EditableUser) GetBio() OptString
GetBio returns the value of Bio.
func (*EditableUser) GetEmail ¶
func (s *EditableUser) GetEmail() OptNilString
GetEmail returns the value of Email.
func (*EditableUser) GetName ¶
func (s *EditableUser) GetName() OptNilString
GetName returns the value of Name.
func (*EditableUser) GetPayoutData ¶
func (s *EditableUser) GetPayoutData() OptNilUserPayoutData
GetPayoutData returns the value of PayoutData.
func (*EditableUser) GetUsername ¶
func (s *EditableUser) GetUsername() string
GetUsername returns the value of Username.
func (*EditableUser) MarshalJSON ¶
func (s *EditableUser) MarshalJSON() ([]byte, error)
MarshalJSON implements stdjson.Marshaler.
func (*EditableUser) SetBio ¶
func (s *EditableUser) SetBio(val OptString)
SetBio sets the value of Bio.
func (*EditableUser) SetEmail ¶
func (s *EditableUser) SetEmail(val OptNilString)
SetEmail sets the value of Email.
func (*EditableUser) SetName ¶
func (s *EditableUser) SetName(val OptNilString)
SetName sets the value of Name.
func (*EditableUser) SetPayoutData ¶
func (s *EditableUser) SetPayoutData(val OptNilUserPayoutData)
SetPayoutData sets the value of PayoutData.
func (*EditableUser) SetUsername ¶
func (s *EditableUser) SetUsername(val string)
SetUsername sets the value of Username.
func (*EditableUser) UnmarshalJSON ¶
func (s *EditableUser) UnmarshalJSON(data []byte) error
UnmarshalJSON implements stdjson.Unmarshaler.
func (*EditableUser) Validate ¶
func (s *EditableUser) Validate() error
type EditableVersion ¶
type EditableVersion struct {
// The name of this version.
Name OptString `json:"name"`
// The version number. Ideally will follow semantic versioning.
VersionNumber OptString `json:"version_number"`
// The changelog for this version.
Changelog OptNilString `json:"changelog"`
// A list of specific versions of projects that this version depends on.
Dependencies []VersionDependency `json:"dependencies"`
// A list of versions of Minecraft that this version supports.
GameVersions []string `json:"game_versions"`
// The release channel for this version.
VersionType OptEditableVersionVersionType `json:"version_type"`
// The mod loaders that this version supports. In case of resource packs, use "minecraft".
Loaders []string `json:"loaders"`
// Whether the version is featured or not.
Featured OptBool `json:"featured"`
Status OptEditableVersionStatus `json:"status"`
RequestedStatus OptNilEditableVersionRequestedStatus `json:"requested_status"`
// The hash format and the hash of the new primary file.
PrimaryFile []string `json:"primary_file"`
// A list of file_types to edit.
FileTypes []EditableFileType `json:"file_types"`
}
Merged schema. Ref: #/components/schemas/EditableVersion
func (*EditableVersion) Decode ¶
func (s *EditableVersion) Decode(d *jx.Decoder) error
Decode decodes EditableVersion from json.
func (*EditableVersion) Encode ¶
func (s *EditableVersion) Encode(e *jx.Encoder)
Encode implements json.Marshaler.
func (*EditableVersion) GetChangelog ¶
func (s *EditableVersion) GetChangelog() OptNilString
GetChangelog returns the value of Changelog.
func (*EditableVersion) GetDependencies ¶
func (s *EditableVersion) GetDependencies() []VersionDependency
GetDependencies returns the value of Dependencies.
func (*EditableVersion) GetFeatured ¶
func (s *EditableVersion) GetFeatured() OptBool
GetFeatured returns the value of Featured.
func (*EditableVersion) GetFileTypes ¶
func (s *EditableVersion) GetFileTypes() []EditableFileType
GetFileTypes returns the value of FileTypes.
func (*EditableVersion) GetGameVersions ¶
func (s *EditableVersion) GetGameVersions() []string
GetGameVersions returns the value of GameVersions.
func (*EditableVersion) GetLoaders ¶
func (s *EditableVersion) GetLoaders() []string
GetLoaders returns the value of Loaders.
func (*EditableVersion) GetName ¶
func (s *EditableVersion) GetName() OptString
GetName returns the value of Name.
func (*EditableVersion) GetPrimaryFile ¶
func (s *EditableVersion) GetPrimaryFile() []string
GetPrimaryFile returns the value of PrimaryFile.
func (*EditableVersion) GetRequestedStatus ¶
func (s *EditableVersion) GetRequestedStatus() OptNilEditableVersionRequestedStatus
GetRequestedStatus returns the value of RequestedStatus.
func (*EditableVersion) GetStatus ¶
func (s *EditableVersion) GetStatus() OptEditableVersionStatus
GetStatus returns the value of Status.
func (*EditableVersion) GetVersionNumber ¶
func (s *EditableVersion) GetVersionNumber() OptString
GetVersionNumber returns the value of VersionNumber.
func (*EditableVersion) GetVersionType ¶
func (s *EditableVersion) GetVersionType() OptEditableVersionVersionType
GetVersionType returns the value of VersionType.
func (*EditableVersion) MarshalJSON ¶
func (s *EditableVersion) MarshalJSON() ([]byte, error)
MarshalJSON implements stdjson.Marshaler.
func (*EditableVersion) SetChangelog ¶
func (s *EditableVersion) SetChangelog(val OptNilString)
SetChangelog sets the value of Changelog.
func (*EditableVersion) SetDependencies ¶
func (s *EditableVersion) SetDependencies(val []VersionDependency)
SetDependencies sets the value of Dependencies.
func (*EditableVersion) SetFeatured ¶
func (s *EditableVersion) SetFeatured(val OptBool)
SetFeatured sets the value of Featured.
func (*EditableVersion) SetFileTypes ¶
func (s *EditableVersion) SetFileTypes(val []EditableFileType)
SetFileTypes sets the value of FileTypes.
func (*EditableVersion) SetGameVersions ¶
func (s *EditableVersion) SetGameVersions(val []string)
SetGameVersions sets the value of GameVersions.
func (*EditableVersion) SetLoaders ¶
func (s *EditableVersion) SetLoaders(val []string)
SetLoaders sets the value of Loaders.
func (*EditableVersion) SetName ¶
func (s *EditableVersion) SetName(val OptString)
SetName sets the value of Name.
func (*EditableVersion) SetPrimaryFile ¶
func (s *EditableVersion) SetPrimaryFile(val []string)
SetPrimaryFile sets the value of PrimaryFile.
func (*EditableVersion) SetRequestedStatus ¶
func (s *EditableVersion) SetRequestedStatus(val OptNilEditableVersionRequestedStatus)
SetRequestedStatus sets the value of RequestedStatus.
func (*EditableVersion) SetStatus ¶
func (s *EditableVersion) SetStatus(val OptEditableVersionStatus)
SetStatus sets the value of Status.
func (*EditableVersion) SetVersionNumber ¶
func (s *EditableVersion) SetVersionNumber(val OptString)
SetVersionNumber sets the value of VersionNumber.
func (*EditableVersion) SetVersionType ¶
func (s *EditableVersion) SetVersionType(val OptEditableVersionVersionType)
SetVersionType sets the value of VersionType.
func (*EditableVersion) UnmarshalJSON ¶
func (s *EditableVersion) UnmarshalJSON(data []byte) error
UnmarshalJSON implements stdjson.Unmarshaler.
func (*EditableVersion) Validate ¶
func (s *EditableVersion) Validate() error
type EditableVersionRequestedStatus ¶
type EditableVersionRequestedStatus string
const ( EditableVersionRequestedStatusListed EditableVersionRequestedStatus = "listed" EditableVersionRequestedStatusArchived EditableVersionRequestedStatus = "archived" EditableVersionRequestedStatusDraft EditableVersionRequestedStatus = "draft" EditableVersionRequestedStatusUnlisted EditableVersionRequestedStatus = "unlisted" )
func (EditableVersionRequestedStatus) AllValues ¶
func (EditableVersionRequestedStatus) AllValues() []EditableVersionRequestedStatus
AllValues returns all EditableVersionRequestedStatus values.
func (*EditableVersionRequestedStatus) Decode ¶
func (s *EditableVersionRequestedStatus) Decode(d *jx.Decoder) error
Decode decodes EditableVersionRequestedStatus from json.
func (EditableVersionRequestedStatus) Encode ¶
func (s EditableVersionRequestedStatus) Encode(e *jx.Encoder)
Encode encodes EditableVersionRequestedStatus as json.
func (EditableVersionRequestedStatus) MarshalJSON ¶
func (s EditableVersionRequestedStatus) MarshalJSON() ([]byte, error)
MarshalJSON implements stdjson.Marshaler.
func (EditableVersionRequestedStatus) MarshalText ¶
func (s EditableVersionRequestedStatus) MarshalText() ([]byte, error)
MarshalText implements encoding.TextMarshaler.
func (*EditableVersionRequestedStatus) UnmarshalJSON ¶
func (s *EditableVersionRequestedStatus) UnmarshalJSON(data []byte) error
UnmarshalJSON implements stdjson.Unmarshaler.
func (*EditableVersionRequestedStatus) UnmarshalText ¶
func (s *EditableVersionRequestedStatus) UnmarshalText(data []byte) error
UnmarshalText implements encoding.TextUnmarshaler.
func (EditableVersionRequestedStatus) Validate ¶
func (s EditableVersionRequestedStatus) Validate() error
type EditableVersionStatus ¶
type EditableVersionStatus string
const ( EditableVersionStatusListed EditableVersionStatus = "listed" EditableVersionStatusArchived EditableVersionStatus = "archived" EditableVersionStatusDraft EditableVersionStatus = "draft" EditableVersionStatusUnlisted EditableVersionStatus = "unlisted" EditableVersionStatusScheduled EditableVersionStatus = "scheduled" EditableVersionStatusUnknown EditableVersionStatus = "unknown" )
func (EditableVersionStatus) AllValues ¶
func (EditableVersionStatus) AllValues() []EditableVersionStatus
AllValues returns all EditableVersionStatus values.
func (*EditableVersionStatus) Decode ¶
func (s *EditableVersionStatus) Decode(d *jx.Decoder) error
Decode decodes EditableVersionStatus from json.
func (EditableVersionStatus) Encode ¶
func (s EditableVersionStatus) Encode(e *jx.Encoder)
Encode encodes EditableVersionStatus as json.
func (EditableVersionStatus) MarshalJSON ¶
func (s EditableVersionStatus) MarshalJSON() ([]byte, error)
MarshalJSON implements stdjson.Marshaler.
func (EditableVersionStatus) MarshalText ¶
func (s EditableVersionStatus) MarshalText() ([]byte, error)
MarshalText implements encoding.TextMarshaler.
func (*EditableVersionStatus) UnmarshalJSON ¶
func (s *EditableVersionStatus) UnmarshalJSON(data []byte) error
UnmarshalJSON implements stdjson.Unmarshaler.
func (*EditableVersionStatus) UnmarshalText ¶
func (s *EditableVersionStatus) UnmarshalText(data []byte) error
UnmarshalText implements encoding.TextUnmarshaler.
func (EditableVersionStatus) Validate ¶
func (s EditableVersionStatus) Validate() error
type EditableVersionVersionType ¶
type EditableVersionVersionType string
The release channel for this version.
const ( EditableVersionVersionTypeRelease EditableVersionVersionType = "release" EditableVersionVersionTypeBeta EditableVersionVersionType = "beta" EditableVersionVersionTypeAlpha EditableVersionVersionType = "alpha" )
func (EditableVersionVersionType) AllValues ¶
func (EditableVersionVersionType) AllValues() []EditableVersionVersionType
AllValues returns all EditableVersionVersionType values.
func (*EditableVersionVersionType) Decode ¶
func (s *EditableVersionVersionType) Decode(d *jx.Decoder) error
Decode decodes EditableVersionVersionType from json.
func (EditableVersionVersionType) Encode ¶
func (s EditableVersionVersionType) Encode(e *jx.Encoder)
Encode encodes EditableVersionVersionType as json.
func (EditableVersionVersionType) MarshalJSON ¶
func (s EditableVersionVersionType) MarshalJSON() ([]byte, error)
MarshalJSON implements stdjson.Marshaler.
func (EditableVersionVersionType) MarshalText ¶
func (s EditableVersionVersionType) MarshalText() ([]byte, error)
MarshalText implements encoding.TextMarshaler.
func (*EditableVersionVersionType) UnmarshalJSON ¶
func (s *EditableVersionVersionType) UnmarshalJSON(data []byte) error
UnmarshalJSON implements stdjson.Unmarshaler.
func (*EditableVersionVersionType) UnmarshalText ¶
func (s *EditableVersionVersionType) UnmarshalText(data []byte) error
UnmarshalText implements encoding.TextUnmarshaler.
func (EditableVersionVersionType) Validate ¶
func (s EditableVersionVersionType) Validate() error
type FollowProjectNoContent ¶
type FollowProjectNoContent struct{}
FollowProjectNoContent is response for FollowProject operation.
type FollowProjectParams ¶
type FollowProjectParams struct {
// The ID or slug of the project.
IDSlug string
}
FollowProjectParams is parameters of followProject operation.
type FollowProjectRes ¶
type FollowProjectRes interface {
// contains filtered or unexported methods
}
type ForgeUpdateCheckerPromos ¶
type ForgeUpdateCheckerPromos struct {
// The mod version that is recommended for `{version}`. Excludes versions with the `alpha` and `beta`
// version types.
VersionMinusRecommended OptString `json:"{version}-recommended"`
// The latest mod version for `{version}`. Shows versions with the `alpha` and `beta` version types.
VersionMinusLatest OptString `json:"{version}-latest"`
}
A list of the recommended and latest versions for each Minecraft release. Ref: #/components/schemas/ForgeUpdateCheckerPromos
func (*ForgeUpdateCheckerPromos) Decode ¶
func (s *ForgeUpdateCheckerPromos) Decode(d *jx.Decoder) error
Decode decodes ForgeUpdateCheckerPromos from json.
func (*ForgeUpdateCheckerPromos) Encode ¶
func (s *ForgeUpdateCheckerPromos) Encode(e *jx.Encoder)
Encode implements json.Marshaler.
func (*ForgeUpdateCheckerPromos) GetVersionMinusLatest ¶
func (s *ForgeUpdateCheckerPromos) GetVersionMinusLatest() OptString
GetVersionMinusLatest returns the value of VersionMinusLatest.
func (*ForgeUpdateCheckerPromos) GetVersionMinusRecommended ¶
func (s *ForgeUpdateCheckerPromos) GetVersionMinusRecommended() OptString
GetVersionMinusRecommended returns the value of VersionMinusRecommended.
func (*ForgeUpdateCheckerPromos) MarshalJSON ¶
func (s *ForgeUpdateCheckerPromos) MarshalJSON() ([]byte, error)
MarshalJSON implements stdjson.Marshaler.
func (*ForgeUpdateCheckerPromos) SetVersionMinusLatest ¶
func (s *ForgeUpdateCheckerPromos) SetVersionMinusLatest(val OptString)
SetVersionMinusLatest sets the value of VersionMinusLatest.
func (*ForgeUpdateCheckerPromos) SetVersionMinusRecommended ¶
func (s *ForgeUpdateCheckerPromos) SetVersionMinusRecommended(val OptString)
SetVersionMinusRecommended sets the value of VersionMinusRecommended.
func (*ForgeUpdateCheckerPromos) UnmarshalJSON ¶
func (s *ForgeUpdateCheckerPromos) UnmarshalJSON(data []byte) error
UnmarshalJSON implements stdjson.Unmarshaler.
type ForgeUpdates ¶
type ForgeUpdates struct {
// A link to the mod page.
Homepage OptString `json:"homepage"`
Promos OptForgeUpdateCheckerPromos `json:"promos"`
}
Mod version information that can be consumed by Forge's update checker. Ref: #/components/schemas/ForgeUpdates
func (*ForgeUpdates) Decode ¶
func (s *ForgeUpdates) Decode(d *jx.Decoder) error
Decode decodes ForgeUpdates from json.
func (*ForgeUpdates) Encode ¶
func (s *ForgeUpdates) Encode(e *jx.Encoder)
Encode implements json.Marshaler.
func (*ForgeUpdates) GetHomepage ¶
func (s *ForgeUpdates) GetHomepage() OptString
GetHomepage returns the value of Homepage.
func (*ForgeUpdates) GetPromos ¶
func (s *ForgeUpdates) GetPromos() OptForgeUpdateCheckerPromos
GetPromos returns the value of Promos.
func (*ForgeUpdates) MarshalJSON ¶
func (s *ForgeUpdates) MarshalJSON() ([]byte, error)
MarshalJSON implements stdjson.Marshaler.
func (*ForgeUpdates) SetHomepage ¶
func (s *ForgeUpdates) SetHomepage(val OptString)
SetHomepage sets the value of Homepage.
func (*ForgeUpdates) SetPromos ¶
func (s *ForgeUpdates) SetPromos(val OptForgeUpdateCheckerPromos)
SetPromos sets the value of Promos.
func (*ForgeUpdates) UnmarshalJSON ¶
func (s *ForgeUpdates) UnmarshalJSON(data []byte) error
UnmarshalJSON implements stdjson.Unmarshaler.
type ForgeUpdatesParams ¶
type ForgeUpdatesParams struct {
// The ID or slug of the project.
IDSlug string
}
ForgeUpdatesParams is parameters of forgeUpdates operation.
type ForgeUpdatesRes ¶
type ForgeUpdatesRes interface {
// contains filtered or unexported methods
}
type GalleryImage ¶
type GalleryImage struct {
// The URL of the gallery image.
URL string `json:"url"`
// Whether the image is featured in the gallery.
Featured bool `json:"featured"`
// The title of the gallery image.
Title OptNilString `json:"title"`
// The description of the gallery image.
Description OptNilString `json:"description"`
// The date and time the gallery image was created.
Created string `json:"created"`
// The order of the gallery image. Gallery images are sorted by this field and then alphabetically by
// title.
Ordering OptInt `json:"ordering"`
}
Ref: #/components/schemas/GalleryImage
func (*GalleryImage) Decode ¶
func (s *GalleryImage) Decode(d *jx.Decoder) error
Decode decodes GalleryImage from json.
func (*GalleryImage) Encode ¶
func (s *GalleryImage) Encode(e *jx.Encoder)
Encode implements json.Marshaler.
func (*GalleryImage) GetCreated ¶
func (s *GalleryImage) GetCreated() string
GetCreated returns the value of Created.
func (*GalleryImage) GetDescription ¶
func (s *GalleryImage) GetDescription() OptNilString
GetDescription returns the value of Description.
func (*GalleryImage) GetFeatured ¶
func (s *GalleryImage) GetFeatured() bool
GetFeatured returns the value of Featured.
func (*GalleryImage) GetOrdering ¶
func (s *GalleryImage) GetOrdering() OptInt
GetOrdering returns the value of Ordering.
func (*GalleryImage) GetTitle ¶
func (s *GalleryImage) GetTitle() OptNilString
GetTitle returns the value of Title.
func (*GalleryImage) GetURL ¶
func (s *GalleryImage) GetURL() string
GetURL returns the value of URL.
func (*GalleryImage) MarshalJSON ¶
func (s *GalleryImage) MarshalJSON() ([]byte, error)
MarshalJSON implements stdjson.Marshaler.
func (*GalleryImage) SetCreated ¶
func (s *GalleryImage) SetCreated(val string)
SetCreated sets the value of Created.
func (*GalleryImage) SetDescription ¶
func (s *GalleryImage) SetDescription(val OptNilString)
SetDescription sets the value of Description.
func (*GalleryImage) SetFeatured ¶
func (s *GalleryImage) SetFeatured(val bool)
SetFeatured sets the value of Featured.
func (*GalleryImage) SetOrdering ¶
func (s *GalleryImage) SetOrdering(val OptInt)
SetOrdering sets the value of Ordering.
func (*GalleryImage) SetTitle ¶
func (s *GalleryImage) SetTitle(val OptNilString)
SetTitle sets the value of Title.
func (*GalleryImage) SetURL ¶
func (s *GalleryImage) SetURL(val string)
SetURL sets the value of URL.
func (*GalleryImage) UnmarshalJSON ¶
func (s *GalleryImage) UnmarshalJSON(data []byte) error
UnmarshalJSON implements stdjson.Unmarshaler.
type GameVersionTag ¶
type GameVersionTag struct {
// The name/number of the game version.
Version string `json:"version"`
// The type of the game version.
VersionType GameVersionTagVersionType `json:"version_type"`
// The date of the game version release.
Date string `json:"date"`
// Whether or not this is a major version, used for Featured Versions.
Major bool `json:"major"`
}
Ref: #/components/schemas/GameVersionTag
func (*GameVersionTag) Decode ¶
func (s *GameVersionTag) Decode(d *jx.Decoder) error
Decode decodes GameVersionTag from json.
func (*GameVersionTag) Encode ¶
func (s *GameVersionTag) Encode(e *jx.Encoder)
Encode implements json.Marshaler.
func (*GameVersionTag) GetDate ¶
func (s *GameVersionTag) GetDate() string
GetDate returns the value of Date.
func (*GameVersionTag) GetMajor ¶
func (s *GameVersionTag) GetMajor() bool
GetMajor returns the value of Major.
func (*GameVersionTag) GetVersion ¶
func (s *GameVersionTag) GetVersion() string
GetVersion returns the value of Version.
func (*GameVersionTag) GetVersionType ¶
func (s *GameVersionTag) GetVersionType() GameVersionTagVersionType
GetVersionType returns the value of VersionType.
func (*GameVersionTag) MarshalJSON ¶
func (s *GameVersionTag) MarshalJSON() ([]byte, error)
MarshalJSON implements stdjson.Marshaler.
func (*GameVersionTag) SetDate ¶
func (s *GameVersionTag) SetDate(val string)
SetDate sets the value of Date.
func (*GameVersionTag) SetMajor ¶
func (s *GameVersionTag) SetMajor(val bool)
SetMajor sets the value of Major.
func (*GameVersionTag) SetVersion ¶
func (s *GameVersionTag) SetVersion(val string)
SetVersion sets the value of Version.
func (*GameVersionTag) SetVersionType ¶
func (s *GameVersionTag) SetVersionType(val GameVersionTagVersionType)
SetVersionType sets the value of VersionType.
func (*GameVersionTag) UnmarshalJSON ¶
func (s *GameVersionTag) UnmarshalJSON(data []byte) error
UnmarshalJSON implements stdjson.Unmarshaler.
func (*GameVersionTag) Validate ¶
func (s *GameVersionTag) Validate() error
type GameVersionTagVersionType ¶
type GameVersionTagVersionType string
The type of the game version.
const ( GameVersionTagVersionTypeRelease GameVersionTagVersionType = "release" GameVersionTagVersionTypeSnapshot GameVersionTagVersionType = "snapshot" GameVersionTagVersionTypeAlpha GameVersionTagVersionType = "alpha" GameVersionTagVersionTypeBeta GameVersionTagVersionType = "beta" )
func (GameVersionTagVersionType) AllValues ¶
func (GameVersionTagVersionType) AllValues() []GameVersionTagVersionType
AllValues returns all GameVersionTagVersionType values.
func (*GameVersionTagVersionType) Decode ¶
func (s *GameVersionTagVersionType) Decode(d *jx.Decoder) error
Decode decodes GameVersionTagVersionType from json.
func (GameVersionTagVersionType) Encode ¶
func (s GameVersionTagVersionType) Encode(e *jx.Encoder)
Encode encodes GameVersionTagVersionType as json.
func (GameVersionTagVersionType) MarshalJSON ¶
func (s GameVersionTagVersionType) MarshalJSON() ([]byte, error)
MarshalJSON implements stdjson.Marshaler.
func (GameVersionTagVersionType) MarshalText ¶
func (s GameVersionTagVersionType) MarshalText() ([]byte, error)
MarshalText implements encoding.TextMarshaler.
func (*GameVersionTagVersionType) UnmarshalJSON ¶
func (s *GameVersionTagVersionType) UnmarshalJSON(data []byte) error
UnmarshalJSON implements stdjson.Unmarshaler.
func (*GameVersionTagVersionType) UnmarshalText ¶
func (s *GameVersionTagVersionType) UnmarshalText(data []byte) error
UnmarshalText implements encoding.TextUnmarshaler.
func (GameVersionTagVersionType) Validate ¶
func (s GameVersionTagVersionType) Validate() error
type GetDependenciesNotFound ¶
type GetDependenciesNotFound struct{}
GetDependenciesNotFound is response for GetDependencies operation.
type GetDependenciesParams ¶
type GetDependenciesParams struct {
// The ID or slug of the project.
IDSlug string
}
GetDependenciesParams is parameters of getDependencies operation.
type GetDependenciesRes ¶
type GetDependenciesRes interface {
// contains filtered or unexported methods
}
type GetFollowedProjectsNotFound ¶
type GetFollowedProjectsNotFound struct{}
GetFollowedProjectsNotFound is response for GetFollowedProjects operation.
type GetFollowedProjectsOKApplicationJSON ¶
type GetFollowedProjectsOKApplicationJSON []Project
func (*GetFollowedProjectsOKApplicationJSON) Decode ¶
func (s *GetFollowedProjectsOKApplicationJSON) Decode(d *jx.Decoder) error
Decode decodes GetFollowedProjectsOKApplicationJSON from json.
func (GetFollowedProjectsOKApplicationJSON) Encode ¶
func (s GetFollowedProjectsOKApplicationJSON) Encode(e *jx.Encoder)
Encode encodes GetFollowedProjectsOKApplicationJSON as json.
func (GetFollowedProjectsOKApplicationJSON) MarshalJSON ¶
func (s GetFollowedProjectsOKApplicationJSON) MarshalJSON() ([]byte, error)
MarshalJSON implements stdjson.Marshaler.
func (*GetFollowedProjectsOKApplicationJSON) UnmarshalJSON ¶
func (s *GetFollowedProjectsOKApplicationJSON) UnmarshalJSON(data []byte) error
UnmarshalJSON implements stdjson.Unmarshaler.
func (GetFollowedProjectsOKApplicationJSON) Validate ¶
func (s GetFollowedProjectsOKApplicationJSON) Validate() error
type GetFollowedProjectsParams ¶
type GetFollowedProjectsParams struct {
// The ID or username of the user.
IDUsername string
}
GetFollowedProjectsParams is parameters of getFollowedProjects operation.
type GetFollowedProjectsRes ¶
type GetFollowedProjectsRes interface {
// contains filtered or unexported methods
}
type GetLatestVersionFromHashBadRequest ¶
type GetLatestVersionFromHashBadRequest struct{}
GetLatestVersionFromHashBadRequest is response for GetLatestVersionFromHash operation.
type GetLatestVersionFromHashBody ¶
type GetLatestVersionFromHashBody struct {
Loaders []string `json:"loaders"`
GameVersions []string `json:"game_versions"`
}
Ref: #/components/schemas/GetLatestVersionFromHashBody
func (*GetLatestVersionFromHashBody) Decode ¶
func (s *GetLatestVersionFromHashBody) Decode(d *jx.Decoder) error
Decode decodes GetLatestVersionFromHashBody from json.
func (*GetLatestVersionFromHashBody) Encode ¶
func (s *GetLatestVersionFromHashBody) Encode(e *jx.Encoder)
Encode implements json.Marshaler.
func (*GetLatestVersionFromHashBody) GetGameVersions ¶
func (s *GetLatestVersionFromHashBody) GetGameVersions() []string
GetGameVersions returns the value of GameVersions.
func (*GetLatestVersionFromHashBody) GetLoaders ¶
func (s *GetLatestVersionFromHashBody) GetLoaders() []string
GetLoaders returns the value of Loaders.
func (*GetLatestVersionFromHashBody) MarshalJSON ¶
func (s *GetLatestVersionFromHashBody) MarshalJSON() ([]byte, error)
MarshalJSON implements stdjson.Marshaler.
func (*GetLatestVersionFromHashBody) SetGameVersions ¶
func (s *GetLatestVersionFromHashBody) SetGameVersions(val []string)
SetGameVersions sets the value of GameVersions.
func (*GetLatestVersionFromHashBody) SetLoaders ¶
func (s *GetLatestVersionFromHashBody) SetLoaders(val []string)
SetLoaders sets the value of Loaders.
func (*GetLatestVersionFromHashBody) UnmarshalJSON ¶
func (s *GetLatestVersionFromHashBody) UnmarshalJSON(data []byte) error
UnmarshalJSON implements stdjson.Unmarshaler.
func (*GetLatestVersionFromHashBody) Validate ¶
func (s *GetLatestVersionFromHashBody) Validate() error
type GetLatestVersionFromHashNotFound ¶
type GetLatestVersionFromHashNotFound struct{}
GetLatestVersionFromHashNotFound is response for GetLatestVersionFromHash operation.
type GetLatestVersionFromHashParams ¶
type GetLatestVersionFromHashParams struct {
// The hash of the file, considering its byte content, and encoded in hexadecimal.
Hash string
// The algorithm of the hash.
Algorithm AlgorithmIdentifier
}
GetLatestVersionFromHashParams is parameters of getLatestVersionFromHash operation.
type GetLatestVersionFromHashRes ¶
type GetLatestVersionFromHashRes interface {
// contains filtered or unexported methods
}
type GetLatestVersionsFromHashesBadRequest ¶
type GetLatestVersionsFromHashesBadRequest struct{}
GetLatestVersionsFromHashesBadRequest is response for GetLatestVersionsFromHashes operation.
type GetLatestVersionsFromHashesBody ¶
type GetLatestVersionsFromHashesBody struct {
Hashes []string `json:"hashes"`
Algorithm GetLatestVersionsFromHashesBodyAlgorithm `json:"algorithm"`
Loaders []string `json:"loaders"`
GameVersions []string `json:"game_versions"`
}
Merged schema. Ref: #/components/schemas/GetLatestVersionsFromHashesBody
func (*GetLatestVersionsFromHashesBody) Decode ¶
func (s *GetLatestVersionsFromHashesBody) Decode(d *jx.Decoder) error
Decode decodes GetLatestVersionsFromHashesBody from json.
func (*GetLatestVersionsFromHashesBody) Encode ¶
func (s *GetLatestVersionsFromHashesBody) Encode(e *jx.Encoder)
Encode implements json.Marshaler.
func (*GetLatestVersionsFromHashesBody) GetAlgorithm ¶
func (s *GetLatestVersionsFromHashesBody) GetAlgorithm() GetLatestVersionsFromHashesBodyAlgorithm
GetAlgorithm returns the value of Algorithm.
func (*GetLatestVersionsFromHashesBody) GetGameVersions ¶
func (s *GetLatestVersionsFromHashesBody) GetGameVersions() []string
GetGameVersions returns the value of GameVersions.
func (*GetLatestVersionsFromHashesBody) GetHashes ¶
func (s *GetLatestVersionsFromHashesBody) GetHashes() []string
GetHashes returns the value of Hashes.
func (*GetLatestVersionsFromHashesBody) GetLoaders ¶
func (s *GetLatestVersionsFromHashesBody) GetLoaders() []string
GetLoaders returns the value of Loaders.
func (*GetLatestVersionsFromHashesBody) MarshalJSON ¶
func (s *GetLatestVersionsFromHashesBody) MarshalJSON() ([]byte, error)
MarshalJSON implements stdjson.Marshaler.
func (*GetLatestVersionsFromHashesBody) SetAlgorithm ¶
func (s *GetLatestVersionsFromHashesBody) SetAlgorithm(val GetLatestVersionsFromHashesBodyAlgorithm)
SetAlgorithm sets the value of Algorithm.
func (*GetLatestVersionsFromHashesBody) SetGameVersions ¶
func (s *GetLatestVersionsFromHashesBody) SetGameVersions(val []string)
SetGameVersions sets the value of GameVersions.
func (*GetLatestVersionsFromHashesBody) SetHashes ¶
func (s *GetLatestVersionsFromHashesBody) SetHashes(val []string)
SetHashes sets the value of Hashes.
func (*GetLatestVersionsFromHashesBody) SetLoaders ¶
func (s *GetLatestVersionsFromHashesBody) SetLoaders(val []string)
SetLoaders sets the value of Loaders.
func (*GetLatestVersionsFromHashesBody) UnmarshalJSON ¶
func (s *GetLatestVersionsFromHashesBody) UnmarshalJSON(data []byte) error
UnmarshalJSON implements stdjson.Unmarshaler.
func (*GetLatestVersionsFromHashesBody) Validate ¶
func (s *GetLatestVersionsFromHashesBody) Validate() error
type GetLatestVersionsFromHashesBodyAlgorithm ¶
type GetLatestVersionsFromHashesBodyAlgorithm string
const ( GetLatestVersionsFromHashesBodyAlgorithmSHA1 GetLatestVersionsFromHashesBodyAlgorithm = "sha1" GetLatestVersionsFromHashesBodyAlgorithmSha512 GetLatestVersionsFromHashesBodyAlgorithm = "sha512" )
func (GetLatestVersionsFromHashesBodyAlgorithm) AllValues ¶
func (GetLatestVersionsFromHashesBodyAlgorithm) AllValues() []GetLatestVersionsFromHashesBodyAlgorithm
AllValues returns all GetLatestVersionsFromHashesBodyAlgorithm values.
func (*GetLatestVersionsFromHashesBodyAlgorithm) Decode ¶
func (s *GetLatestVersionsFromHashesBodyAlgorithm) Decode(d *jx.Decoder) error
Decode decodes GetLatestVersionsFromHashesBodyAlgorithm from json.
func (GetLatestVersionsFromHashesBodyAlgorithm) Encode ¶
func (s GetLatestVersionsFromHashesBodyAlgorithm) Encode(e *jx.Encoder)
Encode encodes GetLatestVersionsFromHashesBodyAlgorithm as json.
func (GetLatestVersionsFromHashesBodyAlgorithm) MarshalJSON ¶
func (s GetLatestVersionsFromHashesBodyAlgorithm) MarshalJSON() ([]byte, error)
MarshalJSON implements stdjson.Marshaler.
func (GetLatestVersionsFromHashesBodyAlgorithm) MarshalText ¶
func (s GetLatestVersionsFromHashesBodyAlgorithm) MarshalText() ([]byte, error)
MarshalText implements encoding.TextMarshaler.
func (*GetLatestVersionsFromHashesBodyAlgorithm) UnmarshalJSON ¶
func (s *GetLatestVersionsFromHashesBodyAlgorithm) UnmarshalJSON(data []byte) error
UnmarshalJSON implements stdjson.Unmarshaler.
func (*GetLatestVersionsFromHashesBodyAlgorithm) UnmarshalText ¶
func (s *GetLatestVersionsFromHashesBodyAlgorithm) UnmarshalText(data []byte) error
UnmarshalText implements encoding.TextUnmarshaler.
func (GetLatestVersionsFromHashesBodyAlgorithm) Validate ¶
func (s GetLatestVersionsFromHashesBodyAlgorithm) Validate() error
type GetLatestVersionsFromHashesRes ¶
type GetLatestVersionsFromHashesRes interface {
// contains filtered or unexported methods
}
type GetNotificationNotFound ¶
type GetNotificationNotFound struct{}
GetNotificationNotFound is response for GetNotification operation.
type GetNotificationParams ¶
type GetNotificationParams struct {
// The ID of the notification.
ID string
}
GetNotificationParams is parameters of getNotification operation.
type GetNotificationRes ¶
type GetNotificationRes interface {
// contains filtered or unexported methods
}
type GetNotificationsNotFound ¶
type GetNotificationsNotFound struct{}
GetNotificationsNotFound is response for GetNotifications operation.
type GetNotificationsOKApplicationJSON ¶
type GetNotificationsOKApplicationJSON []Notification
func (*GetNotificationsOKApplicationJSON) Decode ¶
func (s *GetNotificationsOKApplicationJSON) Decode(d *jx.Decoder) error
Decode decodes GetNotificationsOKApplicationJSON from json.
func (GetNotificationsOKApplicationJSON) Encode ¶
func (s GetNotificationsOKApplicationJSON) Encode(e *jx.Encoder)
Encode encodes GetNotificationsOKApplicationJSON as json.
func (GetNotificationsOKApplicationJSON) MarshalJSON ¶
func (s GetNotificationsOKApplicationJSON) MarshalJSON() ([]byte, error)
MarshalJSON implements stdjson.Marshaler.
func (*GetNotificationsOKApplicationJSON) UnmarshalJSON ¶
func (s *GetNotificationsOKApplicationJSON) UnmarshalJSON(data []byte) error
UnmarshalJSON implements stdjson.Unmarshaler.
func (GetNotificationsOKApplicationJSON) Validate ¶
func (s GetNotificationsOKApplicationJSON) Validate() error
type GetNotificationsParams ¶
type GetNotificationsParams struct {
// The IDs of the notifications.
Ids string
}
GetNotificationsParams is parameters of getNotifications operation.
type GetNotificationsRes ¶
type GetNotificationsRes interface {
// contains filtered or unexported methods
}
type GetOpenReportsNotFound ¶
type GetOpenReportsNotFound struct{}
GetOpenReportsNotFound is response for GetOpenReports operation.
type GetOpenReportsOKApplicationJSON ¶
type GetOpenReportsOKApplicationJSON []Report
func (*GetOpenReportsOKApplicationJSON) Decode ¶
func (s *GetOpenReportsOKApplicationJSON) Decode(d *jx.Decoder) error
Decode decodes GetOpenReportsOKApplicationJSON from json.
func (GetOpenReportsOKApplicationJSON) Encode ¶
func (s GetOpenReportsOKApplicationJSON) Encode(e *jx.Encoder)
Encode encodes GetOpenReportsOKApplicationJSON as json.
func (GetOpenReportsOKApplicationJSON) MarshalJSON ¶
func (s GetOpenReportsOKApplicationJSON) MarshalJSON() ([]byte, error)
MarshalJSON implements stdjson.Marshaler.
func (*GetOpenReportsOKApplicationJSON) UnmarshalJSON ¶
func (s *GetOpenReportsOKApplicationJSON) UnmarshalJSON(data []byte) error
UnmarshalJSON implements stdjson.Unmarshaler.
func (GetOpenReportsOKApplicationJSON) Validate ¶
func (s GetOpenReportsOKApplicationJSON) Validate() error
type GetOpenReportsParams ¶
type GetOpenReportsParams struct {
Count OptInt
}
GetOpenReportsParams is parameters of getOpenReports operation.
type GetOpenReportsRes ¶
type GetOpenReportsRes interface {
// contains filtered or unexported methods
}
type GetPayoutHistoryNotFound ¶
type GetPayoutHistoryNotFound struct{}
GetPayoutHistoryNotFound is response for GetPayoutHistory operation.
type GetPayoutHistoryParams ¶
type GetPayoutHistoryParams struct {
// The ID or username of the user.
IDUsername string
}
GetPayoutHistoryParams is parameters of getPayoutHistory operation.
type GetPayoutHistoryRes ¶
type GetPayoutHistoryRes interface {
// contains filtered or unexported methods
}
type GetProjectNotFound ¶
type GetProjectNotFound struct{}
GetProjectNotFound is response for GetProject operation.
type GetProjectParams ¶
type GetProjectParams struct {
// The ID or slug of the project.
IDSlug string
}
GetProjectParams is parameters of getProject operation.
type GetProjectRes ¶
type GetProjectRes interface {
// contains filtered or unexported methods
}
type GetProjectTeamMembersNotFound ¶
type GetProjectTeamMembersNotFound struct{}
GetProjectTeamMembersNotFound is response for GetProjectTeamMembers operation.
type GetProjectTeamMembersOKApplicationJSON ¶
type GetProjectTeamMembersOKApplicationJSON []TeamMember
func (*GetProjectTeamMembersOKApplicationJSON) Decode ¶
func (s *GetProjectTeamMembersOKApplicationJSON) Decode(d *jx.Decoder) error
Decode decodes GetProjectTeamMembersOKApplicationJSON from json.
func (GetProjectTeamMembersOKApplicationJSON) Encode ¶
func (s GetProjectTeamMembersOKApplicationJSON) Encode(e *jx.Encoder)
Encode encodes GetProjectTeamMembersOKApplicationJSON as json.
func (GetProjectTeamMembersOKApplicationJSON) MarshalJSON ¶
func (s GetProjectTeamMembersOKApplicationJSON) MarshalJSON() ([]byte, error)
MarshalJSON implements stdjson.Marshaler.
func (*GetProjectTeamMembersOKApplicationJSON) UnmarshalJSON ¶
func (s *GetProjectTeamMembersOKApplicationJSON) UnmarshalJSON(data []byte) error
UnmarshalJSON implements stdjson.Unmarshaler.
func (GetProjectTeamMembersOKApplicationJSON) Validate ¶
func (s GetProjectTeamMembersOKApplicationJSON) Validate() error
type GetProjectTeamMembersParams ¶
type GetProjectTeamMembersParams struct {
// The ID or slug of the project.
IDSlug string
}
GetProjectTeamMembersParams is parameters of getProjectTeamMembers operation.
type GetProjectTeamMembersRes ¶
type GetProjectTeamMembersRes interface {
// contains filtered or unexported methods
}
type GetProjectVersionsNotFound ¶
type GetProjectVersionsNotFound struct{}
GetProjectVersionsNotFound is response for GetProjectVersions operation.
type GetProjectVersionsOKApplicationJSON ¶
type GetProjectVersionsOKApplicationJSON []Version
func (*GetProjectVersionsOKApplicationJSON) Decode ¶
func (s *GetProjectVersionsOKApplicationJSON) Decode(d *jx.Decoder) error
Decode decodes GetProjectVersionsOKApplicationJSON from json.
func (GetProjectVersionsOKApplicationJSON) Encode ¶
func (s GetProjectVersionsOKApplicationJSON) Encode(e *jx.Encoder)
Encode encodes GetProjectVersionsOKApplicationJSON as json.
func (GetProjectVersionsOKApplicationJSON) MarshalJSON ¶
func (s GetProjectVersionsOKApplicationJSON) MarshalJSON() ([]byte, error)
MarshalJSON implements stdjson.Marshaler.
func (*GetProjectVersionsOKApplicationJSON) UnmarshalJSON ¶
func (s *GetProjectVersionsOKApplicationJSON) UnmarshalJSON(data []byte) error
UnmarshalJSON implements stdjson.Unmarshaler.
func (GetProjectVersionsOKApplicationJSON) Validate ¶
func (s GetProjectVersionsOKApplicationJSON) Validate() error
type GetProjectVersionsParams ¶
type GetProjectVersionsParams struct {
// The types of loaders to filter for.
Loaders OptString
// The game versions to filter for.
GameVersions OptString
// Allows to filter for featured or non-featured versions only.
Featured OptBool
// The ID or slug of the project.
IDSlug string
}
GetProjectVersionsParams is parameters of getProjectVersions operation.
type GetProjectVersionsRes ¶
type GetProjectVersionsRes interface {
// contains filtered or unexported methods
}
type GetProjectsParams ¶
type GetProjectsParams struct {
// The IDs and/or slugs of the projects.
Ids string
}
GetProjectsParams is parameters of getProjects operation.
type GetReportNotFound ¶
type GetReportNotFound struct{}
GetReportNotFound is response for GetReport operation.
type GetReportParams ¶
type GetReportParams struct {
// The ID of the report.
ID string
}
GetReportParams is parameters of getReport operation.
type GetReportRes ¶
type GetReportRes interface {
// contains filtered or unexported methods
}
type GetReportsNotFound ¶
type GetReportsNotFound struct{}
GetReportsNotFound is response for GetReports operation.
type GetReportsOKApplicationJSON ¶
type GetReportsOKApplicationJSON []Report
func (*GetReportsOKApplicationJSON) Decode ¶
func (s *GetReportsOKApplicationJSON) Decode(d *jx.Decoder) error
Decode decodes GetReportsOKApplicationJSON from json.
func (GetReportsOKApplicationJSON) Encode ¶
func (s GetReportsOKApplicationJSON) Encode(e *jx.Encoder)
Encode encodes GetReportsOKApplicationJSON as json.
func (GetReportsOKApplicationJSON) MarshalJSON ¶
func (s GetReportsOKApplicationJSON) MarshalJSON() ([]byte, error)
MarshalJSON implements stdjson.Marshaler.
func (*GetReportsOKApplicationJSON) UnmarshalJSON ¶
func (s *GetReportsOKApplicationJSON) UnmarshalJSON(data []byte) error
UnmarshalJSON implements stdjson.Unmarshaler.
func (GetReportsOKApplicationJSON) Validate ¶
func (s GetReportsOKApplicationJSON) Validate() error
type GetReportsParams ¶
type GetReportsParams struct {
// The IDs of the reports.
Ids string
}
GetReportsParams is parameters of getReports operation.
type GetReportsRes ¶
type GetReportsRes interface {
// contains filtered or unexported methods
}
type GetTeamMembersParams ¶
type GetTeamMembersParams struct {
// The ID of the team.
ID string
}
GetTeamMembersParams is parameters of getTeamMembers operation.
type GetTeamsParams ¶
type GetTeamsParams struct {
// The IDs of the teams.
Ids string
}
GetTeamsParams is parameters of getTeams operation.
type GetThreadNotFound ¶
type GetThreadNotFound struct{}
GetThreadNotFound is response for GetThread operation.
type GetThreadParams ¶
type GetThreadParams struct {
// The ID of the thread.
ID string
}
GetThreadParams is parameters of getThread operation.
type GetThreadRes ¶
type GetThreadRes interface {
// contains filtered or unexported methods
}
type GetThreadsNotFound ¶
type GetThreadsNotFound struct{}
GetThreadsNotFound is response for GetThreads operation.
type GetThreadsOKApplicationJSON ¶
type GetThreadsOKApplicationJSON []Thread
func (*GetThreadsOKApplicationJSON) Decode ¶
func (s *GetThreadsOKApplicationJSON) Decode(d *jx.Decoder) error
Decode decodes GetThreadsOKApplicationJSON from json.
func (GetThreadsOKApplicationJSON) Encode ¶
func (s GetThreadsOKApplicationJSON) Encode(e *jx.Encoder)
Encode encodes GetThreadsOKApplicationJSON as json.
func (GetThreadsOKApplicationJSON) MarshalJSON ¶
func (s GetThreadsOKApplicationJSON) MarshalJSON() ([]byte, error)
MarshalJSON implements stdjson.Marshaler.
func (*GetThreadsOKApplicationJSON) UnmarshalJSON ¶
func (s *GetThreadsOKApplicationJSON) UnmarshalJSON(data []byte) error
UnmarshalJSON implements stdjson.Unmarshaler.
func (GetThreadsOKApplicationJSON) Validate ¶
func (s GetThreadsOKApplicationJSON) Validate() error
type GetThreadsParams ¶
type GetThreadsParams struct {
// The IDs of the threads.
Ids string
}
GetThreadsParams is parameters of getThreads operation.
type GetThreadsRes ¶
type GetThreadsRes interface {
// contains filtered or unexported methods
}
type GetUserFromAuthRes ¶
type GetUserFromAuthRes interface {
// contains filtered or unexported methods
}
type GetUserNotFound ¶
type GetUserNotFound struct{}
GetUserNotFound is response for GetUser operation.
type GetUserNotificationsNotFound ¶
type GetUserNotificationsNotFound struct{}
GetUserNotificationsNotFound is response for GetUserNotifications operation.
type GetUserNotificationsOKApplicationJSON ¶
type GetUserNotificationsOKApplicationJSON []Notification
func (*GetUserNotificationsOKApplicationJSON) Decode ¶
func (s *GetUserNotificationsOKApplicationJSON) Decode(d *jx.Decoder) error
Decode decodes GetUserNotificationsOKApplicationJSON from json.
func (GetUserNotificationsOKApplicationJSON) Encode ¶
func (s GetUserNotificationsOKApplicationJSON) Encode(e *jx.Encoder)
Encode encodes GetUserNotificationsOKApplicationJSON as json.
func (GetUserNotificationsOKApplicationJSON) MarshalJSON ¶
func (s GetUserNotificationsOKApplicationJSON) MarshalJSON() ([]byte, error)
MarshalJSON implements stdjson.Marshaler.
func (*GetUserNotificationsOKApplicationJSON) UnmarshalJSON ¶
func (s *GetUserNotificationsOKApplicationJSON) UnmarshalJSON(data []byte) error
UnmarshalJSON implements stdjson.Unmarshaler.
func (GetUserNotificationsOKApplicationJSON) Validate ¶
func (s GetUserNotificationsOKApplicationJSON) Validate() error
type GetUserNotificationsParams ¶
type GetUserNotificationsParams struct {
// The ID or username of the user.
IDUsername string
}
GetUserNotificationsParams is parameters of getUserNotifications operation.
type GetUserNotificationsRes ¶
type GetUserNotificationsRes interface {
// contains filtered or unexported methods
}
type GetUserParams ¶
type GetUserParams struct {
// The ID or username of the user.
IDUsername string
}
GetUserParams is parameters of getUser operation.
type GetUserProjectsNotFound ¶
type GetUserProjectsNotFound struct{}
GetUserProjectsNotFound is response for GetUserProjects operation.
type GetUserProjectsOKApplicationJSON ¶
type GetUserProjectsOKApplicationJSON []Project
func (*GetUserProjectsOKApplicationJSON) Decode ¶
func (s *GetUserProjectsOKApplicationJSON) Decode(d *jx.Decoder) error
Decode decodes GetUserProjectsOKApplicationJSON from json.
func (GetUserProjectsOKApplicationJSON) Encode ¶
func (s GetUserProjectsOKApplicationJSON) Encode(e *jx.Encoder)
Encode encodes GetUserProjectsOKApplicationJSON as json.
func (GetUserProjectsOKApplicationJSON) MarshalJSON ¶
func (s GetUserProjectsOKApplicationJSON) MarshalJSON() ([]byte, error)
MarshalJSON implements stdjson.Marshaler.
func (*GetUserProjectsOKApplicationJSON) UnmarshalJSON ¶
func (s *GetUserProjectsOKApplicationJSON) UnmarshalJSON(data []byte) error
UnmarshalJSON implements stdjson.Unmarshaler.
func (GetUserProjectsOKApplicationJSON) Validate ¶
func (s GetUserProjectsOKApplicationJSON) Validate() error
type GetUserProjectsParams ¶
type GetUserProjectsParams struct {
// The ID or username of the user.
IDUsername string
}
GetUserProjectsParams is parameters of getUserProjects operation.
type GetUserProjectsRes ¶
type GetUserProjectsRes interface {
// contains filtered or unexported methods
}
type GetUserRes ¶
type GetUserRes interface {
// contains filtered or unexported methods
}
type GetUsersParams ¶
type GetUsersParams struct {
// The IDs of the users.
Ids string
}
GetUsersParams is parameters of getUsers operation.
type GetVersionFromIdOrNumberNotFound ¶
type GetVersionFromIdOrNumberNotFound struct{}
GetVersionFromIdOrNumberNotFound is response for GetVersionFromIdOrNumber operation.
type GetVersionFromIdOrNumberParams ¶
type GetVersionFromIdOrNumberParams struct {
// The ID or slug of the project.
IDSlug string
// The version ID or version number.
IDNumber string
}
GetVersionFromIdOrNumberParams is parameters of getVersionFromIdOrNumber operation.
type GetVersionFromIdOrNumberRes ¶
type GetVersionFromIdOrNumberRes interface {
// contains filtered or unexported methods
}
type GetVersionNotFound ¶
type GetVersionNotFound struct{}
GetVersionNotFound is response for GetVersion operation.
type GetVersionParams ¶
type GetVersionParams struct {
// The ID of the version.
ID string
}
GetVersionParams is parameters of getVersion operation.
type GetVersionRes ¶
type GetVersionRes interface {
// contains filtered or unexported methods
}
type GetVersionsParams ¶
type GetVersionsParams struct {
// The IDs of the versions.
Ids string
}
GetVersionsParams is parameters of getVersions operation.
type HashList ¶
type HashList struct {
Hashes []string `json:"hashes"`
Algorithm HashListAlgorithm `json:"algorithm"`
}
A list of hashes and the algorithm used to create them. Ref: #/components/schemas/HashList
func (*HashList) GetAlgorithm ¶
func (s *HashList) GetAlgorithm() HashListAlgorithm
GetAlgorithm returns the value of Algorithm.
func (*HashList) MarshalJSON ¶
MarshalJSON implements stdjson.Marshaler.
func (*HashList) SetAlgorithm ¶
func (s *HashList) SetAlgorithm(val HashListAlgorithm)
SetAlgorithm sets the value of Algorithm.
func (*HashList) UnmarshalJSON ¶
UnmarshalJSON implements stdjson.Unmarshaler.
type HashListAlgorithm ¶
type HashListAlgorithm string
const ( HashListAlgorithmSHA1 HashListAlgorithm = "sha1" HashListAlgorithmSha512 HashListAlgorithm = "sha512" )
func (HashListAlgorithm) AllValues ¶
func (HashListAlgorithm) AllValues() []HashListAlgorithm
AllValues returns all HashListAlgorithm values.
func (*HashListAlgorithm) Decode ¶
func (s *HashListAlgorithm) Decode(d *jx.Decoder) error
Decode decodes HashListAlgorithm from json.
func (HashListAlgorithm) Encode ¶
func (s HashListAlgorithm) Encode(e *jx.Encoder)
Encode encodes HashListAlgorithm as json.
func (HashListAlgorithm) MarshalJSON ¶
func (s HashListAlgorithm) MarshalJSON() ([]byte, error)
MarshalJSON implements stdjson.Marshaler.
func (HashListAlgorithm) MarshalText ¶
func (s HashListAlgorithm) MarshalText() ([]byte, error)
MarshalText implements encoding.TextMarshaler.
func (*HashListAlgorithm) UnmarshalJSON ¶
func (s *HashListAlgorithm) UnmarshalJSON(data []byte) error
UnmarshalJSON implements stdjson.Unmarshaler.
func (*HashListAlgorithm) UnmarshalText ¶
func (s *HashListAlgorithm) UnmarshalText(data []byte) error
UnmarshalText implements encoding.TextUnmarshaler.
func (HashListAlgorithm) Validate ¶
func (s HashListAlgorithm) Validate() error
type HashVersionMap ¶
A map from hashes to versions. Ref: #/components/schemas/HashVersionMap
func (*HashVersionMap) Decode ¶
func (s *HashVersionMap) Decode(d *jx.Decoder) error
Decode decodes HashVersionMap from json.
func (HashVersionMap) Encode ¶
func (s HashVersionMap) Encode(e *jx.Encoder)
Encode implements json.Marshaler.
func (HashVersionMap) MarshalJSON ¶
func (s HashVersionMap) MarshalJSON() ([]byte, error)
MarshalJSON implements stdjson.Marshaler.
func (*HashVersionMap) UnmarshalJSON ¶
func (s *HashVersionMap) UnmarshalJSON(data []byte) error
UnmarshalJSON implements stdjson.Unmarshaler.
func (HashVersionMap) Validate ¶
func (s HashVersionMap) Validate() error
type InvalidInputError ¶
type InvalidInputError struct {
// The name of the error.
Error string `json:"error"`
// The contents of the error.
Description string `json:"description"`
}
Ref: #/components/schemas/InvalidInputError
func (*InvalidInputError) Decode ¶
func (s *InvalidInputError) Decode(d *jx.Decoder) error
Decode decodes InvalidInputError from json.
func (*InvalidInputError) Encode ¶
func (s *InvalidInputError) Encode(e *jx.Encoder)
Encode implements json.Marshaler.
func (*InvalidInputError) GetDescription ¶
func (s *InvalidInputError) GetDescription() string
GetDescription returns the value of Description.
func (*InvalidInputError) GetError ¶
func (s *InvalidInputError) GetError() string
GetError returns the value of Error.
func (*InvalidInputError) MarshalJSON ¶
func (s *InvalidInputError) MarshalJSON() ([]byte, error)
MarshalJSON implements stdjson.Marshaler.
func (*InvalidInputError) SetDescription ¶
func (s *InvalidInputError) SetDescription(val string)
SetDescription sets the value of Description.
func (*InvalidInputError) SetError ¶
func (s *InvalidInputError) SetError(val string)
SetError sets the value of Error.
func (*InvalidInputError) UnmarshalJSON ¶
func (s *InvalidInputError) UnmarshalJSON(data []byte) error
UnmarshalJSON implements stdjson.Unmarshaler.
type Invoker ¶
type Invoker interface {
// AddGalleryImage invokes addGalleryImage operation.
//
// Modrinth allows you to upload files of up to 5MiB to a project's gallery.
//
// POST /project/{id|slug}/gallery
AddGalleryImage(ctx context.Context, request AddGalleryImageReq, params AddGalleryImageParams) (AddGalleryImageRes, error)
// AddTeamMember invokes addTeamMember operation.
//
// Add a user to a team.
//
// POST /team/{id}/members
AddTeamMember(ctx context.Context, request UserIdentifier, params AddTeamMemberParams) (AddTeamMemberRes, error)
// CategoryList invokes categoryList operation.
//
// Gets an array of categories, their icons, and applicable project types.
//
// GET /tag/category
CategoryList(ctx context.Context) ([]CategoryTag, error)
// ChangeProjectIcon invokes changeProjectIcon operation.
//
// The new icon may be up to 256KiB in size.
//
// PATCH /project/{id|slug}/icon
ChangeProjectIcon(ctx context.Context, request ChangeProjectIconReq, params ChangeProjectIconParams) (ChangeProjectIconRes, error)
// ChangeUserIcon invokes changeUserIcon operation.
//
// The new avatar may be up to 2MiB in size.
//
// PATCH /user/{id|username}/icon
ChangeUserIcon(ctx context.Context, request ChangeUserIconReq, params ChangeUserIconParams) (ChangeUserIconRes, error)
// CheckProjectValidity invokes checkProjectValidity operation.
//
// Check project slug/ID validity.
//
// GET /project/{id|slug}/check
CheckProjectValidity(ctx context.Context, params CheckProjectValidityParams) (CheckProjectValidityRes, error)
// CreateVersion invokes createVersion operation.
//
// This route creates a version on an existing project. There must be at least one file attached to
// each new version, unless the new version's status is `draft`. `.mrpack`, `.jar`, `.zip`, and `.
// litemod` files are accepted.
// The request is a [multipart request](https://www.ietf.org/rfc/rfc2388.txt) with at least two form
// fields: one is `data`, which includes a JSON body with the version metadata as shown below, and at
// least one field containing an upload file.
// You can name the file parts anything you would like, but you must list each of the parts' names in
// `file_parts`, and optionally, provide one to use as the primary file in `primary_file`.
//
// POST /version
CreateVersion(ctx context.Context, request OptCreateVersionBodyMultipart) (CreateVersionRes, error)
// DeleteFileFromHash invokes deleteFileFromHash operation.
//
// Delete a file from its hash.
//
// DELETE /version_file/{hash}
DeleteFileFromHash(ctx context.Context, params DeleteFileFromHashParams) (DeleteFileFromHashRes, error)
// DeleteGalleryImage invokes deleteGalleryImage operation.
//
// Delete a gallery image.
//
// DELETE /project/{id|slug}/gallery
DeleteGalleryImage(ctx context.Context, params DeleteGalleryImageParams) (DeleteGalleryImageRes, error)
// DeleteNotification invokes deleteNotification operation.
//
// Delete notification.
//
// DELETE /notification/{id}
DeleteNotification(ctx context.Context, params DeleteNotificationParams) (DeleteNotificationRes, error)
// DeleteNotifications invokes deleteNotifications operation.
//
// Delete multiple notifications.
//
// DELETE /notifications
DeleteNotifications(ctx context.Context, params DeleteNotificationsParams) (DeleteNotificationsRes, error)
// DeleteProject invokes deleteProject operation.
//
// Delete a project.
//
// DELETE /project/{id|slug}
DeleteProject(ctx context.Context, params DeleteProjectParams) (DeleteProjectRes, error)
// DeleteProjectIcon invokes deleteProjectIcon operation.
//
// Delete project's icon.
//
// DELETE /project/{id|slug}/icon
DeleteProjectIcon(ctx context.Context, params DeleteProjectIconParams) (DeleteProjectIconRes, error)
// DeleteTeamMember invokes deleteTeamMember operation.
//
// Remove a member from a team.
//
// DELETE /team/{id}/members/{id|username}
DeleteTeamMember(ctx context.Context, params DeleteTeamMemberParams) (DeleteTeamMemberRes, error)
// DeleteThreadMessage invokes deleteThreadMessage operation.
//
// Delete a thread message.
//
// DELETE /message/{id}
DeleteThreadMessage(ctx context.Context, params DeleteThreadMessageParams) (DeleteThreadMessageRes, error)
// DeleteUserIcon invokes deleteUserIcon operation.
//
// Remove user's avatar.
//
// DELETE /user/{id|username}/icon
DeleteUserIcon(ctx context.Context, params DeleteUserIconParams) (DeleteUserIconRes, error)
// DeleteVersion invokes deleteVersion operation.
//
// Delete a version.
//
// DELETE /version/{id}
DeleteVersion(ctx context.Context, params DeleteVersionParams) (DeleteVersionRes, error)
// DonationPlatformList invokes donationPlatformList operation.
//
// Gets an array of donation platforms and information about them.
//
// GET /tag/donation_platform
DonationPlatformList(ctx context.Context) ([]DonationPlatformTag, error)
// FollowProject invokes followProject operation.
//
// Follow a project.
//
// POST /project/{id|slug}/follow
FollowProject(ctx context.Context, params FollowProjectParams) (FollowProjectRes, error)
// ForgeUpdates invokes forgeUpdates operation.
//
// If you're a Forge mod developer, your Modrinth mods have an automatically generated `updates.json`
// using the
// [Forge Update Checker](https://docs.minecraftforge.net/en/latest/misc/updatechecker/).
// The only setup is to insert the URL into the `[[mods]]` section of your `mods.toml` file as such:
// “`toml
// [[mods]]
// # the other stuff here - ID, version, display name, etc.
// updateJSONURL = "https://api.modrinth.com/updates/{slug|ID}/forge_updates.json"
// “`
// Replace `{slug|id}` with the slug or ID of your project.
// Modrinth will handle the rest! When you update your mod, Forge will notify your users that their
// copy of your mod is out of date.
// Make sure that the version format you use for your Modrinth releases is the same as the version
// format you use in your `mods.toml`.
// If you use a format such as `1.2.3-forge` or `1.2.3+1.19` with your Modrinth releases but your
// `mods.toml` only has `1.2.3`,
// the update checker may not function properly.
//
// GET /updates/{id|slug}/forge_updates.json
ForgeUpdates(ctx context.Context, params ForgeUpdatesParams) (ForgeUpdatesRes, error)
// GetDependencies invokes getDependencies operation.
//
// Get all of a project's dependencies.
//
// GET /project/{id|slug}/dependencies
GetDependencies(ctx context.Context, params GetDependenciesParams) (GetDependenciesRes, error)
// GetFollowedProjects invokes getFollowedProjects operation.
//
// Get user's followed projects.
//
// GET /user/{id|username}/follows
GetFollowedProjects(ctx context.Context, params GetFollowedProjectsParams) (GetFollowedProjectsRes, error)
// GetLatestVersionFromHash invokes getLatestVersionFromHash operation.
//
// Latest version of a project from a hash, loader(s), and game version(s).
//
// POST /version_file/{hash}/update
GetLatestVersionFromHash(ctx context.Context, request OptGetLatestVersionFromHashBody, params GetLatestVersionFromHashParams) (GetLatestVersionFromHashRes, error)
// GetLatestVersionsFromHashes invokes getLatestVersionsFromHashes operation.
//
// This is the same as [`/version_file/{hash}/update`](#operation/getLatestVersionFromHash) except it
// accepts multiple hashes.
//
// POST /version_files/update
GetLatestVersionsFromHashes(ctx context.Context, request OptGetLatestVersionsFromHashesBody) (GetLatestVersionsFromHashesRes, error)
// GetNotification invokes getNotification operation.
//
// Get notification from ID.
//
// GET /notification/{id}
GetNotification(ctx context.Context, params GetNotificationParams) (GetNotificationRes, error)
// GetNotifications invokes getNotifications operation.
//
// Get multiple notifications.
//
// GET /notifications
GetNotifications(ctx context.Context, params GetNotificationsParams) (GetNotificationsRes, error)
// GetOpenReports invokes getOpenReports operation.
//
// Get your open reports.
//
// GET /report
GetOpenReports(ctx context.Context, params GetOpenReportsParams) (GetOpenReportsRes, error)
// GetPayoutHistory invokes getPayoutHistory operation.
//
// Get user's payout history.
//
// GET /user/{id|username}/payouts
GetPayoutHistory(ctx context.Context, params GetPayoutHistoryParams) (GetPayoutHistoryRes, error)
// GetProject invokes getProject operation.
//
// Get a project.
//
// GET /project/{id|slug}
GetProject(ctx context.Context, params GetProjectParams) (GetProjectRes, error)
// GetProjectTeamMembers invokes getProjectTeamMembers operation.
//
// Get a project's team members.
//
// GET /project/{id|slug}/members
GetProjectTeamMembers(ctx context.Context, params GetProjectTeamMembersParams) (GetProjectTeamMembersRes, error)
// GetProjectVersions invokes getProjectVersions operation.
//
// List project's versions.
//
// GET /project/{id|slug}/version
GetProjectVersions(ctx context.Context, params GetProjectVersionsParams) (GetProjectVersionsRes, error)
// GetProjects invokes getProjects operation.
//
// Get multiple projects.
//
// GET /projects
GetProjects(ctx context.Context, params GetProjectsParams) ([]Project, error)
// GetReport invokes getReport operation.
//
// Get report from ID.
//
// GET /report/{id}
GetReport(ctx context.Context, params GetReportParams) (GetReportRes, error)
// GetReports invokes getReports operation.
//
// Get multiple reports.
//
// GET /reports
GetReports(ctx context.Context, params GetReportsParams) (GetReportsRes, error)
// GetTeamMembers invokes getTeamMembers operation.
//
// Get a team's members.
//
// GET /team/{id}/members
GetTeamMembers(ctx context.Context, params GetTeamMembersParams) ([]TeamMember, error)
// GetTeams invokes getTeams operation.
//
// Get the members of multiple teams.
//
// GET /teams
GetTeams(ctx context.Context, params GetTeamsParams) ([][]TeamMember, error)
// GetThread invokes getThread operation.
//
// Get a thread.
//
// GET /thread/{id}
GetThread(ctx context.Context, params GetThreadParams) (GetThreadRes, error)
// GetThreads invokes getThreads operation.
//
// Get multiple threads.
//
// GET /threads
GetThreads(ctx context.Context, params GetThreadsParams) (GetThreadsRes, error)
// GetUser invokes getUser operation.
//
// Get a user.
//
// GET /user/{id|username}
GetUser(ctx context.Context, params GetUserParams) (GetUserRes, error)
// GetUserFromAuth invokes getUserFromAuth operation.
//
// Get user from authorization header.
//
// GET /user
GetUserFromAuth(ctx context.Context) (GetUserFromAuthRes, error)
// GetUserNotifications invokes getUserNotifications operation.
//
// Get user's notifications.
//
// GET /user/{id|username}/notifications
GetUserNotifications(ctx context.Context, params GetUserNotificationsParams) (GetUserNotificationsRes, error)
// GetUserProjects invokes getUserProjects operation.
//
// Get user's projects.
//
// GET /user/{id|username}/projects
GetUserProjects(ctx context.Context, params GetUserProjectsParams) (GetUserProjectsRes, error)
// GetUsers invokes getUsers operation.
//
// Get multiple users.
//
// GET /users
GetUsers(ctx context.Context, params GetUsersParams) ([]User, error)
// GetVersion invokes getVersion operation.
//
// Get a version.
//
// GET /version/{id}
GetVersion(ctx context.Context, params GetVersionParams) (GetVersionRes, error)
// GetVersionFromIdOrNumber invokes getVersionFromIdOrNumber operation.
//
// Please note that, if the version number provided matches multiple versions, only the **oldest
// matching version** will be returned.
//
// GET /project/{id|slug}/version/{id|number}
GetVersionFromIdOrNumber(ctx context.Context, params GetVersionFromIdOrNumberParams) (GetVersionFromIdOrNumberRes, error)
// GetVersions invokes getVersions operation.
//
// Get multiple versions.
//
// GET /versions
GetVersions(ctx context.Context, params GetVersionsParams) ([]Version, error)
// JoinTeam invokes joinTeam operation.
//
// Join a team.
//
// POST /team/{id}/join
JoinTeam(ctx context.Context, params JoinTeamParams) (JoinTeamRes, error)
// LicenseList invokes licenseList operation.
//
// Deprecated - simply use SPDX IDs.
//
// Deprecated: schema marks this operation as deprecated.
//
// GET /tag/license
LicenseList(ctx context.Context) ([]LicenseTag, error)
// LicenseText invokes licenseText operation.
//
// Get the text and title of a license.
//
// GET /tag/license/{id}
LicenseText(ctx context.Context, params LicenseTextParams) (LicenseTextRes, error)
// LoaderList invokes loaderList operation.
//
// Gets an array of loaders, their icons, and supported project types.
//
// GET /tag/loader
LoaderList(ctx context.Context) ([]LoaderTag, error)
// ModifyGalleryImage invokes modifyGalleryImage operation.
//
// Modify a gallery image.
//
// PATCH /project/{id|slug}/gallery
ModifyGalleryImage(ctx context.Context, params ModifyGalleryImageParams) (ModifyGalleryImageRes, error)
// ModifyProject invokes modifyProject operation.
//
// Modify a project.
//
// PATCH /project/{id|slug}
ModifyProject(ctx context.Context, request OptEditableProject, params ModifyProjectParams) (ModifyProjectRes, error)
// ModifyReport invokes modifyReport operation.
//
// Modify a report.
//
// PATCH /report/{id}
ModifyReport(ctx context.Context, request OptModifyReportReq, params ModifyReportParams) (ModifyReportRes, error)
// ModifyTeamMember invokes modifyTeamMember operation.
//
// Modify a team member's information.
//
// PATCH /team/{id}/members/{id|username}
ModifyTeamMember(ctx context.Context, request ModifyTeamMemberBody, params ModifyTeamMemberParams) (ModifyTeamMemberRes, error)
// ModifyUser invokes modifyUser operation.
//
// Modify a user.
//
// PATCH /user/{id|username}
ModifyUser(ctx context.Context, request OptEditableUser, params ModifyUserParams) (ModifyUserRes, error)
// ModifyVersion invokes modifyVersion operation.
//
// Modify a version.
//
// PATCH /version/{id}
ModifyVersion(ctx context.Context, request OptEditableVersion, params ModifyVersionParams) (ModifyVersionRes, error)
// PatchProjects invokes patchProjects operation.
//
// Bulk-edit multiple projects.
//
// PATCH /projects
PatchProjects(ctx context.Context, request OptPatchProjectsBody, params PatchProjectsParams) (PatchProjectsRes, error)
// ProjectTypeList invokes projectTypeList operation.
//
// Gets an array of valid project types.
//
// GET /tag/project_type
ProjectTypeList(ctx context.Context) ([]string, error)
// RandomProjects invokes randomProjects operation.
//
// Get a list of random projects.
//
// GET /projects_random
RandomProjects(ctx context.Context, params RandomProjectsParams) (RandomProjectsRes, error)
// ReadNotification invokes readNotification operation.
//
// Mark notification as read.
//
// PATCH /notification/{id}
ReadNotification(ctx context.Context, params ReadNotificationParams) (ReadNotificationRes, error)
// ReadNotifications invokes readNotifications operation.
//
// Mark multiple notifications as read.
//
// PATCH /notifications
ReadNotifications(ctx context.Context, params ReadNotificationsParams) (ReadNotificationsRes, error)
// ReportTypeList invokes reportTypeList operation.
//
// Gets an array of valid report types.
//
// GET /tag/report_type
ReportTypeList(ctx context.Context) ([]string, error)
// ScheduleProject invokes scheduleProject operation.
//
// Schedule a project.
//
// POST /project/{id|slug}/schedule
ScheduleProject(ctx context.Context, request OptSchedule, params ScheduleProjectParams) (ScheduleProjectRes, error)
// ScheduleVersion invokes scheduleVersion operation.
//
// Schedule a version.
//
// POST /version/{id}/schedule
ScheduleVersion(ctx context.Context, request OptSchedule, params ScheduleVersionParams) (ScheduleVersionRes, error)
// SearchProjects invokes searchProjects operation.
//
// Search projects.
//
// GET /search
SearchProjects(ctx context.Context, params SearchProjectsParams) (SearchProjectsRes, error)
// SendThreadMessage invokes sendThreadMessage operation.
//
// Send a text message to a thread.
//
// POST /thread/{id}
SendThreadMessage(ctx context.Context, request OptThreadMessageBody, params SendThreadMessageParams) (SendThreadMessageRes, error)
// SideTypeList invokes sideTypeList operation.
//
// Gets an array of valid side types.
//
// GET /tag/side_type
SideTypeList(ctx context.Context) ([]string, error)
// Statistics invokes statistics operation.
//
// Various statistics about this Modrinth instance.
//
// GET /statistics
Statistics(ctx context.Context) (*Statistics, error)
// SubmitReport invokes submitReport operation.
//
// Bring a project, user, or version to the attention of the moderators by reporting it.
//
// POST /report
SubmitReport(ctx context.Context, request OptCreatableReport) (SubmitReportRes, error)
// TransferTeamOwnership invokes transferTeamOwnership operation.
//
// Transfer team's ownership to another user.
//
// PATCH /team/{id}/owner
TransferTeamOwnership(ctx context.Context, request UserIdentifier, params TransferTeamOwnershipParams) (TransferTeamOwnershipRes, error)
// UnfollowProject invokes unfollowProject operation.
//
// Unfollow a project.
//
// DELETE /project/{id|slug}/follow
UnfollowProject(ctx context.Context, params UnfollowProjectParams) (UnfollowProjectRes, error)
// VersionFromHash invokes versionFromHash operation.
//
// Get version from hash.
//
// GET /version_file/{hash}
VersionFromHash(ctx context.Context, params VersionFromHashParams) (VersionFromHashRes, error)
// VersionList invokes versionList operation.
//
// Gets an array of game versions and information about them.
//
// GET /tag/game_version
VersionList(ctx context.Context) ([]GameVersionTag, error)
// VersionsFromHashes invokes versionsFromHashes operation.
//
// This is the same as [`/version_file/{hash}`](#operation/versionFromHash) except it accepts
// multiple hashes.
//
// POST /version_files
VersionsFromHashes(ctx context.Context, request OptHashList) (VersionsFromHashesRes, error)
// WithdrawPayout invokes withdrawPayout operation.
//
// Warning: certain amounts get withheld for fees. Please do not call this API endpoint without first
// acknowledging the warnings on the corresponding frontend page.
//
// POST /user/{id|username}/payouts
WithdrawPayout(ctx context.Context, params WithdrawPayoutParams) (WithdrawPayoutRes, error)
}
Invoker invokes operations described by OpenAPI v3 specification.
type JoinTeamNoContent ¶
type JoinTeamNoContent struct{}
JoinTeamNoContent is response for JoinTeam operation.
type JoinTeamNotFound ¶
type JoinTeamNotFound struct{}
JoinTeamNotFound is response for JoinTeam operation.
type JoinTeamParams ¶
type JoinTeamParams struct {
// The ID of the team.
ID string
}
JoinTeamParams is parameters of joinTeam operation.
type JoinTeamRes ¶
type JoinTeamRes interface {
// contains filtered or unexported methods
}
type License ¶
A full license. Ref: #/components/schemas/License
func (*License) MarshalJSON ¶
MarshalJSON implements stdjson.Marshaler.
func (*License) UnmarshalJSON ¶
UnmarshalJSON implements stdjson.Unmarshaler.
type LicenseTag ¶
type LicenseTag struct {
// The short identifier of the license.
Short string `json:"short"`
// The full name of the license.
Name string `json:"name"`
}
A short overview of a license. Ref: #/components/schemas/LicenseTag
func (*LicenseTag) Decode ¶
func (s *LicenseTag) Decode(d *jx.Decoder) error
Decode decodes LicenseTag from json.
func (*LicenseTag) Encode ¶
func (s *LicenseTag) Encode(e *jx.Encoder)
Encode implements json.Marshaler.
func (*LicenseTag) GetName ¶
func (s *LicenseTag) GetName() string
GetName returns the value of Name.
func (*LicenseTag) GetShort ¶
func (s *LicenseTag) GetShort() string
GetShort returns the value of Short.
func (*LicenseTag) MarshalJSON ¶
func (s *LicenseTag) MarshalJSON() ([]byte, error)
MarshalJSON implements stdjson.Marshaler.
func (*LicenseTag) SetName ¶
func (s *LicenseTag) SetName(val string)
SetName sets the value of Name.
func (*LicenseTag) SetShort ¶
func (s *LicenseTag) SetShort(val string)
SetShort sets the value of Short.
func (*LicenseTag) UnmarshalJSON ¶
func (s *LicenseTag) UnmarshalJSON(data []byte) error
UnmarshalJSON implements stdjson.Unmarshaler.
type LicenseTextParams ¶
type LicenseTextParams struct {
// The license ID to get the text of.
ID string
}
LicenseTextParams is parameters of licenseText operation.
type LicenseTextRes ¶
type LicenseTextRes interface {
// contains filtered or unexported methods
}
type LoaderTag ¶
type LoaderTag struct {
// The SVG icon of a loader.
Icon string `json:"icon"`
// The name of the loader.
Name string `json:"name"`
// The project types that this loader is applicable to.
SupportedProjectTypes []string `json:"supported_project_types"`
}
Ref: #/components/schemas/LoaderTag
func (*LoaderTag) GetSupportedProjectTypes ¶
GetSupportedProjectTypes returns the value of SupportedProjectTypes.
func (*LoaderTag) MarshalJSON ¶
MarshalJSON implements stdjson.Marshaler.
func (*LoaderTag) SetSupportedProjectTypes ¶
SetSupportedProjectTypes sets the value of SupportedProjectTypes.
func (*LoaderTag) UnmarshalJSON ¶
UnmarshalJSON implements stdjson.Unmarshaler.
type ModeratorMessage
deprecated
type ModeratorMessage struct {
// The message that a moderator has left for the project.
Message OptString `json:"message"`
// The longer body of the message that a moderator has left for the project.
Body OptNilString `json:"body"`
}
A message that a moderator sent regarding the project.
Deprecated: schema marks this type as deprecated. Ref: #/components/schemas/ModeratorMessage
func (*ModeratorMessage) Decode ¶
func (s *ModeratorMessage) Decode(d *jx.Decoder) error
Decode decodes ModeratorMessage from json.
func (*ModeratorMessage) Encode ¶
func (s *ModeratorMessage) Encode(e *jx.Encoder)
Encode implements json.Marshaler.
func (*ModeratorMessage) GetBody ¶
func (s *ModeratorMessage) GetBody() OptNilString
GetBody returns the value of Body.
func (*ModeratorMessage) GetMessage ¶
func (s *ModeratorMessage) GetMessage() OptString
GetMessage returns the value of Message.
func (*ModeratorMessage) MarshalJSON ¶
func (s *ModeratorMessage) MarshalJSON() ([]byte, error)
MarshalJSON implements stdjson.Marshaler.
func (*ModeratorMessage) SetBody ¶
func (s *ModeratorMessage) SetBody(val OptNilString)
SetBody sets the value of Body.
func (*ModeratorMessage) SetMessage ¶
func (s *ModeratorMessage) SetMessage(val OptString)
SetMessage sets the value of Message.
func (*ModeratorMessage) UnmarshalJSON ¶
func (s *ModeratorMessage) UnmarshalJSON(data []byte) error
UnmarshalJSON implements stdjson.Unmarshaler.
type ModifyGalleryImageNoContent ¶
type ModifyGalleryImageNoContent struct{}
ModifyGalleryImageNoContent is response for ModifyGalleryImage operation.
type ModifyGalleryImageNotFound ¶
type ModifyGalleryImageNotFound struct{}
ModifyGalleryImageNotFound is response for ModifyGalleryImage operation.
type ModifyGalleryImageParams ¶
type ModifyGalleryImageParams struct {
// URL link of the image to modify.
URL url.URL
// Whether the image is featured.
Featured OptBool
// New title of the image.
Title OptString
// New description of the image.
Description OptString
// New ordering of the image.
Ordering OptInt
// The ID or slug of the project.
IDSlug string
}
ModifyGalleryImageParams is parameters of modifyGalleryImage operation.
type ModifyGalleryImageRes ¶
type ModifyGalleryImageRes interface {
// contains filtered or unexported methods
}
type ModifyProjectNoContent ¶
type ModifyProjectNoContent struct{}
ModifyProjectNoContent is response for ModifyProject operation.
type ModifyProjectNotFound ¶
type ModifyProjectNotFound struct{}
ModifyProjectNotFound is response for ModifyProject operation.
type ModifyProjectParams ¶
type ModifyProjectParams struct {
// The ID or slug of the project.
IDSlug string
}
ModifyProjectParams is parameters of modifyProject operation.
type ModifyProjectRes ¶
type ModifyProjectRes interface {
// contains filtered or unexported methods
}
type ModifyReportNoContent ¶
type ModifyReportNoContent struct{}
ModifyReportNoContent is response for ModifyReport operation.
type ModifyReportNotFound ¶
type ModifyReportNotFound struct{}
ModifyReportNotFound is response for ModifyReport operation.
type ModifyReportParams ¶
type ModifyReportParams struct {
// The ID of the report.
ID string
}
ModifyReportParams is parameters of modifyReport operation.
type ModifyReportReq ¶
type ModifyReportReq struct {
// The contents of the report.
Body OptString `json:"body"`
// Whether the thread should be closed.
Closed OptBool `json:"closed"`
}
func (*ModifyReportReq) Decode ¶
func (s *ModifyReportReq) Decode(d *jx.Decoder) error
Decode decodes ModifyReportReq from json.
func (*ModifyReportReq) Encode ¶
func (s *ModifyReportReq) Encode(e *jx.Encoder)
Encode implements json.Marshaler.
func (*ModifyReportReq) GetBody ¶
func (s *ModifyReportReq) GetBody() OptString
GetBody returns the value of Body.
func (*ModifyReportReq) GetClosed ¶
func (s *ModifyReportReq) GetClosed() OptBool
GetClosed returns the value of Closed.
func (*ModifyReportReq) MarshalJSON ¶
func (s *ModifyReportReq) MarshalJSON() ([]byte, error)
MarshalJSON implements stdjson.Marshaler.
func (*ModifyReportReq) SetBody ¶
func (s *ModifyReportReq) SetBody(val OptString)
SetBody sets the value of Body.
func (*ModifyReportReq) SetClosed ¶
func (s *ModifyReportReq) SetClosed(val OptBool)
SetClosed sets the value of Closed.
func (*ModifyReportReq) UnmarshalJSON ¶
func (s *ModifyReportReq) UnmarshalJSON(data []byte) error
UnmarshalJSON implements stdjson.Unmarshaler.
type ModifyReportRes ¶
type ModifyReportRes interface {
// contains filtered or unexported methods
}
type ModifyTeamMemberBody ¶
func (*ModifyTeamMemberBody) Decode ¶
func (s *ModifyTeamMemberBody) Decode(d *jx.Decoder) error
Decode decodes ModifyTeamMemberBody from json.
func (ModifyTeamMemberBody) Encode ¶
func (s ModifyTeamMemberBody) Encode(e *jx.Encoder)
Encode encodes ModifyTeamMemberBody as json.
func (ModifyTeamMemberBody) MarshalJSON ¶
func (s ModifyTeamMemberBody) MarshalJSON() ([]byte, error)
MarshalJSON implements stdjson.Marshaler.
func (*ModifyTeamMemberBody) UnmarshalJSON ¶
func (s *ModifyTeamMemberBody) UnmarshalJSON(data []byte) error
UnmarshalJSON implements stdjson.Unmarshaler.
type ModifyTeamMemberNoContent ¶
type ModifyTeamMemberNoContent struct{}
ModifyTeamMemberNoContent is response for ModifyTeamMember operation.
type ModifyTeamMemberNotFound ¶
type ModifyTeamMemberNotFound struct{}
ModifyTeamMemberNotFound is response for ModifyTeamMember operation.
type ModifyTeamMemberParams ¶
type ModifyTeamMemberParams struct {
// The ID of the team.
ID string
// The ID or username of the user.
IDUsername string
}
ModifyTeamMemberParams is parameters of modifyTeamMember operation.
type ModifyTeamMemberRes ¶
type ModifyTeamMemberRes interface {
// contains filtered or unexported methods
}
type ModifyUserNoContent ¶
type ModifyUserNoContent struct{}
ModifyUserNoContent is response for ModifyUser operation.
type ModifyUserNotFound ¶
type ModifyUserNotFound struct{}
ModifyUserNotFound is response for ModifyUser operation.
type ModifyUserParams ¶
type ModifyUserParams struct {
// The ID or username of the user.
IDUsername string
}
ModifyUserParams is parameters of modifyUser operation.
type ModifyUserRes ¶
type ModifyUserRes interface {
// contains filtered or unexported methods
}
type ModifyVersionNoContent ¶
type ModifyVersionNoContent struct{}
ModifyVersionNoContent is response for ModifyVersion operation.
type ModifyVersionNotFound ¶
type ModifyVersionNotFound struct{}
ModifyVersionNotFound is response for ModifyVersion operation.
type ModifyVersionParams ¶
type ModifyVersionParams struct {
// The ID of the version.
ID string
}
ModifyVersionParams is parameters of modifyVersion operation.
type ModifyVersionRes ¶
type ModifyVersionRes interface {
// contains filtered or unexported methods
}
type NilEditableFileTypeFileType ¶
type NilEditableFileTypeFileType struct {
Value EditableFileTypeFileType
Null bool
}
NilEditableFileTypeFileType is nullable EditableFileTypeFileType.
func NewNilEditableFileTypeFileType ¶
func NewNilEditableFileTypeFileType(v EditableFileTypeFileType) NilEditableFileTypeFileType
NewNilEditableFileTypeFileType returns new NilEditableFileTypeFileType with value set to v.
func (*NilEditableFileTypeFileType) Decode ¶
func (o *NilEditableFileTypeFileType) Decode(d *jx.Decoder) error
Decode decodes EditableFileTypeFileType from json.
func (NilEditableFileTypeFileType) Encode ¶
func (o NilEditableFileTypeFileType) Encode(e *jx.Encoder)
Encode encodes EditableFileTypeFileType as json.
func (NilEditableFileTypeFileType) Get ¶
func (o NilEditableFileTypeFileType) Get() (v EditableFileTypeFileType, ok bool)
Get returns value and boolean that denotes whether value was set.
func (NilEditableFileTypeFileType) IsNull ¶
func (o NilEditableFileTypeFileType) IsNull() bool
IsNull returns true if value is Null.
func (NilEditableFileTypeFileType) MarshalJSON ¶
func (s NilEditableFileTypeFileType) MarshalJSON() ([]byte, error)
MarshalJSON implements stdjson.Marshaler.
func (*NilEditableFileTypeFileType) SetTo ¶
func (o *NilEditableFileTypeFileType) SetTo(v EditableFileTypeFileType)
SetTo sets value to v.
func (*NilEditableFileTypeFileType) SetToNull ¶
func (o *NilEditableFileTypeFileType) SetToNull()
SetToNull sets value to null.
func (*NilEditableFileTypeFileType) UnmarshalJSON ¶
func (s *NilEditableFileTypeFileType) UnmarshalJSON(data []byte) error
UnmarshalJSON implements stdjson.Unmarshaler.
type NilGalleryImage ¶
type NilGalleryImage struct {
Value GalleryImage
Null bool
}
NilGalleryImage is nullable GalleryImage.
func NewNilGalleryImage ¶
func NewNilGalleryImage(v GalleryImage) NilGalleryImage
NewNilGalleryImage returns new NilGalleryImage with value set to v.
func (*NilGalleryImage) Decode ¶
func (o *NilGalleryImage) Decode(d *jx.Decoder) error
Decode decodes GalleryImage from json.
func (NilGalleryImage) Encode ¶
func (o NilGalleryImage) Encode(e *jx.Encoder)
Encode encodes GalleryImage as json.
func (NilGalleryImage) Get ¶
func (o NilGalleryImage) Get() (v GalleryImage, ok bool)
Get returns value and boolean that denotes whether value was set.
func (NilGalleryImage) IsNull ¶
func (o NilGalleryImage) IsNull() bool
IsNull returns true if value is Null.
func (NilGalleryImage) MarshalJSON ¶
func (s NilGalleryImage) MarshalJSON() ([]byte, error)
MarshalJSON implements stdjson.Marshaler.
func (NilGalleryImage) Or ¶
func (o NilGalleryImage) Or(d GalleryImage) GalleryImage
Or returns value if set, or given parameter if does not.
func (*NilGalleryImage) SetTo ¶
func (o *NilGalleryImage) SetTo(v GalleryImage)
SetTo sets value to v.
func (*NilGalleryImage) SetToNull ¶
func (o *NilGalleryImage) SetToNull()
SetToNull sets value to null.
func (*NilGalleryImage) UnmarshalJSON ¶
func (s *NilGalleryImage) UnmarshalJSON(data []byte) error
UnmarshalJSON implements stdjson.Unmarshaler.
type Notification ¶
type Notification struct {
// The id of the notification.
ID string `json:"id"`
// The id of the user who received the notification.
UserID string `json:"user_id"`
// The type of notification.
Type OptNilNotificationType `json:"type"`
// The title of the notification.
Title string `json:"title"`
// The body text of the notification.
Text string `json:"text"`
// A link to the related project or version.
Link string `json:"link"`
// Whether the notification has been read or not.
Read bool `json:"read"`
// The time at which the notification was created.
Created string `json:"created"`
// A list of actions that can be performed.
Actions []NotificationAction `json:"actions"`
}
Ref: #/components/schemas/Notification
func (*Notification) Decode ¶
func (s *Notification) Decode(d *jx.Decoder) error
Decode decodes Notification from json.
func (*Notification) Encode ¶
func (s *Notification) Encode(e *jx.Encoder)
Encode implements json.Marshaler.
func (*Notification) GetActions ¶
func (s *Notification) GetActions() []NotificationAction
GetActions returns the value of Actions.
func (*Notification) GetCreated ¶
func (s *Notification) GetCreated() string
GetCreated returns the value of Created.
func (*Notification) GetLink ¶
func (s *Notification) GetLink() string
GetLink returns the value of Link.
func (*Notification) GetRead ¶
func (s *Notification) GetRead() bool
GetRead returns the value of Read.
func (*Notification) GetText ¶
func (s *Notification) GetText() string
GetText returns the value of Text.
func (*Notification) GetTitle ¶
func (s *Notification) GetTitle() string
GetTitle returns the value of Title.
func (*Notification) GetType ¶
func (s *Notification) GetType() OptNilNotificationType
GetType returns the value of Type.
func (*Notification) GetUserID ¶
func (s *Notification) GetUserID() string
GetUserID returns the value of UserID.
func (*Notification) MarshalJSON ¶
func (s *Notification) MarshalJSON() ([]byte, error)
MarshalJSON implements stdjson.Marshaler.
func (*Notification) SetActions ¶
func (s *Notification) SetActions(val []NotificationAction)
SetActions sets the value of Actions.
func (*Notification) SetCreated ¶
func (s *Notification) SetCreated(val string)
SetCreated sets the value of Created.
func (*Notification) SetLink ¶
func (s *Notification) SetLink(val string)
SetLink sets the value of Link.
func (*Notification) SetRead ¶
func (s *Notification) SetRead(val bool)
SetRead sets the value of Read.
func (*Notification) SetText ¶
func (s *Notification) SetText(val string)
SetText sets the value of Text.
func (*Notification) SetTitle ¶
func (s *Notification) SetTitle(val string)
SetTitle sets the value of Title.
func (*Notification) SetType ¶
func (s *Notification) SetType(val OptNilNotificationType)
SetType sets the value of Type.
func (*Notification) SetUserID ¶
func (s *Notification) SetUserID(val string)
SetUserID sets the value of UserID.
func (*Notification) UnmarshalJSON ¶
func (s *Notification) UnmarshalJSON(data []byte) error
UnmarshalJSON implements stdjson.Unmarshaler.
func (*Notification) Validate ¶
func (s *Notification) Validate() error
type NotificationAction ¶
type NotificationAction struct {
// The friendly name for this action.
Title OptString `json:"title"`
// The HTTP code and path to request in order to perform this action.
ActionRoute []string `json:"action_route"`
}
An action that can be performed on a notification. Ref: #/components/schemas/NotificationAction
func (*NotificationAction) Decode ¶
func (s *NotificationAction) Decode(d *jx.Decoder) error
Decode decodes NotificationAction from json.
func (*NotificationAction) Encode ¶
func (s *NotificationAction) Encode(e *jx.Encoder)
Encode implements json.Marshaler.
func (*NotificationAction) GetActionRoute ¶
func (s *NotificationAction) GetActionRoute() []string
GetActionRoute returns the value of ActionRoute.
func (*NotificationAction) GetTitle ¶
func (s *NotificationAction) GetTitle() OptString
GetTitle returns the value of Title.
func (*NotificationAction) MarshalJSON ¶
func (s *NotificationAction) MarshalJSON() ([]byte, error)
MarshalJSON implements stdjson.Marshaler.
func (*NotificationAction) SetActionRoute ¶
func (s *NotificationAction) SetActionRoute(val []string)
SetActionRoute sets the value of ActionRoute.
func (*NotificationAction) SetTitle ¶
func (s *NotificationAction) SetTitle(val OptString)
SetTitle sets the value of Title.
func (*NotificationAction) UnmarshalJSON ¶
func (s *NotificationAction) UnmarshalJSON(data []byte) error
UnmarshalJSON implements stdjson.Unmarshaler.
type NotificationType ¶
type NotificationType string
The type of notification.
const ( NotificationTypeProjectUpdate NotificationType = "project_update" NotificationTypeTeamInvite NotificationType = "team_invite" NotificationTypeStatusChange NotificationType = "status_change" NotificationTypeModeratorMessage NotificationType = "moderator_message" )
func (NotificationType) AllValues ¶
func (NotificationType) AllValues() []NotificationType
AllValues returns all NotificationType values.
func (*NotificationType) Decode ¶
func (s *NotificationType) Decode(d *jx.Decoder) error
Decode decodes NotificationType from json.
func (NotificationType) Encode ¶
func (s NotificationType) Encode(e *jx.Encoder)
Encode encodes NotificationType as json.
func (NotificationType) MarshalJSON ¶
func (s NotificationType) MarshalJSON() ([]byte, error)
MarshalJSON implements stdjson.Marshaler.
func (NotificationType) MarshalText ¶
func (s NotificationType) MarshalText() ([]byte, error)
MarshalText implements encoding.TextMarshaler.
func (*NotificationType) UnmarshalJSON ¶
func (s *NotificationType) UnmarshalJSON(data []byte) error
UnmarshalJSON implements stdjson.Unmarshaler.
func (*NotificationType) UnmarshalText ¶
func (s *NotificationType) UnmarshalText(data []byte) error
UnmarshalText implements encoding.TextUnmarshaler.
func (NotificationType) Validate ¶
func (s NotificationType) Validate() error
type OperationName ¶
type OperationName = string
OperationName is the ogen operation name
const ( AddGalleryImageOperation OperationName = "AddGalleryImage" AddTeamMemberOperation OperationName = "AddTeamMember" CategoryListOperation OperationName = "CategoryList" ChangeProjectIconOperation OperationName = "ChangeProjectIcon" ChangeUserIconOperation OperationName = "ChangeUserIcon" CheckProjectValidityOperation OperationName = "CheckProjectValidity" CreateVersionOperation OperationName = "CreateVersion" DeleteFileFromHashOperation OperationName = "DeleteFileFromHash" DeleteGalleryImageOperation OperationName = "DeleteGalleryImage" DeleteNotificationOperation OperationName = "DeleteNotification" DeleteNotificationsOperation OperationName = "DeleteNotifications" DeleteProjectOperation OperationName = "DeleteProject" DeleteProjectIconOperation OperationName = "DeleteProjectIcon" DeleteTeamMemberOperation OperationName = "DeleteTeamMember" DeleteThreadMessageOperation OperationName = "DeleteThreadMessage" DeleteUserIconOperation OperationName = "DeleteUserIcon" DeleteVersionOperation OperationName = "DeleteVersion" DonationPlatformListOperation OperationName = "DonationPlatformList" FollowProjectOperation OperationName = "FollowProject" ForgeUpdatesOperation OperationName = "ForgeUpdates" GetDependenciesOperation OperationName = "GetDependencies" GetFollowedProjectsOperation OperationName = "GetFollowedProjects" GetLatestVersionFromHashOperation OperationName = "GetLatestVersionFromHash" GetLatestVersionsFromHashesOperation OperationName = "GetLatestVersionsFromHashes" GetNotificationOperation OperationName = "GetNotification" GetNotificationsOperation OperationName = "GetNotifications" GetOpenReportsOperation OperationName = "GetOpenReports" GetPayoutHistoryOperation OperationName = "GetPayoutHistory" GetProjectOperation OperationName = "GetProject" GetProjectTeamMembersOperation OperationName = "GetProjectTeamMembers" GetProjectVersionsOperation OperationName = "GetProjectVersions" GetProjectsOperation OperationName = "GetProjects" GetReportOperation OperationName = "GetReport" GetReportsOperation OperationName = "GetReports" GetTeamMembersOperation OperationName = "GetTeamMembers" GetTeamsOperation OperationName = "GetTeams" GetThreadOperation OperationName = "GetThread" GetThreadsOperation OperationName = "GetThreads" GetUserOperation OperationName = "GetUser" GetUserFromAuthOperation OperationName = "GetUserFromAuth" GetUserNotificationsOperation OperationName = "GetUserNotifications" GetUserProjectsOperation OperationName = "GetUserProjects" GetUsersOperation OperationName = "GetUsers" GetVersionOperation OperationName = "GetVersion" GetVersionFromIdOrNumberOperation OperationName = "GetVersionFromIdOrNumber" GetVersionsOperation OperationName = "GetVersions" JoinTeamOperation OperationName = "JoinTeam" LicenseListOperation OperationName = "LicenseList" LicenseTextOperation OperationName = "LicenseText" LoaderListOperation OperationName = "LoaderList" ModifyGalleryImageOperation OperationName = "ModifyGalleryImage" ModifyProjectOperation OperationName = "ModifyProject" ModifyReportOperation OperationName = "ModifyReport" ModifyTeamMemberOperation OperationName = "ModifyTeamMember" ModifyUserOperation OperationName = "ModifyUser" ModifyVersionOperation OperationName = "ModifyVersion" PatchProjectsOperation OperationName = "PatchProjects" ProjectTypeListOperation OperationName = "ProjectTypeList" RandomProjectsOperation OperationName = "RandomProjects" ReadNotificationOperation OperationName = "ReadNotification" ReadNotificationsOperation OperationName = "ReadNotifications" ReportTypeListOperation OperationName = "ReportTypeList" ScheduleProjectOperation OperationName = "ScheduleProject" ScheduleVersionOperation OperationName = "ScheduleVersion" SearchProjectsOperation OperationName = "SearchProjects" SendThreadMessageOperation OperationName = "SendThreadMessage" SideTypeListOperation OperationName = "SideTypeList" StatisticsOperation OperationName = "Statistics" SubmitReportOperation OperationName = "SubmitReport" TransferTeamOwnershipOperation OperationName = "TransferTeamOwnership" UnfollowProjectOperation OperationName = "UnfollowProject" VersionFromHashOperation OperationName = "VersionFromHash" VersionListOperation OperationName = "VersionList" VersionsFromHashesOperation OperationName = "VersionsFromHashes" WithdrawPayoutOperation OperationName = "WithdrawPayout" )
type OptBool ¶
OptBool is optional bool.
func NewOptBool ¶
NewOptBool returns new OptBool with value set to v.
func (OptBool) MarshalJSON ¶
MarshalJSON implements stdjson.Marshaler.
func (*OptBool) UnmarshalJSON ¶
UnmarshalJSON implements stdjson.Unmarshaler.
type OptCreatableReport ¶
type OptCreatableReport struct {
Value CreatableReport
Set bool
}
OptCreatableReport is optional CreatableReport.
func NewOptCreatableReport ¶
func NewOptCreatableReport(v CreatableReport) OptCreatableReport
NewOptCreatableReport returns new OptCreatableReport with value set to v.
func (*OptCreatableReport) Decode ¶
func (o *OptCreatableReport) Decode(d *jx.Decoder) error
Decode decodes CreatableReport from json.
func (OptCreatableReport) Encode ¶
func (o OptCreatableReport) Encode(e *jx.Encoder)
Encode encodes CreatableReport as json.
func (OptCreatableReport) Get ¶
func (o OptCreatableReport) Get() (v CreatableReport, ok bool)
Get returns value and boolean that denotes whether value was set.
func (OptCreatableReport) IsSet ¶
func (o OptCreatableReport) IsSet() bool
IsSet returns true if OptCreatableReport was set.
func (OptCreatableReport) MarshalJSON ¶
func (s OptCreatableReport) MarshalJSON() ([]byte, error)
MarshalJSON implements stdjson.Marshaler.
func (OptCreatableReport) Or ¶
func (o OptCreatableReport) Or(d CreatableReport) CreatableReport
Or returns value if set, or given parameter if does not.
func (*OptCreatableReport) SetTo ¶
func (o *OptCreatableReport) SetTo(v CreatableReport)
SetTo sets value to v.
func (*OptCreatableReport) UnmarshalJSON ¶
func (s *OptCreatableReport) UnmarshalJSON(data []byte) error
UnmarshalJSON implements stdjson.Unmarshaler.
type OptCreatableVersionStatus ¶
type OptCreatableVersionStatus struct {
Value CreatableVersionStatus
Set bool
}
OptCreatableVersionStatus is optional CreatableVersionStatus.
func NewOptCreatableVersionStatus ¶
func NewOptCreatableVersionStatus(v CreatableVersionStatus) OptCreatableVersionStatus
NewOptCreatableVersionStatus returns new OptCreatableVersionStatus with value set to v.
func (*OptCreatableVersionStatus) Decode ¶
func (o *OptCreatableVersionStatus) Decode(d *jx.Decoder) error
Decode decodes CreatableVersionStatus from json.
func (OptCreatableVersionStatus) Encode ¶
func (o OptCreatableVersionStatus) Encode(e *jx.Encoder)
Encode encodes CreatableVersionStatus as json.
func (OptCreatableVersionStatus) Get ¶
func (o OptCreatableVersionStatus) Get() (v CreatableVersionStatus, ok bool)
Get returns value and boolean that denotes whether value was set.
func (OptCreatableVersionStatus) IsSet ¶
func (o OptCreatableVersionStatus) IsSet() bool
IsSet returns true if OptCreatableVersionStatus was set.
func (OptCreatableVersionStatus) MarshalJSON ¶
func (s OptCreatableVersionStatus) MarshalJSON() ([]byte, error)
MarshalJSON implements stdjson.Marshaler.
func (*OptCreatableVersionStatus) Reset ¶
func (o *OptCreatableVersionStatus) Reset()
Reset unsets value.
func (*OptCreatableVersionStatus) SetTo ¶
func (o *OptCreatableVersionStatus) SetTo(v CreatableVersionStatus)
SetTo sets value to v.
func (*OptCreatableVersionStatus) UnmarshalJSON ¶
func (s *OptCreatableVersionStatus) UnmarshalJSON(data []byte) error
UnmarshalJSON implements stdjson.Unmarshaler.
type OptCreateVersionBodyMultipart ¶
type OptCreateVersionBodyMultipart struct {
Value CreateVersionBodyMultipart
Set bool
}
OptCreateVersionBodyMultipart is optional CreateVersionBodyMultipart.
func NewOptCreateVersionBodyMultipart ¶
func NewOptCreateVersionBodyMultipart(v CreateVersionBodyMultipart) OptCreateVersionBodyMultipart
NewOptCreateVersionBodyMultipart returns new OptCreateVersionBodyMultipart with value set to v.
func (OptCreateVersionBodyMultipart) Get ¶
func (o OptCreateVersionBodyMultipart) Get() (v CreateVersionBodyMultipart, ok bool)
Get returns value and boolean that denotes whether value was set.
func (OptCreateVersionBodyMultipart) IsSet ¶
func (o OptCreateVersionBodyMultipart) IsSet() bool
IsSet returns true if OptCreateVersionBodyMultipart was set.
func (*OptCreateVersionBodyMultipart) Reset ¶
func (o *OptCreateVersionBodyMultipart) Reset()
Reset unsets value.
func (*OptCreateVersionBodyMultipart) SetTo ¶
func (o *OptCreateVersionBodyMultipart) SetTo(v CreateVersionBodyMultipart)
SetTo sets value to v.
type OptEditableProject ¶
type OptEditableProject struct {
Value EditableProject
Set bool
}
OptEditableProject is optional EditableProject.
func NewOptEditableProject ¶
func NewOptEditableProject(v EditableProject) OptEditableProject
NewOptEditableProject returns new OptEditableProject with value set to v.
func (*OptEditableProject) Decode ¶
func (o *OptEditableProject) Decode(d *jx.Decoder) error
Decode decodes EditableProject from json.
func (OptEditableProject) Encode ¶
func (o OptEditableProject) Encode(e *jx.Encoder)
Encode encodes EditableProject as json.
func (OptEditableProject) Get ¶
func (o OptEditableProject) Get() (v EditableProject, ok bool)
Get returns value and boolean that denotes whether value was set.
func (OptEditableProject) IsSet ¶
func (o OptEditableProject) IsSet() bool
IsSet returns true if OptEditableProject was set.
func (OptEditableProject) MarshalJSON ¶
func (s OptEditableProject) MarshalJSON() ([]byte, error)
MarshalJSON implements stdjson.Marshaler.
func (OptEditableProject) Or ¶
func (o OptEditableProject) Or(d EditableProject) EditableProject
Or returns value if set, or given parameter if does not.
func (*OptEditableProject) SetTo ¶
func (o *OptEditableProject) SetTo(v EditableProject)
SetTo sets value to v.
func (*OptEditableProject) UnmarshalJSON ¶
func (s *OptEditableProject) UnmarshalJSON(data []byte) error
UnmarshalJSON implements stdjson.Unmarshaler.
type OptEditableProjectClientSide ¶
type OptEditableProjectClientSide struct {
Value EditableProjectClientSide
Set bool
}
OptEditableProjectClientSide is optional EditableProjectClientSide.
func NewOptEditableProjectClientSide ¶
func NewOptEditableProjectClientSide(v EditableProjectClientSide) OptEditableProjectClientSide
NewOptEditableProjectClientSide returns new OptEditableProjectClientSide with value set to v.
func (*OptEditableProjectClientSide) Decode ¶
func (o *OptEditableProjectClientSide) Decode(d *jx.Decoder) error
Decode decodes EditableProjectClientSide from json.
func (OptEditableProjectClientSide) Encode ¶
func (o OptEditableProjectClientSide) Encode(e *jx.Encoder)
Encode encodes EditableProjectClientSide as json.
func (OptEditableProjectClientSide) Get ¶
func (o OptEditableProjectClientSide) Get() (v EditableProjectClientSide, ok bool)
Get returns value and boolean that denotes whether value was set.
func (OptEditableProjectClientSide) IsSet ¶
func (o OptEditableProjectClientSide) IsSet() bool
IsSet returns true if OptEditableProjectClientSide was set.
func (OptEditableProjectClientSide) MarshalJSON ¶
func (s OptEditableProjectClientSide) MarshalJSON() ([]byte, error)
MarshalJSON implements stdjson.Marshaler.
func (*OptEditableProjectClientSide) Reset ¶
func (o *OptEditableProjectClientSide) Reset()
Reset unsets value.
func (*OptEditableProjectClientSide) SetTo ¶
func (o *OptEditableProjectClientSide) SetTo(v EditableProjectClientSide)
SetTo sets value to v.
func (*OptEditableProjectClientSide) UnmarshalJSON ¶
func (s *OptEditableProjectClientSide) UnmarshalJSON(data []byte) error
UnmarshalJSON implements stdjson.Unmarshaler.
type OptEditableProjectServerSide ¶
type OptEditableProjectServerSide struct {
Value EditableProjectServerSide
Set bool
}
OptEditableProjectServerSide is optional EditableProjectServerSide.
func NewOptEditableProjectServerSide ¶
func NewOptEditableProjectServerSide(v EditableProjectServerSide) OptEditableProjectServerSide
NewOptEditableProjectServerSide returns new OptEditableProjectServerSide with value set to v.
func (*OptEditableProjectServerSide) Decode ¶
func (o *OptEditableProjectServerSide) Decode(d *jx.Decoder) error
Decode decodes EditableProjectServerSide from json.
func (OptEditableProjectServerSide) Encode ¶
func (o OptEditableProjectServerSide) Encode(e *jx.Encoder)
Encode encodes EditableProjectServerSide as json.
func (OptEditableProjectServerSide) Get ¶
func (o OptEditableProjectServerSide) Get() (v EditableProjectServerSide, ok bool)
Get returns value and boolean that denotes whether value was set.
func (OptEditableProjectServerSide) IsSet ¶
func (o OptEditableProjectServerSide) IsSet() bool
IsSet returns true if OptEditableProjectServerSide was set.
func (OptEditableProjectServerSide) MarshalJSON ¶
func (s OptEditableProjectServerSide) MarshalJSON() ([]byte, error)
MarshalJSON implements stdjson.Marshaler.
func (*OptEditableProjectServerSide) Reset ¶
func (o *OptEditableProjectServerSide) Reset()
Reset unsets value.
func (*OptEditableProjectServerSide) SetTo ¶
func (o *OptEditableProjectServerSide) SetTo(v EditableProjectServerSide)
SetTo sets value to v.
func (*OptEditableProjectServerSide) UnmarshalJSON ¶
func (s *OptEditableProjectServerSide) UnmarshalJSON(data []byte) error
UnmarshalJSON implements stdjson.Unmarshaler.
type OptEditableProjectStatus ¶
type OptEditableProjectStatus struct {
Value EditableProjectStatus
Set bool
}
OptEditableProjectStatus is optional EditableProjectStatus.
func NewOptEditableProjectStatus ¶
func NewOptEditableProjectStatus(v EditableProjectStatus) OptEditableProjectStatus
NewOptEditableProjectStatus returns new OptEditableProjectStatus with value set to v.
func (*OptEditableProjectStatus) Decode ¶
func (o *OptEditableProjectStatus) Decode(d *jx.Decoder) error
Decode decodes EditableProjectStatus from json.
func (OptEditableProjectStatus) Encode ¶
func (o OptEditableProjectStatus) Encode(e *jx.Encoder)
Encode encodes EditableProjectStatus as json.
func (OptEditableProjectStatus) Get ¶
func (o OptEditableProjectStatus) Get() (v EditableProjectStatus, ok bool)
Get returns value and boolean that denotes whether value was set.
func (OptEditableProjectStatus) IsSet ¶
func (o OptEditableProjectStatus) IsSet() bool
IsSet returns true if OptEditableProjectStatus was set.
func (OptEditableProjectStatus) MarshalJSON ¶
func (s OptEditableProjectStatus) MarshalJSON() ([]byte, error)
MarshalJSON implements stdjson.Marshaler.
func (OptEditableProjectStatus) Or ¶
func (o OptEditableProjectStatus) Or(d EditableProjectStatus) EditableProjectStatus
Or returns value if set, or given parameter if does not.
func (*OptEditableProjectStatus) Reset ¶
func (o *OptEditableProjectStatus) Reset()
Reset unsets value.
func (*OptEditableProjectStatus) SetTo ¶
func (o *OptEditableProjectStatus) SetTo(v EditableProjectStatus)
SetTo sets value to v.
func (*OptEditableProjectStatus) UnmarshalJSON ¶
func (s *OptEditableProjectStatus) UnmarshalJSON(data []byte) error
UnmarshalJSON implements stdjson.Unmarshaler.
type OptEditableUser ¶
type OptEditableUser struct {
Value EditableUser
Set bool
}
OptEditableUser is optional EditableUser.
func NewOptEditableUser ¶
func NewOptEditableUser(v EditableUser) OptEditableUser
NewOptEditableUser returns new OptEditableUser with value set to v.
func (*OptEditableUser) Decode ¶
func (o *OptEditableUser) Decode(d *jx.Decoder) error
Decode decodes EditableUser from json.
func (OptEditableUser) Encode ¶
func (o OptEditableUser) Encode(e *jx.Encoder)
Encode encodes EditableUser as json.
func (OptEditableUser) Get ¶
func (o OptEditableUser) Get() (v EditableUser, ok bool)
Get returns value and boolean that denotes whether value was set.
func (OptEditableUser) IsSet ¶
func (o OptEditableUser) IsSet() bool
IsSet returns true if OptEditableUser was set.
func (OptEditableUser) MarshalJSON ¶
func (s OptEditableUser) MarshalJSON() ([]byte, error)
MarshalJSON implements stdjson.Marshaler.
func (OptEditableUser) Or ¶
func (o OptEditableUser) Or(d EditableUser) EditableUser
Or returns value if set, or given parameter if does not.
func (*OptEditableUser) SetTo ¶
func (o *OptEditableUser) SetTo(v EditableUser)
SetTo sets value to v.
func (*OptEditableUser) UnmarshalJSON ¶
func (s *OptEditableUser) UnmarshalJSON(data []byte) error
UnmarshalJSON implements stdjson.Unmarshaler.
type OptEditableVersion ¶
type OptEditableVersion struct {
Value EditableVersion
Set bool
}
OptEditableVersion is optional EditableVersion.
func NewOptEditableVersion ¶
func NewOptEditableVersion(v EditableVersion) OptEditableVersion
NewOptEditableVersion returns new OptEditableVersion with value set to v.
func (*OptEditableVersion) Decode ¶
func (o *OptEditableVersion) Decode(d *jx.Decoder) error
Decode decodes EditableVersion from json.
func (OptEditableVersion) Encode ¶
func (o OptEditableVersion) Encode(e *jx.Encoder)
Encode encodes EditableVersion as json.
func (OptEditableVersion) Get ¶
func (o OptEditableVersion) Get() (v EditableVersion, ok bool)
Get returns value and boolean that denotes whether value was set.
func (OptEditableVersion) IsSet ¶
func (o OptEditableVersion) IsSet() bool
IsSet returns true if OptEditableVersion was set.
func (OptEditableVersion) MarshalJSON ¶
func (s OptEditableVersion) MarshalJSON() ([]byte, error)
MarshalJSON implements stdjson.Marshaler.
func (OptEditableVersion) Or ¶
func (o OptEditableVersion) Or(d EditableVersion) EditableVersion
Or returns value if set, or given parameter if does not.
func (*OptEditableVersion) SetTo ¶
func (o *OptEditableVersion) SetTo(v EditableVersion)
SetTo sets value to v.
func (*OptEditableVersion) UnmarshalJSON ¶
func (s *OptEditableVersion) UnmarshalJSON(data []byte) error
UnmarshalJSON implements stdjson.Unmarshaler.
type OptEditableVersionStatus ¶
type OptEditableVersionStatus struct {
Value EditableVersionStatus
Set bool
}
OptEditableVersionStatus is optional EditableVersionStatus.
func NewOptEditableVersionStatus ¶
func NewOptEditableVersionStatus(v EditableVersionStatus) OptEditableVersionStatus
NewOptEditableVersionStatus returns new OptEditableVersionStatus with value set to v.
func (*OptEditableVersionStatus) Decode ¶
func (o *OptEditableVersionStatus) Decode(d *jx.Decoder) error
Decode decodes EditableVersionStatus from json.
func (OptEditableVersionStatus) Encode ¶
func (o OptEditableVersionStatus) Encode(e *jx.Encoder)
Encode encodes EditableVersionStatus as json.
func (OptEditableVersionStatus) Get ¶
func (o OptEditableVersionStatus) Get() (v EditableVersionStatus, ok bool)
Get returns value and boolean that denotes whether value was set.
func (OptEditableVersionStatus) IsSet ¶
func (o OptEditableVersionStatus) IsSet() bool
IsSet returns true if OptEditableVersionStatus was set.
func (OptEditableVersionStatus) MarshalJSON ¶
func (s OptEditableVersionStatus) MarshalJSON() ([]byte, error)
MarshalJSON implements stdjson.Marshaler.
func (OptEditableVersionStatus) Or ¶
func (o OptEditableVersionStatus) Or(d EditableVersionStatus) EditableVersionStatus
Or returns value if set, or given parameter if does not.
func (*OptEditableVersionStatus) Reset ¶
func (o *OptEditableVersionStatus) Reset()
Reset unsets value.
func (*OptEditableVersionStatus) SetTo ¶
func (o *OptEditableVersionStatus) SetTo(v EditableVersionStatus)
SetTo sets value to v.
func (*OptEditableVersionStatus) UnmarshalJSON ¶
func (s *OptEditableVersionStatus) UnmarshalJSON(data []byte) error
UnmarshalJSON implements stdjson.Unmarshaler.
type OptEditableVersionVersionType ¶
type OptEditableVersionVersionType struct {
Value EditableVersionVersionType
Set bool
}
OptEditableVersionVersionType is optional EditableVersionVersionType.
func NewOptEditableVersionVersionType ¶
func NewOptEditableVersionVersionType(v EditableVersionVersionType) OptEditableVersionVersionType
NewOptEditableVersionVersionType returns new OptEditableVersionVersionType with value set to v.
func (*OptEditableVersionVersionType) Decode ¶
func (o *OptEditableVersionVersionType) Decode(d *jx.Decoder) error
Decode decodes EditableVersionVersionType from json.
func (OptEditableVersionVersionType) Encode ¶
func (o OptEditableVersionVersionType) Encode(e *jx.Encoder)
Encode encodes EditableVersionVersionType as json.
func (OptEditableVersionVersionType) Get ¶
func (o OptEditableVersionVersionType) Get() (v EditableVersionVersionType, ok bool)
Get returns value and boolean that denotes whether value was set.
func (OptEditableVersionVersionType) IsSet ¶
func (o OptEditableVersionVersionType) IsSet() bool
IsSet returns true if OptEditableVersionVersionType was set.
func (OptEditableVersionVersionType) MarshalJSON ¶
func (s OptEditableVersionVersionType) MarshalJSON() ([]byte, error)
MarshalJSON implements stdjson.Marshaler.
func (*OptEditableVersionVersionType) Reset ¶
func (o *OptEditableVersionVersionType) Reset()
Reset unsets value.
func (*OptEditableVersionVersionType) SetTo ¶
func (o *OptEditableVersionVersionType) SetTo(v EditableVersionVersionType)
SetTo sets value to v.
func (*OptEditableVersionVersionType) UnmarshalJSON ¶
func (s *OptEditableVersionVersionType) UnmarshalJSON(data []byte) error
UnmarshalJSON implements stdjson.Unmarshaler.
type OptForgeUpdateCheckerPromos ¶
type OptForgeUpdateCheckerPromos struct {
Value ForgeUpdateCheckerPromos
Set bool
}
OptForgeUpdateCheckerPromos is optional ForgeUpdateCheckerPromos.
func NewOptForgeUpdateCheckerPromos ¶
func NewOptForgeUpdateCheckerPromos(v ForgeUpdateCheckerPromos) OptForgeUpdateCheckerPromos
NewOptForgeUpdateCheckerPromos returns new OptForgeUpdateCheckerPromos with value set to v.
func (*OptForgeUpdateCheckerPromos) Decode ¶
func (o *OptForgeUpdateCheckerPromos) Decode(d *jx.Decoder) error
Decode decodes ForgeUpdateCheckerPromos from json.
func (OptForgeUpdateCheckerPromos) Encode ¶
func (o OptForgeUpdateCheckerPromos) Encode(e *jx.Encoder)
Encode encodes ForgeUpdateCheckerPromos as json.
func (OptForgeUpdateCheckerPromos) Get ¶
func (o OptForgeUpdateCheckerPromos) Get() (v ForgeUpdateCheckerPromos, ok bool)
Get returns value and boolean that denotes whether value was set.
func (OptForgeUpdateCheckerPromos) IsSet ¶
func (o OptForgeUpdateCheckerPromos) IsSet() bool
IsSet returns true if OptForgeUpdateCheckerPromos was set.
func (OptForgeUpdateCheckerPromos) MarshalJSON ¶
func (s OptForgeUpdateCheckerPromos) MarshalJSON() ([]byte, error)
MarshalJSON implements stdjson.Marshaler.
func (*OptForgeUpdateCheckerPromos) Reset ¶
func (o *OptForgeUpdateCheckerPromos) Reset()
Reset unsets value.
func (*OptForgeUpdateCheckerPromos) SetTo ¶
func (o *OptForgeUpdateCheckerPromos) SetTo(v ForgeUpdateCheckerPromos)
SetTo sets value to v.
func (*OptForgeUpdateCheckerPromos) UnmarshalJSON ¶
func (s *OptForgeUpdateCheckerPromos) UnmarshalJSON(data []byte) error
UnmarshalJSON implements stdjson.Unmarshaler.
type OptGetLatestVersionFromHashBody ¶
type OptGetLatestVersionFromHashBody struct {
Value GetLatestVersionFromHashBody
Set bool
}
OptGetLatestVersionFromHashBody is optional GetLatestVersionFromHashBody.
func NewOptGetLatestVersionFromHashBody ¶
func NewOptGetLatestVersionFromHashBody(v GetLatestVersionFromHashBody) OptGetLatestVersionFromHashBody
NewOptGetLatestVersionFromHashBody returns new OptGetLatestVersionFromHashBody with value set to v.
func (*OptGetLatestVersionFromHashBody) Decode ¶
func (o *OptGetLatestVersionFromHashBody) Decode(d *jx.Decoder) error
Decode decodes GetLatestVersionFromHashBody from json.
func (OptGetLatestVersionFromHashBody) Encode ¶
func (o OptGetLatestVersionFromHashBody) Encode(e *jx.Encoder)
Encode encodes GetLatestVersionFromHashBody as json.
func (OptGetLatestVersionFromHashBody) Get ¶
func (o OptGetLatestVersionFromHashBody) Get() (v GetLatestVersionFromHashBody, ok bool)
Get returns value and boolean that denotes whether value was set.
func (OptGetLatestVersionFromHashBody) IsSet ¶
func (o OptGetLatestVersionFromHashBody) IsSet() bool
IsSet returns true if OptGetLatestVersionFromHashBody was set.
func (OptGetLatestVersionFromHashBody) MarshalJSON ¶
func (s OptGetLatestVersionFromHashBody) MarshalJSON() ([]byte, error)
MarshalJSON implements stdjson.Marshaler.
func (OptGetLatestVersionFromHashBody) Or ¶
func (o OptGetLatestVersionFromHashBody) Or(d GetLatestVersionFromHashBody) GetLatestVersionFromHashBody
Or returns value if set, or given parameter if does not.
func (*OptGetLatestVersionFromHashBody) Reset ¶
func (o *OptGetLatestVersionFromHashBody) Reset()
Reset unsets value.
func (*OptGetLatestVersionFromHashBody) SetTo ¶
func (o *OptGetLatestVersionFromHashBody) SetTo(v GetLatestVersionFromHashBody)
SetTo sets value to v.
func (*OptGetLatestVersionFromHashBody) UnmarshalJSON ¶
func (s *OptGetLatestVersionFromHashBody) UnmarshalJSON(data []byte) error
UnmarshalJSON implements stdjson.Unmarshaler.
type OptGetLatestVersionsFromHashesBody ¶
type OptGetLatestVersionsFromHashesBody struct {
Value GetLatestVersionsFromHashesBody
Set bool
}
OptGetLatestVersionsFromHashesBody is optional GetLatestVersionsFromHashesBody.
func NewOptGetLatestVersionsFromHashesBody ¶
func NewOptGetLatestVersionsFromHashesBody(v GetLatestVersionsFromHashesBody) OptGetLatestVersionsFromHashesBody
NewOptGetLatestVersionsFromHashesBody returns new OptGetLatestVersionsFromHashesBody with value set to v.
func (*OptGetLatestVersionsFromHashesBody) Decode ¶
func (o *OptGetLatestVersionsFromHashesBody) Decode(d *jx.Decoder) error
Decode decodes GetLatestVersionsFromHashesBody from json.
func (OptGetLatestVersionsFromHashesBody) Encode ¶
func (o OptGetLatestVersionsFromHashesBody) Encode(e *jx.Encoder)
Encode encodes GetLatestVersionsFromHashesBody as json.
func (OptGetLatestVersionsFromHashesBody) Get ¶
func (o OptGetLatestVersionsFromHashesBody) Get() (v GetLatestVersionsFromHashesBody, ok bool)
Get returns value and boolean that denotes whether value was set.
func (OptGetLatestVersionsFromHashesBody) IsSet ¶
func (o OptGetLatestVersionsFromHashesBody) IsSet() bool
IsSet returns true if OptGetLatestVersionsFromHashesBody was set.
func (OptGetLatestVersionsFromHashesBody) MarshalJSON ¶
func (s OptGetLatestVersionsFromHashesBody) MarshalJSON() ([]byte, error)
MarshalJSON implements stdjson.Marshaler.
func (OptGetLatestVersionsFromHashesBody) Or ¶
func (o OptGetLatestVersionsFromHashesBody) Or(d GetLatestVersionsFromHashesBody) GetLatestVersionsFromHashesBody
Or returns value if set, or given parameter if does not.
func (*OptGetLatestVersionsFromHashesBody) Reset ¶
func (o *OptGetLatestVersionsFromHashesBody) Reset()
Reset unsets value.
func (*OptGetLatestVersionsFromHashesBody) SetTo ¶
func (o *OptGetLatestVersionsFromHashesBody) SetTo(v GetLatestVersionsFromHashesBody)
SetTo sets value to v.
func (*OptGetLatestVersionsFromHashesBody) UnmarshalJSON ¶
func (s *OptGetLatestVersionsFromHashesBody) UnmarshalJSON(data []byte) error
UnmarshalJSON implements stdjson.Unmarshaler.
type OptHashList ¶
OptHashList is optional HashList.
func NewOptHashList ¶
func NewOptHashList(v HashList) OptHashList
NewOptHashList returns new OptHashList with value set to v.
func (*OptHashList) Decode ¶
func (o *OptHashList) Decode(d *jx.Decoder) error
Decode decodes HashList from json.
func (OptHashList) Encode ¶
func (o OptHashList) Encode(e *jx.Encoder)
Encode encodes HashList as json.
func (OptHashList) Get ¶
func (o OptHashList) Get() (v HashList, ok bool)
Get returns value and boolean that denotes whether value was set.
func (OptHashList) IsSet ¶
func (o OptHashList) IsSet() bool
IsSet returns true if OptHashList was set.
func (OptHashList) MarshalJSON ¶
func (s OptHashList) MarshalJSON() ([]byte, error)
MarshalJSON implements stdjson.Marshaler.
func (OptHashList) Or ¶
func (o OptHashList) Or(d HashList) HashList
Or returns value if set, or given parameter if does not.
func (*OptHashList) UnmarshalJSON ¶
func (s *OptHashList) UnmarshalJSON(data []byte) error
UnmarshalJSON implements stdjson.Unmarshaler.
type OptInt ¶
OptInt is optional int.
func (OptInt) MarshalJSON ¶
MarshalJSON implements stdjson.Marshaler.
func (*OptInt) UnmarshalJSON ¶
UnmarshalJSON implements stdjson.Unmarshaler.
type OptModifyReportReq ¶
type OptModifyReportReq struct {
Value ModifyReportReq
Set bool
}
OptModifyReportReq is optional ModifyReportReq.
func NewOptModifyReportReq ¶
func NewOptModifyReportReq(v ModifyReportReq) OptModifyReportReq
NewOptModifyReportReq returns new OptModifyReportReq with value set to v.
func (*OptModifyReportReq) Decode ¶
func (o *OptModifyReportReq) Decode(d *jx.Decoder) error
Decode decodes ModifyReportReq from json.
func (OptModifyReportReq) Encode ¶
func (o OptModifyReportReq) Encode(e *jx.Encoder)
Encode encodes ModifyReportReq as json.
func (OptModifyReportReq) Get ¶
func (o OptModifyReportReq) Get() (v ModifyReportReq, ok bool)
Get returns value and boolean that denotes whether value was set.
func (OptModifyReportReq) IsSet ¶
func (o OptModifyReportReq) IsSet() bool
IsSet returns true if OptModifyReportReq was set.
func (OptModifyReportReq) MarshalJSON ¶
func (s OptModifyReportReq) MarshalJSON() ([]byte, error)
MarshalJSON implements stdjson.Marshaler.
func (OptModifyReportReq) Or ¶
func (o OptModifyReportReq) Or(d ModifyReportReq) ModifyReportReq
Or returns value if set, or given parameter if does not.
func (*OptModifyReportReq) SetTo ¶
func (o *OptModifyReportReq) SetTo(v ModifyReportReq)
SetTo sets value to v.
func (*OptModifyReportReq) UnmarshalJSON ¶
func (s *OptModifyReportReq) UnmarshalJSON(data []byte) error
UnmarshalJSON implements stdjson.Unmarshaler.
type OptNilBool ¶
OptNilBool is optional nullable bool.
func NewOptNilBool ¶
func NewOptNilBool(v bool) OptNilBool
NewOptNilBool returns new OptNilBool with value set to v.
func (*OptNilBool) Decode ¶
func (o *OptNilBool) Decode(d *jx.Decoder) error
Decode decodes bool from json.
func (OptNilBool) Get ¶
func (o OptNilBool) Get() (v bool, ok bool)
Get returns value and boolean that denotes whether value was set.
func (OptNilBool) IsSet ¶
func (o OptNilBool) IsSet() bool
IsSet returns true if OptNilBool was set.
func (OptNilBool) MarshalJSON ¶
func (s OptNilBool) MarshalJSON() ([]byte, error)
MarshalJSON implements stdjson.Marshaler.
func (OptNilBool) Or ¶
func (o OptNilBool) Or(d bool) bool
Or returns value if set, or given parameter if does not.
func (*OptNilBool) UnmarshalJSON ¶
func (s *OptNilBool) UnmarshalJSON(data []byte) error
UnmarshalJSON implements stdjson.Unmarshaler.
type OptNilCreatableVersionRequestedStatus ¶
type OptNilCreatableVersionRequestedStatus struct {
Value CreatableVersionRequestedStatus
Set bool
Null bool
}
OptNilCreatableVersionRequestedStatus is optional nullable CreatableVersionRequestedStatus.
func NewOptNilCreatableVersionRequestedStatus ¶
func NewOptNilCreatableVersionRequestedStatus(v CreatableVersionRequestedStatus) OptNilCreatableVersionRequestedStatus
NewOptNilCreatableVersionRequestedStatus returns new OptNilCreatableVersionRequestedStatus with value set to v.
func (*OptNilCreatableVersionRequestedStatus) Decode ¶
func (o *OptNilCreatableVersionRequestedStatus) Decode(d *jx.Decoder) error
Decode decodes CreatableVersionRequestedStatus from json.
func (OptNilCreatableVersionRequestedStatus) Encode ¶
func (o OptNilCreatableVersionRequestedStatus) Encode(e *jx.Encoder)
Encode encodes CreatableVersionRequestedStatus as json.
func (OptNilCreatableVersionRequestedStatus) Get ¶
func (o OptNilCreatableVersionRequestedStatus) Get() (v CreatableVersionRequestedStatus, ok bool)
Get returns value and boolean that denotes whether value was set.
func (OptNilCreatableVersionRequestedStatus) IsNull ¶
func (o OptNilCreatableVersionRequestedStatus) IsNull() bool
IsNull returns true if value is Null.
func (OptNilCreatableVersionRequestedStatus) IsSet ¶
func (o OptNilCreatableVersionRequestedStatus) IsSet() bool
IsSet returns true if OptNilCreatableVersionRequestedStatus was set.
func (OptNilCreatableVersionRequestedStatus) MarshalJSON ¶
func (s OptNilCreatableVersionRequestedStatus) MarshalJSON() ([]byte, error)
MarshalJSON implements stdjson.Marshaler.
func (OptNilCreatableVersionRequestedStatus) Or ¶
func (o OptNilCreatableVersionRequestedStatus) Or(d CreatableVersionRequestedStatus) CreatableVersionRequestedStatus
Or returns value if set, or given parameter if does not.
func (*OptNilCreatableVersionRequestedStatus) Reset ¶
func (o *OptNilCreatableVersionRequestedStatus) Reset()
Reset unsets value.
func (*OptNilCreatableVersionRequestedStatus) SetTo ¶
func (o *OptNilCreatableVersionRequestedStatus) SetTo(v CreatableVersionRequestedStatus)
SetTo sets value to v.
func (*OptNilCreatableVersionRequestedStatus) SetToNull ¶
func (o *OptNilCreatableVersionRequestedStatus) SetToNull()
SetToNull sets value to null.
func (*OptNilCreatableVersionRequestedStatus) UnmarshalJSON ¶
func (s *OptNilCreatableVersionRequestedStatus) UnmarshalJSON(data []byte) error
UnmarshalJSON implements stdjson.Unmarshaler.
type OptNilEditableProjectRequestedStatus ¶
type OptNilEditableProjectRequestedStatus struct {
Value EditableProjectRequestedStatus
Set bool
Null bool
}
OptNilEditableProjectRequestedStatus is optional nullable EditableProjectRequestedStatus.
func NewOptNilEditableProjectRequestedStatus ¶
func NewOptNilEditableProjectRequestedStatus(v EditableProjectRequestedStatus) OptNilEditableProjectRequestedStatus
NewOptNilEditableProjectRequestedStatus returns new OptNilEditableProjectRequestedStatus with value set to v.
func (*OptNilEditableProjectRequestedStatus) Decode ¶
func (o *OptNilEditableProjectRequestedStatus) Decode(d *jx.Decoder) error
Decode decodes EditableProjectRequestedStatus from json.
func (OptNilEditableProjectRequestedStatus) Encode ¶
func (o OptNilEditableProjectRequestedStatus) Encode(e *jx.Encoder)
Encode encodes EditableProjectRequestedStatus as json.
func (OptNilEditableProjectRequestedStatus) Get ¶
func (o OptNilEditableProjectRequestedStatus) Get() (v EditableProjectRequestedStatus, ok bool)
Get returns value and boolean that denotes whether value was set.
func (OptNilEditableProjectRequestedStatus) IsNull ¶
func (o OptNilEditableProjectRequestedStatus) IsNull() bool
IsNull returns true if value is Null.
func (OptNilEditableProjectRequestedStatus) IsSet ¶
func (o OptNilEditableProjectRequestedStatus) IsSet() bool
IsSet returns true if OptNilEditableProjectRequestedStatus was set.
func (OptNilEditableProjectRequestedStatus) MarshalJSON ¶
func (s OptNilEditableProjectRequestedStatus) MarshalJSON() ([]byte, error)
MarshalJSON implements stdjson.Marshaler.
func (OptNilEditableProjectRequestedStatus) Or ¶
func (o OptNilEditableProjectRequestedStatus) Or(d EditableProjectRequestedStatus) EditableProjectRequestedStatus
Or returns value if set, or given parameter if does not.
func (*OptNilEditableProjectRequestedStatus) Reset ¶
func (o *OptNilEditableProjectRequestedStatus) Reset()
Reset unsets value.
func (*OptNilEditableProjectRequestedStatus) SetTo ¶
func (o *OptNilEditableProjectRequestedStatus) SetTo(v EditableProjectRequestedStatus)
SetTo sets value to v.
func (*OptNilEditableProjectRequestedStatus) SetToNull ¶
func (o *OptNilEditableProjectRequestedStatus) SetToNull()
SetToNull sets value to null.
func (*OptNilEditableProjectRequestedStatus) UnmarshalJSON ¶
func (s *OptNilEditableProjectRequestedStatus) UnmarshalJSON(data []byte) error
UnmarshalJSON implements stdjson.Unmarshaler.
type OptNilEditableVersionRequestedStatus ¶
type OptNilEditableVersionRequestedStatus struct {
Value EditableVersionRequestedStatus
Set bool
Null bool
}
OptNilEditableVersionRequestedStatus is optional nullable EditableVersionRequestedStatus.
func NewOptNilEditableVersionRequestedStatus ¶
func NewOptNilEditableVersionRequestedStatus(v EditableVersionRequestedStatus) OptNilEditableVersionRequestedStatus
NewOptNilEditableVersionRequestedStatus returns new OptNilEditableVersionRequestedStatus with value set to v.
func (*OptNilEditableVersionRequestedStatus) Decode ¶
func (o *OptNilEditableVersionRequestedStatus) Decode(d *jx.Decoder) error
Decode decodes EditableVersionRequestedStatus from json.
func (OptNilEditableVersionRequestedStatus) Encode ¶
func (o OptNilEditableVersionRequestedStatus) Encode(e *jx.Encoder)
Encode encodes EditableVersionRequestedStatus as json.
func (OptNilEditableVersionRequestedStatus) Get ¶
func (o OptNilEditableVersionRequestedStatus) Get() (v EditableVersionRequestedStatus, ok bool)
Get returns value and boolean that denotes whether value was set.
func (OptNilEditableVersionRequestedStatus) IsNull ¶
func (o OptNilEditableVersionRequestedStatus) IsNull() bool
IsNull returns true if value is Null.
func (OptNilEditableVersionRequestedStatus) IsSet ¶
func (o OptNilEditableVersionRequestedStatus) IsSet() bool
IsSet returns true if OptNilEditableVersionRequestedStatus was set.
func (OptNilEditableVersionRequestedStatus) MarshalJSON ¶
func (s OptNilEditableVersionRequestedStatus) MarshalJSON() ([]byte, error)
MarshalJSON implements stdjson.Marshaler.
func (OptNilEditableVersionRequestedStatus) Or ¶
func (o OptNilEditableVersionRequestedStatus) Or(d EditableVersionRequestedStatus) EditableVersionRequestedStatus
Or returns value if set, or given parameter if does not.
func (*OptNilEditableVersionRequestedStatus) Reset ¶
func (o *OptNilEditableVersionRequestedStatus) Reset()
Reset unsets value.
func (*OptNilEditableVersionRequestedStatus) SetTo ¶
func (o *OptNilEditableVersionRequestedStatus) SetTo(v EditableVersionRequestedStatus)
SetTo sets value to v.
func (*OptNilEditableVersionRequestedStatus) SetToNull ¶
func (o *OptNilEditableVersionRequestedStatus) SetToNull()
SetToNull sets value to null.
func (*OptNilEditableVersionRequestedStatus) UnmarshalJSON ¶
func (s *OptNilEditableVersionRequestedStatus) UnmarshalJSON(data []byte) error
UnmarshalJSON implements stdjson.Unmarshaler.
type OptNilInt ¶
OptNilInt is optional nullable int.
func NewOptNilInt ¶
NewOptNilInt returns new OptNilInt with value set to v.
func (OptNilInt) MarshalJSON ¶
MarshalJSON implements stdjson.Marshaler.
func (*OptNilInt) UnmarshalJSON ¶
UnmarshalJSON implements stdjson.Unmarshaler.
type OptNilModeratorMessage ¶
type OptNilModeratorMessage struct {
Value ModeratorMessage
Set bool
Null bool
}
OptNilModeratorMessage is optional nullable ModeratorMessage.
func NewOptNilModeratorMessage ¶
func NewOptNilModeratorMessage(v ModeratorMessage) OptNilModeratorMessage
NewOptNilModeratorMessage returns new OptNilModeratorMessage with value set to v.
func (*OptNilModeratorMessage) Decode ¶
func (o *OptNilModeratorMessage) Decode(d *jx.Decoder) error
Decode decodes ModeratorMessage from json.
func (OptNilModeratorMessage) Encode ¶
func (o OptNilModeratorMessage) Encode(e *jx.Encoder)
Encode encodes ModeratorMessage as json.
func (OptNilModeratorMessage) Get ¶
func (o OptNilModeratorMessage) Get() (v ModeratorMessage, ok bool)
Get returns value and boolean that denotes whether value was set.
func (OptNilModeratorMessage) IsNull ¶
func (o OptNilModeratorMessage) IsNull() bool
IsNull returns true if value is Null.
func (OptNilModeratorMessage) IsSet ¶
func (o OptNilModeratorMessage) IsSet() bool
IsSet returns true if OptNilModeratorMessage was set.
func (OptNilModeratorMessage) MarshalJSON ¶
func (s OptNilModeratorMessage) MarshalJSON() ([]byte, error)
MarshalJSON implements stdjson.Marshaler.
func (OptNilModeratorMessage) Or ¶
func (o OptNilModeratorMessage) Or(d ModeratorMessage) ModeratorMessage
Or returns value if set, or given parameter if does not.
func (*OptNilModeratorMessage) SetTo ¶
func (o *OptNilModeratorMessage) SetTo(v ModeratorMessage)
SetTo sets value to v.
func (*OptNilModeratorMessage) SetToNull ¶
func (o *OptNilModeratorMessage) SetToNull()
SetToNull sets value to null.
func (*OptNilModeratorMessage) UnmarshalJSON ¶
func (s *OptNilModeratorMessage) UnmarshalJSON(data []byte) error
UnmarshalJSON implements stdjson.Unmarshaler.
type OptNilNotificationType ¶
type OptNilNotificationType struct {
Value NotificationType
Set bool
Null bool
}
OptNilNotificationType is optional nullable NotificationType.
func NewOptNilNotificationType ¶
func NewOptNilNotificationType(v NotificationType) OptNilNotificationType
NewOptNilNotificationType returns new OptNilNotificationType with value set to v.
func (*OptNilNotificationType) Decode ¶
func (o *OptNilNotificationType) Decode(d *jx.Decoder) error
Decode decodes NotificationType from json.
func (OptNilNotificationType) Encode ¶
func (o OptNilNotificationType) Encode(e *jx.Encoder)
Encode encodes NotificationType as json.
func (OptNilNotificationType) Get ¶
func (o OptNilNotificationType) Get() (v NotificationType, ok bool)
Get returns value and boolean that denotes whether value was set.
func (OptNilNotificationType) IsNull ¶
func (o OptNilNotificationType) IsNull() bool
IsNull returns true if value is Null.
func (OptNilNotificationType) IsSet ¶
func (o OptNilNotificationType) IsSet() bool
IsSet returns true if OptNilNotificationType was set.
func (OptNilNotificationType) MarshalJSON ¶
func (s OptNilNotificationType) MarshalJSON() ([]byte, error)
MarshalJSON implements stdjson.Marshaler.
func (OptNilNotificationType) Or ¶
func (o OptNilNotificationType) Or(d NotificationType) NotificationType
Or returns value if set, or given parameter if does not.
func (*OptNilNotificationType) SetTo ¶
func (o *OptNilNotificationType) SetTo(v NotificationType)
SetTo sets value to v.
func (*OptNilNotificationType) SetToNull ¶
func (o *OptNilNotificationType) SetToNull()
SetToNull sets value to null.
func (*OptNilNotificationType) UnmarshalJSON ¶
func (s *OptNilNotificationType) UnmarshalJSON(data []byte) error
UnmarshalJSON implements stdjson.Unmarshaler.
type OptNilProjectRequestedStatus ¶
type OptNilProjectRequestedStatus struct {
Value ProjectRequestedStatus
Set bool
Null bool
}
OptNilProjectRequestedStatus is optional nullable ProjectRequestedStatus.
func NewOptNilProjectRequestedStatus ¶
func NewOptNilProjectRequestedStatus(v ProjectRequestedStatus) OptNilProjectRequestedStatus
NewOptNilProjectRequestedStatus returns new OptNilProjectRequestedStatus with value set to v.
func (*OptNilProjectRequestedStatus) Decode ¶
func (o *OptNilProjectRequestedStatus) Decode(d *jx.Decoder) error
Decode decodes ProjectRequestedStatus from json.
func (OptNilProjectRequestedStatus) Encode ¶
func (o OptNilProjectRequestedStatus) Encode(e *jx.Encoder)
Encode encodes ProjectRequestedStatus as json.
func (OptNilProjectRequestedStatus) Get ¶
func (o OptNilProjectRequestedStatus) Get() (v ProjectRequestedStatus, ok bool)
Get returns value and boolean that denotes whether value was set.
func (OptNilProjectRequestedStatus) IsNull ¶
func (o OptNilProjectRequestedStatus) IsNull() bool
IsNull returns true if value is Null.
func (OptNilProjectRequestedStatus) IsSet ¶
func (o OptNilProjectRequestedStatus) IsSet() bool
IsSet returns true if OptNilProjectRequestedStatus was set.
func (OptNilProjectRequestedStatus) MarshalJSON ¶
func (s OptNilProjectRequestedStatus) MarshalJSON() ([]byte, error)
MarshalJSON implements stdjson.Marshaler.
func (*OptNilProjectRequestedStatus) Reset ¶
func (o *OptNilProjectRequestedStatus) Reset()
Reset unsets value.
func (*OptNilProjectRequestedStatus) SetTo ¶
func (o *OptNilProjectRequestedStatus) SetTo(v ProjectRequestedStatus)
SetTo sets value to v.
func (*OptNilProjectRequestedStatus) SetToNull ¶
func (o *OptNilProjectRequestedStatus) SetToNull()
SetToNull sets value to null.
func (*OptNilProjectRequestedStatus) UnmarshalJSON ¶
func (s *OptNilProjectRequestedStatus) UnmarshalJSON(data []byte) error
UnmarshalJSON implements stdjson.Unmarshaler.
type OptNilString ¶
OptNilString is optional nullable string.
func NewOptNilString ¶
func NewOptNilString(v string) OptNilString
NewOptNilString returns new OptNilString with value set to v.
func (*OptNilString) Decode ¶
func (o *OptNilString) Decode(d *jx.Decoder) error
Decode decodes string from json.
func (OptNilString) Encode ¶
func (o OptNilString) Encode(e *jx.Encoder)
Encode encodes string as json.
func (OptNilString) Get ¶
func (o OptNilString) Get() (v string, ok bool)
Get returns value and boolean that denotes whether value was set.
func (OptNilString) IsNull ¶
func (o OptNilString) IsNull() bool
IsNull returns true if value is Null.
func (OptNilString) IsSet ¶
func (o OptNilString) IsSet() bool
IsSet returns true if OptNilString was set.
func (OptNilString) MarshalJSON ¶
func (s OptNilString) MarshalJSON() ([]byte, error)
MarshalJSON implements stdjson.Marshaler.
func (OptNilString) Or ¶
func (o OptNilString) Or(d string) string
Or returns value if set, or given parameter if does not.
func (*OptNilString) UnmarshalJSON ¶
func (s *OptNilString) UnmarshalJSON(data []byte) error
UnmarshalJSON implements stdjson.Unmarshaler.
type OptNilStringArray ¶
OptNilStringArray is optional nullable []string.
func NewOptNilStringArray ¶
func NewOptNilStringArray(v []string) OptNilStringArray
NewOptNilStringArray returns new OptNilStringArray with value set to v.
func (*OptNilStringArray) Decode ¶
func (o *OptNilStringArray) Decode(d *jx.Decoder) error
Decode decodes []string from json.
func (OptNilStringArray) Encode ¶
func (o OptNilStringArray) Encode(e *jx.Encoder)
Encode encodes []string as json.
func (OptNilStringArray) Get ¶
func (o OptNilStringArray) Get() (v []string, ok bool)
Get returns value and boolean that denotes whether value was set.
func (OptNilStringArray) IsNull ¶
func (o OptNilStringArray) IsNull() bool
IsNull returns true if value is Null.
func (OptNilStringArray) IsSet ¶
func (o OptNilStringArray) IsSet() bool
IsSet returns true if OptNilStringArray was set.
func (OptNilStringArray) MarshalJSON ¶
func (s OptNilStringArray) MarshalJSON() ([]byte, error)
MarshalJSON implements stdjson.Marshaler.
func (OptNilStringArray) Or ¶
func (o OptNilStringArray) Or(d []string) []string
Or returns value if set, or given parameter if does not.
func (*OptNilStringArray) SetTo ¶
func (o *OptNilStringArray) SetTo(v []string)
SetTo sets value to v.
func (*OptNilStringArray) SetToNull ¶
func (o *OptNilStringArray) SetToNull()
SetToNull sets value to null.
func (*OptNilStringArray) UnmarshalJSON ¶
func (s *OptNilStringArray) UnmarshalJSON(data []byte) error
UnmarshalJSON implements stdjson.Unmarshaler.
type OptNilUserPayoutData ¶
type OptNilUserPayoutData struct {
Value UserPayoutData
Set bool
Null bool
}
OptNilUserPayoutData is optional nullable UserPayoutData.
func NewOptNilUserPayoutData ¶
func NewOptNilUserPayoutData(v UserPayoutData) OptNilUserPayoutData
NewOptNilUserPayoutData returns new OptNilUserPayoutData with value set to v.
func (*OptNilUserPayoutData) Decode ¶
func (o *OptNilUserPayoutData) Decode(d *jx.Decoder) error
Decode decodes UserPayoutData from json.
func (OptNilUserPayoutData) Encode ¶
func (o OptNilUserPayoutData) Encode(e *jx.Encoder)
Encode encodes UserPayoutData as json.
func (OptNilUserPayoutData) Get ¶
func (o OptNilUserPayoutData) Get() (v UserPayoutData, ok bool)
Get returns value and boolean that denotes whether value was set.
func (OptNilUserPayoutData) IsNull ¶
func (o OptNilUserPayoutData) IsNull() bool
IsNull returns true if value is Null.
func (OptNilUserPayoutData) IsSet ¶
func (o OptNilUserPayoutData) IsSet() bool
IsSet returns true if OptNilUserPayoutData was set.
func (OptNilUserPayoutData) MarshalJSON ¶
func (s OptNilUserPayoutData) MarshalJSON() ([]byte, error)
MarshalJSON implements stdjson.Marshaler.
func (OptNilUserPayoutData) Or ¶
func (o OptNilUserPayoutData) Or(d UserPayoutData) UserPayoutData
Or returns value if set, or given parameter if does not.
func (*OptNilUserPayoutData) SetTo ¶
func (o *OptNilUserPayoutData) SetTo(v UserPayoutData)
SetTo sets value to v.
func (*OptNilUserPayoutData) SetToNull ¶
func (o *OptNilUserPayoutData) SetToNull()
SetToNull sets value to null.
func (*OptNilUserPayoutData) UnmarshalJSON ¶
func (s *OptNilUserPayoutData) UnmarshalJSON(data []byte) error
UnmarshalJSON implements stdjson.Unmarshaler.
type OptNilVersionFileFileType ¶
type OptNilVersionFileFileType struct {
Value VersionFileFileType
Set bool
Null bool
}
OptNilVersionFileFileType is optional nullable VersionFileFileType.
func NewOptNilVersionFileFileType ¶
func NewOptNilVersionFileFileType(v VersionFileFileType) OptNilVersionFileFileType
NewOptNilVersionFileFileType returns new OptNilVersionFileFileType with value set to v.
func (*OptNilVersionFileFileType) Decode ¶
func (o *OptNilVersionFileFileType) Decode(d *jx.Decoder) error
Decode decodes VersionFileFileType from json.
func (OptNilVersionFileFileType) Encode ¶
func (o OptNilVersionFileFileType) Encode(e *jx.Encoder)
Encode encodes VersionFileFileType as json.
func (OptNilVersionFileFileType) Get ¶
func (o OptNilVersionFileFileType) Get() (v VersionFileFileType, ok bool)
Get returns value and boolean that denotes whether value was set.
func (OptNilVersionFileFileType) IsNull ¶
func (o OptNilVersionFileFileType) IsNull() bool
IsNull returns true if value is Null.
func (OptNilVersionFileFileType) IsSet ¶
func (o OptNilVersionFileFileType) IsSet() bool
IsSet returns true if OptNilVersionFileFileType was set.
func (OptNilVersionFileFileType) MarshalJSON ¶
func (s OptNilVersionFileFileType) MarshalJSON() ([]byte, error)
MarshalJSON implements stdjson.Marshaler.
func (OptNilVersionFileFileType) Or ¶
func (o OptNilVersionFileFileType) Or(d VersionFileFileType) VersionFileFileType
Or returns value if set, or given parameter if does not.
func (*OptNilVersionFileFileType) Reset ¶
func (o *OptNilVersionFileFileType) Reset()
Reset unsets value.
func (*OptNilVersionFileFileType) SetTo ¶
func (o *OptNilVersionFileFileType) SetTo(v VersionFileFileType)
SetTo sets value to v.
func (*OptNilVersionFileFileType) SetToNull ¶
func (o *OptNilVersionFileFileType) SetToNull()
SetToNull sets value to null.
func (*OptNilVersionFileFileType) UnmarshalJSON ¶
func (s *OptNilVersionFileFileType) UnmarshalJSON(data []byte) error
UnmarshalJSON implements stdjson.Unmarshaler.
type OptNilVersionRequestedStatus ¶
type OptNilVersionRequestedStatus struct {
Value VersionRequestedStatus
Set bool
Null bool
}
OptNilVersionRequestedStatus is optional nullable VersionRequestedStatus.
func NewOptNilVersionRequestedStatus ¶
func NewOptNilVersionRequestedStatus(v VersionRequestedStatus) OptNilVersionRequestedStatus
NewOptNilVersionRequestedStatus returns new OptNilVersionRequestedStatus with value set to v.
func (*OptNilVersionRequestedStatus) Decode ¶
func (o *OptNilVersionRequestedStatus) Decode(d *jx.Decoder) error
Decode decodes VersionRequestedStatus from json.
func (OptNilVersionRequestedStatus) Encode ¶
func (o OptNilVersionRequestedStatus) Encode(e *jx.Encoder)
Encode encodes VersionRequestedStatus as json.
func (OptNilVersionRequestedStatus) Get ¶
func (o OptNilVersionRequestedStatus) Get() (v VersionRequestedStatus, ok bool)
Get returns value and boolean that denotes whether value was set.
func (OptNilVersionRequestedStatus) IsNull ¶
func (o OptNilVersionRequestedStatus) IsNull() bool
IsNull returns true if value is Null.
func (OptNilVersionRequestedStatus) IsSet ¶
func (o OptNilVersionRequestedStatus) IsSet() bool
IsSet returns true if OptNilVersionRequestedStatus was set.
func (OptNilVersionRequestedStatus) MarshalJSON ¶
func (s OptNilVersionRequestedStatus) MarshalJSON() ([]byte, error)
MarshalJSON implements stdjson.Marshaler.
func (*OptNilVersionRequestedStatus) Reset ¶
func (o *OptNilVersionRequestedStatus) Reset()
Reset unsets value.
func (*OptNilVersionRequestedStatus) SetTo ¶
func (o *OptNilVersionRequestedStatus) SetTo(v VersionRequestedStatus)
SetTo sets value to v.
func (*OptNilVersionRequestedStatus) SetToNull ¶
func (o *OptNilVersionRequestedStatus) SetToNull()
SetToNull sets value to null.
func (*OptNilVersionRequestedStatus) UnmarshalJSON ¶
func (s *OptNilVersionRequestedStatus) UnmarshalJSON(data []byte) error
UnmarshalJSON implements stdjson.Unmarshaler.
type OptPatchProjectsBody ¶
type OptPatchProjectsBody struct {
Value PatchProjectsBody
Set bool
}
OptPatchProjectsBody is optional PatchProjectsBody.
func NewOptPatchProjectsBody ¶
func NewOptPatchProjectsBody(v PatchProjectsBody) OptPatchProjectsBody
NewOptPatchProjectsBody returns new OptPatchProjectsBody with value set to v.
func (*OptPatchProjectsBody) Decode ¶
func (o *OptPatchProjectsBody) Decode(d *jx.Decoder) error
Decode decodes PatchProjectsBody from json.
func (OptPatchProjectsBody) Encode ¶
func (o OptPatchProjectsBody) Encode(e *jx.Encoder)
Encode encodes PatchProjectsBody as json.
func (OptPatchProjectsBody) Get ¶
func (o OptPatchProjectsBody) Get() (v PatchProjectsBody, ok bool)
Get returns value and boolean that denotes whether value was set.
func (OptPatchProjectsBody) IsSet ¶
func (o OptPatchProjectsBody) IsSet() bool
IsSet returns true if OptPatchProjectsBody was set.
func (OptPatchProjectsBody) MarshalJSON ¶
func (s OptPatchProjectsBody) MarshalJSON() ([]byte, error)
MarshalJSON implements stdjson.Marshaler.
func (OptPatchProjectsBody) Or ¶
func (o OptPatchProjectsBody) Or(d PatchProjectsBody) PatchProjectsBody
Or returns value if set, or given parameter if does not.
func (*OptPatchProjectsBody) SetTo ¶
func (o *OptPatchProjectsBody) SetTo(v PatchProjectsBody)
SetTo sets value to v.
func (*OptPatchProjectsBody) UnmarshalJSON ¶
func (s *OptPatchProjectsBody) UnmarshalJSON(data []byte) error
UnmarshalJSON implements stdjson.Unmarshaler.
type OptProjectLicense ¶
type OptProjectLicense struct {
Value ProjectLicense
Set bool
}
OptProjectLicense is optional ProjectLicense.
func NewOptProjectLicense ¶
func NewOptProjectLicense(v ProjectLicense) OptProjectLicense
NewOptProjectLicense returns new OptProjectLicense with value set to v.
func (*OptProjectLicense) Decode ¶
func (o *OptProjectLicense) Decode(d *jx.Decoder) error
Decode decodes ProjectLicense from json.
func (OptProjectLicense) Encode ¶
func (o OptProjectLicense) Encode(e *jx.Encoder)
Encode encodes ProjectLicense as json.
func (OptProjectLicense) Get ¶
func (o OptProjectLicense) Get() (v ProjectLicense, ok bool)
Get returns value and boolean that denotes whether value was set.
func (OptProjectLicense) IsSet ¶
func (o OptProjectLicense) IsSet() bool
IsSet returns true if OptProjectLicense was set.
func (OptProjectLicense) MarshalJSON ¶
func (s OptProjectLicense) MarshalJSON() ([]byte, error)
MarshalJSON implements stdjson.Marshaler.
func (OptProjectLicense) Or ¶
func (o OptProjectLicense) Or(d ProjectLicense) ProjectLicense
Or returns value if set, or given parameter if does not.
func (*OptProjectLicense) SetTo ¶
func (o *OptProjectLicense) SetTo(v ProjectLicense)
SetTo sets value to v.
func (*OptProjectLicense) UnmarshalJSON ¶
func (s *OptProjectLicense) UnmarshalJSON(data []byte) error
UnmarshalJSON implements stdjson.Unmarshaler.
type OptProjectMonetizationStatus ¶
type OptProjectMonetizationStatus struct {
Value ProjectMonetizationStatus
Set bool
}
OptProjectMonetizationStatus is optional ProjectMonetizationStatus.
func NewOptProjectMonetizationStatus ¶
func NewOptProjectMonetizationStatus(v ProjectMonetizationStatus) OptProjectMonetizationStatus
NewOptProjectMonetizationStatus returns new OptProjectMonetizationStatus with value set to v.
func (*OptProjectMonetizationStatus) Decode ¶
func (o *OptProjectMonetizationStatus) Decode(d *jx.Decoder) error
Decode decodes ProjectMonetizationStatus from json.
func (OptProjectMonetizationStatus) Encode ¶
func (o OptProjectMonetizationStatus) Encode(e *jx.Encoder)
Encode encodes ProjectMonetizationStatus as json.
func (OptProjectMonetizationStatus) Get ¶
func (o OptProjectMonetizationStatus) Get() (v ProjectMonetizationStatus, ok bool)
Get returns value and boolean that denotes whether value was set.
func (OptProjectMonetizationStatus) IsSet ¶
func (o OptProjectMonetizationStatus) IsSet() bool
IsSet returns true if OptProjectMonetizationStatus was set.
func (OptProjectMonetizationStatus) MarshalJSON ¶
func (s OptProjectMonetizationStatus) MarshalJSON() ([]byte, error)
MarshalJSON implements stdjson.Marshaler.
func (*OptProjectMonetizationStatus) Reset ¶
func (o *OptProjectMonetizationStatus) Reset()
Reset unsets value.
func (*OptProjectMonetizationStatus) SetTo ¶
func (o *OptProjectMonetizationStatus) SetTo(v ProjectMonetizationStatus)
SetTo sets value to v.
func (*OptProjectMonetizationStatus) UnmarshalJSON ¶
func (s *OptProjectMonetizationStatus) UnmarshalJSON(data []byte) error
UnmarshalJSON implements stdjson.Unmarshaler.
type OptProjectResultMonetizationStatus ¶
type OptProjectResultMonetizationStatus struct {
Value ProjectResultMonetizationStatus
Set bool
}
OptProjectResultMonetizationStatus is optional ProjectResultMonetizationStatus.
func NewOptProjectResultMonetizationStatus ¶
func NewOptProjectResultMonetizationStatus(v ProjectResultMonetizationStatus) OptProjectResultMonetizationStatus
NewOptProjectResultMonetizationStatus returns new OptProjectResultMonetizationStatus with value set to v.
func (*OptProjectResultMonetizationStatus) Decode ¶
func (o *OptProjectResultMonetizationStatus) Decode(d *jx.Decoder) error
Decode decodes ProjectResultMonetizationStatus from json.
func (OptProjectResultMonetizationStatus) Encode ¶
func (o OptProjectResultMonetizationStatus) Encode(e *jx.Encoder)
Encode encodes ProjectResultMonetizationStatus as json.
func (OptProjectResultMonetizationStatus) Get ¶
func (o OptProjectResultMonetizationStatus) Get() (v ProjectResultMonetizationStatus, ok bool)
Get returns value and boolean that denotes whether value was set.
func (OptProjectResultMonetizationStatus) IsSet ¶
func (o OptProjectResultMonetizationStatus) IsSet() bool
IsSet returns true if OptProjectResultMonetizationStatus was set.
func (OptProjectResultMonetizationStatus) MarshalJSON ¶
func (s OptProjectResultMonetizationStatus) MarshalJSON() ([]byte, error)
MarshalJSON implements stdjson.Marshaler.
func (OptProjectResultMonetizationStatus) Or ¶
func (o OptProjectResultMonetizationStatus) Or(d ProjectResultMonetizationStatus) ProjectResultMonetizationStatus
Or returns value if set, or given parameter if does not.
func (*OptProjectResultMonetizationStatus) Reset ¶
func (o *OptProjectResultMonetizationStatus) Reset()
Reset unsets value.
func (*OptProjectResultMonetizationStatus) SetTo ¶
func (o *OptProjectResultMonetizationStatus) SetTo(v ProjectResultMonetizationStatus)
SetTo sets value to v.
func (*OptProjectResultMonetizationStatus) UnmarshalJSON ¶
func (s *OptProjectResultMonetizationStatus) UnmarshalJSON(data []byte) error
UnmarshalJSON implements stdjson.Unmarshaler.
type OptSchedule ¶
OptSchedule is optional Schedule.
func NewOptSchedule ¶
func NewOptSchedule(v Schedule) OptSchedule
NewOptSchedule returns new OptSchedule with value set to v.
func (*OptSchedule) Decode ¶
func (o *OptSchedule) Decode(d *jx.Decoder) error
Decode decodes Schedule from json.
func (OptSchedule) Encode ¶
func (o OptSchedule) Encode(e *jx.Encoder)
Encode encodes Schedule as json.
func (OptSchedule) Get ¶
func (o OptSchedule) Get() (v Schedule, ok bool)
Get returns value and boolean that denotes whether value was set.
func (OptSchedule) IsSet ¶
func (o OptSchedule) IsSet() bool
IsSet returns true if OptSchedule was set.
func (OptSchedule) MarshalJSON ¶
func (s OptSchedule) MarshalJSON() ([]byte, error)
MarshalJSON implements stdjson.Marshaler.
func (OptSchedule) Or ¶
func (o OptSchedule) Or(d Schedule) Schedule
Or returns value if set, or given parameter if does not.
func (*OptSchedule) UnmarshalJSON ¶
func (s *OptSchedule) UnmarshalJSON(data []byte) error
UnmarshalJSON implements stdjson.Unmarshaler.
type OptSearchProjectsIndex ¶
type OptSearchProjectsIndex struct {
Value SearchProjectsIndex
Set bool
}
OptSearchProjectsIndex is optional SearchProjectsIndex.
func NewOptSearchProjectsIndex ¶
func NewOptSearchProjectsIndex(v SearchProjectsIndex) OptSearchProjectsIndex
NewOptSearchProjectsIndex returns new OptSearchProjectsIndex with value set to v.
func (OptSearchProjectsIndex) Get ¶
func (o OptSearchProjectsIndex) Get() (v SearchProjectsIndex, ok bool)
Get returns value and boolean that denotes whether value was set.
func (OptSearchProjectsIndex) IsSet ¶
func (o OptSearchProjectsIndex) IsSet() bool
IsSet returns true if OptSearchProjectsIndex was set.
func (OptSearchProjectsIndex) Or ¶
func (o OptSearchProjectsIndex) Or(d SearchProjectsIndex) SearchProjectsIndex
Or returns value if set, or given parameter if does not.
func (*OptSearchProjectsIndex) SetTo ¶
func (o *OptSearchProjectsIndex) SetTo(v SearchProjectsIndex)
SetTo sets value to v.
type OptString ¶
OptString is optional string.
func NewOptString ¶
NewOptString returns new OptString with value set to v.
func (OptString) MarshalJSON ¶
MarshalJSON implements stdjson.Marshaler.
func (*OptString) UnmarshalJSON ¶
UnmarshalJSON implements stdjson.Unmarshaler.
type OptThreadMessageBody ¶
type OptThreadMessageBody struct {
Value ThreadMessageBody
Set bool
}
OptThreadMessageBody is optional ThreadMessageBody.
func NewOptThreadMessageBody ¶
func NewOptThreadMessageBody(v ThreadMessageBody) OptThreadMessageBody
NewOptThreadMessageBody returns new OptThreadMessageBody with value set to v.
func (*OptThreadMessageBody) Decode ¶
func (o *OptThreadMessageBody) Decode(d *jx.Decoder) error
Decode decodes ThreadMessageBody from json.
func (OptThreadMessageBody) Encode ¶
func (o OptThreadMessageBody) Encode(e *jx.Encoder)
Encode encodes ThreadMessageBody as json.
func (OptThreadMessageBody) Get ¶
func (o OptThreadMessageBody) Get() (v ThreadMessageBody, ok bool)
Get returns value and boolean that denotes whether value was set.
func (OptThreadMessageBody) IsSet ¶
func (o OptThreadMessageBody) IsSet() bool
IsSet returns true if OptThreadMessageBody was set.
func (OptThreadMessageBody) MarshalJSON ¶
func (s OptThreadMessageBody) MarshalJSON() ([]byte, error)
MarshalJSON implements stdjson.Marshaler.
func (OptThreadMessageBody) Or ¶
func (o OptThreadMessageBody) Or(d ThreadMessageBody) ThreadMessageBody
Or returns value if set, or given parameter if does not.
func (*OptThreadMessageBody) SetTo ¶
func (o *OptThreadMessageBody) SetTo(v ThreadMessageBody)
SetTo sets value to v.
func (*OptThreadMessageBody) UnmarshalJSON ¶
func (s *OptThreadMessageBody) UnmarshalJSON(data []byte) error
UnmarshalJSON implements stdjson.Unmarshaler.
type OptThreadMessageBodyNewStatus ¶
type OptThreadMessageBodyNewStatus struct {
Value ThreadMessageBodyNewStatus
Set bool
}
OptThreadMessageBodyNewStatus is optional ThreadMessageBodyNewStatus.
func NewOptThreadMessageBodyNewStatus ¶
func NewOptThreadMessageBodyNewStatus(v ThreadMessageBodyNewStatus) OptThreadMessageBodyNewStatus
NewOptThreadMessageBodyNewStatus returns new OptThreadMessageBodyNewStatus with value set to v.
func (*OptThreadMessageBodyNewStatus) Decode ¶
func (o *OptThreadMessageBodyNewStatus) Decode(d *jx.Decoder) error
Decode decodes ThreadMessageBodyNewStatus from json.
func (OptThreadMessageBodyNewStatus) Encode ¶
func (o OptThreadMessageBodyNewStatus) Encode(e *jx.Encoder)
Encode encodes ThreadMessageBodyNewStatus as json.
func (OptThreadMessageBodyNewStatus) Get ¶
func (o OptThreadMessageBodyNewStatus) Get() (v ThreadMessageBodyNewStatus, ok bool)
Get returns value and boolean that denotes whether value was set.
func (OptThreadMessageBodyNewStatus) IsSet ¶
func (o OptThreadMessageBodyNewStatus) IsSet() bool
IsSet returns true if OptThreadMessageBodyNewStatus was set.
func (OptThreadMessageBodyNewStatus) MarshalJSON ¶
func (s OptThreadMessageBodyNewStatus) MarshalJSON() ([]byte, error)
MarshalJSON implements stdjson.Marshaler.
func (*OptThreadMessageBodyNewStatus) Reset ¶
func (o *OptThreadMessageBodyNewStatus) Reset()
Reset unsets value.
func (*OptThreadMessageBodyNewStatus) SetTo ¶
func (o *OptThreadMessageBodyNewStatus) SetTo(v ThreadMessageBodyNewStatus)
SetTo sets value to v.
func (*OptThreadMessageBodyNewStatus) UnmarshalJSON ¶
func (s *OptThreadMessageBodyNewStatus) UnmarshalJSON(data []byte) error
UnmarshalJSON implements stdjson.Unmarshaler.
type OptThreadMessageBodyOldStatus ¶
type OptThreadMessageBodyOldStatus struct {
Value ThreadMessageBodyOldStatus
Set bool
}
OptThreadMessageBodyOldStatus is optional ThreadMessageBodyOldStatus.
func NewOptThreadMessageBodyOldStatus ¶
func NewOptThreadMessageBodyOldStatus(v ThreadMessageBodyOldStatus) OptThreadMessageBodyOldStatus
NewOptThreadMessageBodyOldStatus returns new OptThreadMessageBodyOldStatus with value set to v.
func (*OptThreadMessageBodyOldStatus) Decode ¶
func (o *OptThreadMessageBodyOldStatus) Decode(d *jx.Decoder) error
Decode decodes ThreadMessageBodyOldStatus from json.
func (OptThreadMessageBodyOldStatus) Encode ¶
func (o OptThreadMessageBodyOldStatus) Encode(e *jx.Encoder)
Encode encodes ThreadMessageBodyOldStatus as json.
func (OptThreadMessageBodyOldStatus) Get ¶
func (o OptThreadMessageBodyOldStatus) Get() (v ThreadMessageBodyOldStatus, ok bool)
Get returns value and boolean that denotes whether value was set.
func (OptThreadMessageBodyOldStatus) IsSet ¶
func (o OptThreadMessageBodyOldStatus) IsSet() bool
IsSet returns true if OptThreadMessageBodyOldStatus was set.
func (OptThreadMessageBodyOldStatus) MarshalJSON ¶
func (s OptThreadMessageBodyOldStatus) MarshalJSON() ([]byte, error)
MarshalJSON implements stdjson.Marshaler.
func (*OptThreadMessageBodyOldStatus) Reset ¶
func (o *OptThreadMessageBodyOldStatus) Reset()
Reset unsets value.
func (*OptThreadMessageBodyOldStatus) SetTo ¶
func (o *OptThreadMessageBodyOldStatus) SetTo(v ThreadMessageBodyOldStatus)
SetTo sets value to v.
func (*OptThreadMessageBodyOldStatus) UnmarshalJSON ¶
func (s *OptThreadMessageBodyOldStatus) UnmarshalJSON(data []byte) error
UnmarshalJSON implements stdjson.Unmarshaler.
type OptUserPayoutDataPayoutWallet ¶
type OptUserPayoutDataPayoutWallet struct {
Value UserPayoutDataPayoutWallet
Set bool
}
OptUserPayoutDataPayoutWallet is optional UserPayoutDataPayoutWallet.
func NewOptUserPayoutDataPayoutWallet ¶
func NewOptUserPayoutDataPayoutWallet(v UserPayoutDataPayoutWallet) OptUserPayoutDataPayoutWallet
NewOptUserPayoutDataPayoutWallet returns new OptUserPayoutDataPayoutWallet with value set to v.
func (*OptUserPayoutDataPayoutWallet) Decode ¶
func (o *OptUserPayoutDataPayoutWallet) Decode(d *jx.Decoder) error
Decode decodes UserPayoutDataPayoutWallet from json.
func (OptUserPayoutDataPayoutWallet) Encode ¶
func (o OptUserPayoutDataPayoutWallet) Encode(e *jx.Encoder)
Encode encodes UserPayoutDataPayoutWallet as json.
func (OptUserPayoutDataPayoutWallet) Get ¶
func (o OptUserPayoutDataPayoutWallet) Get() (v UserPayoutDataPayoutWallet, ok bool)
Get returns value and boolean that denotes whether value was set.
func (OptUserPayoutDataPayoutWallet) IsSet ¶
func (o OptUserPayoutDataPayoutWallet) IsSet() bool
IsSet returns true if OptUserPayoutDataPayoutWallet was set.
func (OptUserPayoutDataPayoutWallet) MarshalJSON ¶
func (s OptUserPayoutDataPayoutWallet) MarshalJSON() ([]byte, error)
MarshalJSON implements stdjson.Marshaler.
func (*OptUserPayoutDataPayoutWallet) Reset ¶
func (o *OptUserPayoutDataPayoutWallet) Reset()
Reset unsets value.
func (*OptUserPayoutDataPayoutWallet) SetTo ¶
func (o *OptUserPayoutDataPayoutWallet) SetTo(v UserPayoutDataPayoutWallet)
SetTo sets value to v.
func (*OptUserPayoutDataPayoutWallet) UnmarshalJSON ¶
func (s *OptUserPayoutDataPayoutWallet) UnmarshalJSON(data []byte) error
UnmarshalJSON implements stdjson.Unmarshaler.
type OptUserPayoutDataPayoutWalletType ¶
type OptUserPayoutDataPayoutWalletType struct {
Value UserPayoutDataPayoutWalletType
Set bool
}
OptUserPayoutDataPayoutWalletType is optional UserPayoutDataPayoutWalletType.
func NewOptUserPayoutDataPayoutWalletType ¶
func NewOptUserPayoutDataPayoutWalletType(v UserPayoutDataPayoutWalletType) OptUserPayoutDataPayoutWalletType
NewOptUserPayoutDataPayoutWalletType returns new OptUserPayoutDataPayoutWalletType with value set to v.
func (*OptUserPayoutDataPayoutWalletType) Decode ¶
func (o *OptUserPayoutDataPayoutWalletType) Decode(d *jx.Decoder) error
Decode decodes UserPayoutDataPayoutWalletType from json.
func (OptUserPayoutDataPayoutWalletType) Encode ¶
func (o OptUserPayoutDataPayoutWalletType) Encode(e *jx.Encoder)
Encode encodes UserPayoutDataPayoutWalletType as json.
func (OptUserPayoutDataPayoutWalletType) Get ¶
func (o OptUserPayoutDataPayoutWalletType) Get() (v UserPayoutDataPayoutWalletType, ok bool)
Get returns value and boolean that denotes whether value was set.
func (OptUserPayoutDataPayoutWalletType) IsSet ¶
func (o OptUserPayoutDataPayoutWalletType) IsSet() bool
IsSet returns true if OptUserPayoutDataPayoutWalletType was set.
func (OptUserPayoutDataPayoutWalletType) MarshalJSON ¶
func (s OptUserPayoutDataPayoutWalletType) MarshalJSON() ([]byte, error)
MarshalJSON implements stdjson.Marshaler.
func (OptUserPayoutDataPayoutWalletType) Or ¶
func (o OptUserPayoutDataPayoutWalletType) Or(d UserPayoutDataPayoutWalletType) UserPayoutDataPayoutWalletType
Or returns value if set, or given parameter if does not.
func (*OptUserPayoutDataPayoutWalletType) Reset ¶
func (o *OptUserPayoutDataPayoutWalletType) Reset()
Reset unsets value.
func (*OptUserPayoutDataPayoutWalletType) SetTo ¶
func (o *OptUserPayoutDataPayoutWalletType) SetTo(v UserPayoutDataPayoutWalletType)
SetTo sets value to v.
func (*OptUserPayoutDataPayoutWalletType) UnmarshalJSON ¶
func (s *OptUserPayoutDataPayoutWalletType) UnmarshalJSON(data []byte) error
UnmarshalJSON implements stdjson.Unmarshaler.
type OptVersionStatus ¶
type OptVersionStatus struct {
Value VersionStatus
Set bool
}
OptVersionStatus is optional VersionStatus.
func NewOptVersionStatus ¶
func NewOptVersionStatus(v VersionStatus) OptVersionStatus
NewOptVersionStatus returns new OptVersionStatus with value set to v.
func (*OptVersionStatus) Decode ¶
func (o *OptVersionStatus) Decode(d *jx.Decoder) error
Decode decodes VersionStatus from json.
func (OptVersionStatus) Encode ¶
func (o OptVersionStatus) Encode(e *jx.Encoder)
Encode encodes VersionStatus as json.
func (OptVersionStatus) Get ¶
func (o OptVersionStatus) Get() (v VersionStatus, ok bool)
Get returns value and boolean that denotes whether value was set.
func (OptVersionStatus) IsSet ¶
func (o OptVersionStatus) IsSet() bool
IsSet returns true if OptVersionStatus was set.
func (OptVersionStatus) MarshalJSON ¶
func (s OptVersionStatus) MarshalJSON() ([]byte, error)
MarshalJSON implements stdjson.Marshaler.
func (OptVersionStatus) Or ¶
func (o OptVersionStatus) Or(d VersionStatus) VersionStatus
Or returns value if set, or given parameter if does not.
func (*OptVersionStatus) SetTo ¶
func (o *OptVersionStatus) SetTo(v VersionStatus)
SetTo sets value to v.
func (*OptVersionStatus) UnmarshalJSON ¶
func (s *OptVersionStatus) UnmarshalJSON(data []byte) error
UnmarshalJSON implements stdjson.Unmarshaler.
type PatchProjectsBody ¶
type PatchProjectsBody struct {
// Set all of the categories to the categories specified here.
Categories []string `json:"categories"`
// Add all of the categories specified here.
AddCategories []string `json:"add_categories"`
// Remove all of the categories specified here.
RemoveCategories []string `json:"remove_categories"`
// Set all of the additional categories to the categories specified here.
AdditionalCategories []string `json:"additional_categories"`
// Add all of the additional categories specified here.
AddAdditionalCategories []string `json:"add_additional_categories"`
// Remove all of the additional categories specified here.
RemoveAdditionalCategories []string `json:"remove_additional_categories"`
// Set all of the donation links to the donation links specified here.
DonationUrls []ProjectDonationURL `json:"donation_urls"`
// Add all of the donation links specified here.
AddDonationUrls []ProjectDonationURL `json:"add_donation_urls"`
// Remove all of the donation links specified here.
RemoveDonationUrls []ProjectDonationURL `json:"remove_donation_urls"`
// An optional link to where to submit bugs or issues with the projects.
IssuesURL OptNilString `json:"issues_url"`
// An optional link to the source code of the projects.
SourceURL OptNilString `json:"source_url"`
// An optional link to the projects' wiki page or other relevant information.
WikiURL OptNilString `json:"wiki_url"`
// An optional invite link to the projects' discord.
DiscordURL OptNilString `json:"discord_url"`
}
Ref: #/components/schemas/PatchProjectsBody
func (*PatchProjectsBody) Decode ¶
func (s *PatchProjectsBody) Decode(d *jx.Decoder) error
Decode decodes PatchProjectsBody from json.
func (*PatchProjectsBody) Encode ¶
func (s *PatchProjectsBody) Encode(e *jx.Encoder)
Encode implements json.Marshaler.
func (*PatchProjectsBody) GetAddAdditionalCategories ¶
func (s *PatchProjectsBody) GetAddAdditionalCategories() []string
GetAddAdditionalCategories returns the value of AddAdditionalCategories.
func (*PatchProjectsBody) GetAddCategories ¶
func (s *PatchProjectsBody) GetAddCategories() []string
GetAddCategories returns the value of AddCategories.
func (*PatchProjectsBody) GetAddDonationUrls ¶
func (s *PatchProjectsBody) GetAddDonationUrls() []ProjectDonationURL
GetAddDonationUrls returns the value of AddDonationUrls.
func (*PatchProjectsBody) GetAdditionalCategories ¶
func (s *PatchProjectsBody) GetAdditionalCategories() []string
GetAdditionalCategories returns the value of AdditionalCategories.
func (*PatchProjectsBody) GetCategories ¶
func (s *PatchProjectsBody) GetCategories() []string
GetCategories returns the value of Categories.
func (*PatchProjectsBody) GetDiscordURL ¶
func (s *PatchProjectsBody) GetDiscordURL() OptNilString
GetDiscordURL returns the value of DiscordURL.
func (*PatchProjectsBody) GetDonationUrls ¶
func (s *PatchProjectsBody) GetDonationUrls() []ProjectDonationURL
GetDonationUrls returns the value of DonationUrls.
func (*PatchProjectsBody) GetIssuesURL ¶
func (s *PatchProjectsBody) GetIssuesURL() OptNilString
GetIssuesURL returns the value of IssuesURL.
func (*PatchProjectsBody) GetRemoveAdditionalCategories ¶
func (s *PatchProjectsBody) GetRemoveAdditionalCategories() []string
GetRemoveAdditionalCategories returns the value of RemoveAdditionalCategories.
func (*PatchProjectsBody) GetRemoveCategories ¶
func (s *PatchProjectsBody) GetRemoveCategories() []string
GetRemoveCategories returns the value of RemoveCategories.
func (*PatchProjectsBody) GetRemoveDonationUrls ¶
func (s *PatchProjectsBody) GetRemoveDonationUrls() []ProjectDonationURL
GetRemoveDonationUrls returns the value of RemoveDonationUrls.
func (*PatchProjectsBody) GetSourceURL ¶
func (s *PatchProjectsBody) GetSourceURL() OptNilString
GetSourceURL returns the value of SourceURL.
func (*PatchProjectsBody) GetWikiURL ¶
func (s *PatchProjectsBody) GetWikiURL() OptNilString
GetWikiURL returns the value of WikiURL.
func (*PatchProjectsBody) MarshalJSON ¶
func (s *PatchProjectsBody) MarshalJSON() ([]byte, error)
MarshalJSON implements stdjson.Marshaler.
func (*PatchProjectsBody) SetAddAdditionalCategories ¶
func (s *PatchProjectsBody) SetAddAdditionalCategories(val []string)
SetAddAdditionalCategories sets the value of AddAdditionalCategories.
func (*PatchProjectsBody) SetAddCategories ¶
func (s *PatchProjectsBody) SetAddCategories(val []string)
SetAddCategories sets the value of AddCategories.
func (*PatchProjectsBody) SetAddDonationUrls ¶
func (s *PatchProjectsBody) SetAddDonationUrls(val []ProjectDonationURL)
SetAddDonationUrls sets the value of AddDonationUrls.
func (*PatchProjectsBody) SetAdditionalCategories ¶
func (s *PatchProjectsBody) SetAdditionalCategories(val []string)
SetAdditionalCategories sets the value of AdditionalCategories.
func (*PatchProjectsBody) SetCategories ¶
func (s *PatchProjectsBody) SetCategories(val []string)
SetCategories sets the value of Categories.
func (*PatchProjectsBody) SetDiscordURL ¶
func (s *PatchProjectsBody) SetDiscordURL(val OptNilString)
SetDiscordURL sets the value of DiscordURL.
func (*PatchProjectsBody) SetDonationUrls ¶
func (s *PatchProjectsBody) SetDonationUrls(val []ProjectDonationURL)
SetDonationUrls sets the value of DonationUrls.
func (*PatchProjectsBody) SetIssuesURL ¶
func (s *PatchProjectsBody) SetIssuesURL(val OptNilString)
SetIssuesURL sets the value of IssuesURL.
func (*PatchProjectsBody) SetRemoveAdditionalCategories ¶
func (s *PatchProjectsBody) SetRemoveAdditionalCategories(val []string)
SetRemoveAdditionalCategories sets the value of RemoveAdditionalCategories.
func (*PatchProjectsBody) SetRemoveCategories ¶
func (s *PatchProjectsBody) SetRemoveCategories(val []string)
SetRemoveCategories sets the value of RemoveCategories.
func (*PatchProjectsBody) SetRemoveDonationUrls ¶
func (s *PatchProjectsBody) SetRemoveDonationUrls(val []ProjectDonationURL)
SetRemoveDonationUrls sets the value of RemoveDonationUrls.
func (*PatchProjectsBody) SetSourceURL ¶
func (s *PatchProjectsBody) SetSourceURL(val OptNilString)
SetSourceURL sets the value of SourceURL.
func (*PatchProjectsBody) SetWikiURL ¶
func (s *PatchProjectsBody) SetWikiURL(val OptNilString)
SetWikiURL sets the value of WikiURL.
func (*PatchProjectsBody) UnmarshalJSON ¶
func (s *PatchProjectsBody) UnmarshalJSON(data []byte) error
UnmarshalJSON implements stdjson.Unmarshaler.
type PatchProjectsNoContent ¶
type PatchProjectsNoContent struct{}
PatchProjectsNoContent is response for PatchProjects operation.
type PatchProjectsParams ¶
type PatchProjectsParams struct {
// The IDs and/or slugs of the projects.
Ids string
}
PatchProjectsParams is parameters of patchProjects operation.
type PatchProjectsRes ¶
type PatchProjectsRes interface {
// contains filtered or unexported methods
}
type Project ¶
type Project struct {
// Merged property.
Slug string `json:"slug"`
// Merged property.
Title string `json:"title"`
// Merged property.
Description string `json:"description"`
// Merged property.
Categories []string `json:"categories"`
// Merged property.
ClientSide ProjectClientSide `json:"client_side"`
// Merged property.
ServerSide ProjectServerSide `json:"server_side"`
// A long form description of the project.
Body string `json:"body"`
// The status of the project.
Status ProjectStatus `json:"status"`
// The requested status when submitting for review or scheduling the project for release.
RequestedStatus OptNilProjectRequestedStatus `json:"requested_status"`
// A list of categories which are searchable but non-primary.
AdditionalCategories []string `json:"additional_categories"`
// An optional link to where to submit bugs or issues with the project.
IssuesURL OptNilString `json:"issues_url"`
// An optional link to the source code of the project.
SourceURL OptNilString `json:"source_url"`
// An optional link to the project's wiki page or other relevant information.
WikiURL OptNilString `json:"wiki_url"`
// An optional invite link to the project's discord.
DiscordURL OptNilString `json:"discord_url"`
// A list of donation links for the project.
DonationUrls []ProjectDonationURL `json:"donation_urls"`
// The project type of the project.
ProjectType ProjectProjectType `json:"project_type"`
// The total number of downloads of the project.
Downloads int `json:"downloads"`
// The URL of the project's icon.
IconURL OptNilString `json:"icon_url"`
// The RGB color of the project, automatically generated from the project icon.
Color OptNilInt `json:"color"`
// The ID of the moderation thread associated with this project.
ThreadID OptString `json:"thread_id"`
MonetizationStatus OptProjectMonetizationStatus `json:"monetization_status"`
// The ID of the project, encoded as a base62 string.
ID string `json:"id"`
// The ID of the team that has ownership of this project.
Team string `json:"team"`
// The link to the long description of the project. Always null, only kept for legacy compatibility.
//
// Deprecated: schema marks this property as deprecated.
BodyURL OptNilString `json:"body_url"`
// Deprecated: schema marks this property as deprecated.
ModeratorMessage OptNilModeratorMessage `json:"moderator_message"`
// The date the project was published.
Published string `json:"published"`
// The date the project was last updated.
Updated string `json:"updated"`
// The date the project's status was set to an approved status.
Approved OptNilString `json:"approved"`
// The date the project's status was submitted to moderators for review.
Queued OptNilString `json:"queued"`
// The total number of users following the project.
Followers int `json:"followers"`
License OptProjectLicense `json:"license"`
// A list of the version IDs of the project (will never be empty unless `draft` status).
Versions []string `json:"versions"`
// A list of all of the game versions supported by the project.
GameVersions []string `json:"game_versions"`
// A list of all of the loaders supported by the project.
Loaders []string `json:"loaders"`
// A list of images that have been uploaded to the project's gallery.
Gallery []NilGalleryImage `json:"gallery"`
}
Merged schema. Ref: #/components/schemas/Project
func (*Project) GetAdditionalCategories ¶
GetAdditionalCategories returns the value of AdditionalCategories.
func (*Project) GetApproved ¶
func (s *Project) GetApproved() OptNilString
GetApproved returns the value of Approved.
func (*Project) GetBodyURL ¶
func (s *Project) GetBodyURL() OptNilString
GetBodyURL returns the value of BodyURL.
func (*Project) GetCategories ¶
GetCategories returns the value of Categories.
func (*Project) GetClientSide ¶
func (s *Project) GetClientSide() ProjectClientSide
GetClientSide returns the value of ClientSide.
func (*Project) GetDescription ¶
GetDescription returns the value of Description.
func (*Project) GetDiscordURL ¶
func (s *Project) GetDiscordURL() OptNilString
GetDiscordURL returns the value of DiscordURL.
func (*Project) GetDonationUrls ¶
func (s *Project) GetDonationUrls() []ProjectDonationURL
GetDonationUrls returns the value of DonationUrls.
func (*Project) GetDownloads ¶
GetDownloads returns the value of Downloads.
func (*Project) GetFollowers ¶
GetFollowers returns the value of Followers.
func (*Project) GetGallery ¶
func (s *Project) GetGallery() []NilGalleryImage
GetGallery returns the value of Gallery.
func (*Project) GetGameVersions ¶
GetGameVersions returns the value of GameVersions.
func (*Project) GetIconURL ¶
func (s *Project) GetIconURL() OptNilString
GetIconURL returns the value of IconURL.
func (*Project) GetIssuesURL ¶
func (s *Project) GetIssuesURL() OptNilString
GetIssuesURL returns the value of IssuesURL.
func (*Project) GetLicense ¶
func (s *Project) GetLicense() OptProjectLicense
GetLicense returns the value of License.
func (*Project) GetLoaders ¶
GetLoaders returns the value of Loaders.
func (*Project) GetModeratorMessage ¶
func (s *Project) GetModeratorMessage() OptNilModeratorMessage
GetModeratorMessage returns the value of ModeratorMessage.
func (*Project) GetMonetizationStatus ¶
func (s *Project) GetMonetizationStatus() OptProjectMonetizationStatus
GetMonetizationStatus returns the value of MonetizationStatus.
func (*Project) GetProjectType ¶
func (s *Project) GetProjectType() ProjectProjectType
GetProjectType returns the value of ProjectType.
func (*Project) GetPublished ¶
GetPublished returns the value of Published.
func (*Project) GetQueued ¶
func (s *Project) GetQueued() OptNilString
GetQueued returns the value of Queued.
func (*Project) GetRequestedStatus ¶
func (s *Project) GetRequestedStatus() OptNilProjectRequestedStatus
GetRequestedStatus returns the value of RequestedStatus.
func (*Project) GetServerSide ¶
func (s *Project) GetServerSide() ProjectServerSide
GetServerSide returns the value of ServerSide.
func (*Project) GetSourceURL ¶
func (s *Project) GetSourceURL() OptNilString
GetSourceURL returns the value of SourceURL.
func (*Project) GetStatus ¶
func (s *Project) GetStatus() ProjectStatus
GetStatus returns the value of Status.
func (*Project) GetThreadID ¶
GetThreadID returns the value of ThreadID.
func (*Project) GetUpdated ¶
GetUpdated returns the value of Updated.
func (*Project) GetVersions ¶
GetVersions returns the value of Versions.
func (*Project) GetWikiURL ¶
func (s *Project) GetWikiURL() OptNilString
GetWikiURL returns the value of WikiURL.
func (*Project) MarshalJSON ¶
MarshalJSON implements stdjson.Marshaler.
func (*Project) SetAdditionalCategories ¶
SetAdditionalCategories sets the value of AdditionalCategories.
func (*Project) SetApproved ¶
func (s *Project) SetApproved(val OptNilString)
SetApproved sets the value of Approved.
func (*Project) SetBodyURL ¶
func (s *Project) SetBodyURL(val OptNilString)
SetBodyURL sets the value of BodyURL.
func (*Project) SetCategories ¶
SetCategories sets the value of Categories.
func (*Project) SetClientSide ¶
func (s *Project) SetClientSide(val ProjectClientSide)
SetClientSide sets the value of ClientSide.
func (*Project) SetDescription ¶
SetDescription sets the value of Description.
func (*Project) SetDiscordURL ¶
func (s *Project) SetDiscordURL(val OptNilString)
SetDiscordURL sets the value of DiscordURL.
func (*Project) SetDonationUrls ¶
func (s *Project) SetDonationUrls(val []ProjectDonationURL)
SetDonationUrls sets the value of DonationUrls.
func (*Project) SetDownloads ¶
SetDownloads sets the value of Downloads.
func (*Project) SetFollowers ¶
SetFollowers sets the value of Followers.
func (*Project) SetGallery ¶
func (s *Project) SetGallery(val []NilGalleryImage)
SetGallery sets the value of Gallery.
func (*Project) SetGameVersions ¶
SetGameVersions sets the value of GameVersions.
func (*Project) SetIconURL ¶
func (s *Project) SetIconURL(val OptNilString)
SetIconURL sets the value of IconURL.
func (*Project) SetIssuesURL ¶
func (s *Project) SetIssuesURL(val OptNilString)
SetIssuesURL sets the value of IssuesURL.
func (*Project) SetLicense ¶
func (s *Project) SetLicense(val OptProjectLicense)
SetLicense sets the value of License.
func (*Project) SetLoaders ¶
SetLoaders sets the value of Loaders.
func (*Project) SetModeratorMessage ¶
func (s *Project) SetModeratorMessage(val OptNilModeratorMessage)
SetModeratorMessage sets the value of ModeratorMessage.
func (*Project) SetMonetizationStatus ¶
func (s *Project) SetMonetizationStatus(val OptProjectMonetizationStatus)
SetMonetizationStatus sets the value of MonetizationStatus.
func (*Project) SetProjectType ¶
func (s *Project) SetProjectType(val ProjectProjectType)
SetProjectType sets the value of ProjectType.
func (*Project) SetPublished ¶
SetPublished sets the value of Published.
func (*Project) SetQueued ¶
func (s *Project) SetQueued(val OptNilString)
SetQueued sets the value of Queued.
func (*Project) SetRequestedStatus ¶
func (s *Project) SetRequestedStatus(val OptNilProjectRequestedStatus)
SetRequestedStatus sets the value of RequestedStatus.
func (*Project) SetServerSide ¶
func (s *Project) SetServerSide(val ProjectServerSide)
SetServerSide sets the value of ServerSide.
func (*Project) SetSourceURL ¶
func (s *Project) SetSourceURL(val OptNilString)
SetSourceURL sets the value of SourceURL.
func (*Project) SetStatus ¶
func (s *Project) SetStatus(val ProjectStatus)
SetStatus sets the value of Status.
func (*Project) SetThreadID ¶
SetThreadID sets the value of ThreadID.
func (*Project) SetUpdated ¶
SetUpdated sets the value of Updated.
func (*Project) SetVersions ¶
SetVersions sets the value of Versions.
func (*Project) SetWikiURL ¶
func (s *Project) SetWikiURL(val OptNilString)
SetWikiURL sets the value of WikiURL.
func (*Project) UnmarshalJSON ¶
UnmarshalJSON implements stdjson.Unmarshaler.
type ProjectClientSide ¶
type ProjectClientSide string
Merged schema.
const ( ProjectClientSideRequired ProjectClientSide = "required" ProjectClientSideOptional ProjectClientSide = "optional" ProjectClientSideUnsupported ProjectClientSide = "unsupported" ProjectClientSideUnknown ProjectClientSide = "unknown" )
func (ProjectClientSide) AllValues ¶
func (ProjectClientSide) AllValues() []ProjectClientSide
AllValues returns all ProjectClientSide values.
func (*ProjectClientSide) Decode ¶
func (s *ProjectClientSide) Decode(d *jx.Decoder) error
Decode decodes ProjectClientSide from json.
func (ProjectClientSide) Encode ¶
func (s ProjectClientSide) Encode(e *jx.Encoder)
Encode encodes ProjectClientSide as json.
func (ProjectClientSide) MarshalJSON ¶
func (s ProjectClientSide) MarshalJSON() ([]byte, error)
MarshalJSON implements stdjson.Marshaler.
func (ProjectClientSide) MarshalText ¶
func (s ProjectClientSide) MarshalText() ([]byte, error)
MarshalText implements encoding.TextMarshaler.
func (*ProjectClientSide) UnmarshalJSON ¶
func (s *ProjectClientSide) UnmarshalJSON(data []byte) error
UnmarshalJSON implements stdjson.Unmarshaler.
func (*ProjectClientSide) UnmarshalText ¶
func (s *ProjectClientSide) UnmarshalText(data []byte) error
UnmarshalText implements encoding.TextUnmarshaler.
func (ProjectClientSide) Validate ¶
func (s ProjectClientSide) Validate() error
type ProjectDependencyList ¶
type ProjectDependencyList struct {
// Projects that the project depends upon.
Projects []Project `json:"projects"`
// Versions that the project depends upon.
Versions []Version `json:"versions"`
}
Ref: #/components/schemas/ProjectDependencyList
func (*ProjectDependencyList) Decode ¶
func (s *ProjectDependencyList) Decode(d *jx.Decoder) error
Decode decodes ProjectDependencyList from json.
func (*ProjectDependencyList) Encode ¶
func (s *ProjectDependencyList) Encode(e *jx.Encoder)
Encode implements json.Marshaler.
func (*ProjectDependencyList) GetProjects ¶
func (s *ProjectDependencyList) GetProjects() []Project
GetProjects returns the value of Projects.
func (*ProjectDependencyList) GetVersions ¶
func (s *ProjectDependencyList) GetVersions() []Version
GetVersions returns the value of Versions.
func (*ProjectDependencyList) MarshalJSON ¶
func (s *ProjectDependencyList) MarshalJSON() ([]byte, error)
MarshalJSON implements stdjson.Marshaler.
func (*ProjectDependencyList) SetProjects ¶
func (s *ProjectDependencyList) SetProjects(val []Project)
SetProjects sets the value of Projects.
func (*ProjectDependencyList) SetVersions ¶
func (s *ProjectDependencyList) SetVersions(val []Version)
SetVersions sets the value of Versions.
func (*ProjectDependencyList) UnmarshalJSON ¶
func (s *ProjectDependencyList) UnmarshalJSON(data []byte) error
UnmarshalJSON implements stdjson.Unmarshaler.
func (*ProjectDependencyList) Validate ¶
func (s *ProjectDependencyList) Validate() error
type ProjectDonationURL ¶
type ProjectDonationURL struct {
// The ID of the donation platform.
ID OptString `json:"id"`
// The donation platform this link is to.
Platform OptString `json:"platform"`
// The URL of the donation platform and user.
URL OptString `json:"url"`
}
Ref: #/components/schemas/ProjectDonationURL
func (*ProjectDonationURL) Decode ¶
func (s *ProjectDonationURL) Decode(d *jx.Decoder) error
Decode decodes ProjectDonationURL from json.
func (*ProjectDonationURL) Encode ¶
func (s *ProjectDonationURL) Encode(e *jx.Encoder)
Encode implements json.Marshaler.
func (*ProjectDonationURL) GetID ¶
func (s *ProjectDonationURL) GetID() OptString
GetID returns the value of ID.
func (*ProjectDonationURL) GetPlatform ¶
func (s *ProjectDonationURL) GetPlatform() OptString
GetPlatform returns the value of Platform.
func (*ProjectDonationURL) GetURL ¶
func (s *ProjectDonationURL) GetURL() OptString
GetURL returns the value of URL.
func (*ProjectDonationURL) MarshalJSON ¶
func (s *ProjectDonationURL) MarshalJSON() ([]byte, error)
MarshalJSON implements stdjson.Marshaler.
func (*ProjectDonationURL) SetID ¶
func (s *ProjectDonationURL) SetID(val OptString)
SetID sets the value of ID.
func (*ProjectDonationURL) SetPlatform ¶
func (s *ProjectDonationURL) SetPlatform(val OptString)
SetPlatform sets the value of Platform.
func (*ProjectDonationURL) SetURL ¶
func (s *ProjectDonationURL) SetURL(val OptString)
SetURL sets the value of URL.
func (*ProjectDonationURL) UnmarshalJSON ¶
func (s *ProjectDonationURL) UnmarshalJSON(data []byte) error
UnmarshalJSON implements stdjson.Unmarshaler.
type ProjectIdentifier ¶
type ProjectIdentifier struct {
ID OptString `json:"id"`
}
Ref: #/components/schemas/ProjectIdentifier
func (*ProjectIdentifier) Decode ¶
func (s *ProjectIdentifier) Decode(d *jx.Decoder) error
Decode decodes ProjectIdentifier from json.
func (*ProjectIdentifier) Encode ¶
func (s *ProjectIdentifier) Encode(e *jx.Encoder)
Encode implements json.Marshaler.
func (*ProjectIdentifier) GetID ¶
func (s *ProjectIdentifier) GetID() OptString
GetID returns the value of ID.
func (*ProjectIdentifier) MarshalJSON ¶
func (s *ProjectIdentifier) MarshalJSON() ([]byte, error)
MarshalJSON implements stdjson.Marshaler.
func (*ProjectIdentifier) SetID ¶
func (s *ProjectIdentifier) SetID(val OptString)
SetID sets the value of ID.
func (*ProjectIdentifier) UnmarshalJSON ¶
func (s *ProjectIdentifier) UnmarshalJSON(data []byte) error
UnmarshalJSON implements stdjson.Unmarshaler.
type ProjectLicense ¶
type ProjectLicense struct {
// The SPDX license ID of a project.
ID OptString `json:"id"`
// The long name of a license.
Name OptString `json:"name"`
// The URL to this license.
URL OptNilString `json:"url"`
}
The license of the project. Ref: #/components/schemas/ProjectLicense
func (*ProjectLicense) Decode ¶
func (s *ProjectLicense) Decode(d *jx.Decoder) error
Decode decodes ProjectLicense from json.
func (*ProjectLicense) Encode ¶
func (s *ProjectLicense) Encode(e *jx.Encoder)
Encode implements json.Marshaler.
func (*ProjectLicense) GetID ¶
func (s *ProjectLicense) GetID() OptString
GetID returns the value of ID.
func (*ProjectLicense) GetName ¶
func (s *ProjectLicense) GetName() OptString
GetName returns the value of Name.
func (*ProjectLicense) GetURL ¶
func (s *ProjectLicense) GetURL() OptNilString
GetURL returns the value of URL.
func (*ProjectLicense) MarshalJSON ¶
func (s *ProjectLicense) MarshalJSON() ([]byte, error)
MarshalJSON implements stdjson.Marshaler.
func (*ProjectLicense) SetID ¶
func (s *ProjectLicense) SetID(val OptString)
SetID sets the value of ID.
func (*ProjectLicense) SetName ¶
func (s *ProjectLicense) SetName(val OptString)
SetName sets the value of Name.
func (*ProjectLicense) SetURL ¶
func (s *ProjectLicense) SetURL(val OptNilString)
SetURL sets the value of URL.
func (*ProjectLicense) UnmarshalJSON ¶
func (s *ProjectLicense) UnmarshalJSON(data []byte) error
UnmarshalJSON implements stdjson.Unmarshaler.
type ProjectMonetizationStatus ¶
type ProjectMonetizationStatus string
const ( ProjectMonetizationStatusMonetized ProjectMonetizationStatus = "monetized" ProjectMonetizationStatusDemonetized ProjectMonetizationStatus = "demonetized" ProjectMonetizationStatusForceDemonetized ProjectMonetizationStatus = "force-demonetized" )
func (ProjectMonetizationStatus) AllValues ¶
func (ProjectMonetizationStatus) AllValues() []ProjectMonetizationStatus
AllValues returns all ProjectMonetizationStatus values.
func (*ProjectMonetizationStatus) Decode ¶
func (s *ProjectMonetizationStatus) Decode(d *jx.Decoder) error
Decode decodes ProjectMonetizationStatus from json.
func (ProjectMonetizationStatus) Encode ¶
func (s ProjectMonetizationStatus) Encode(e *jx.Encoder)
Encode encodes ProjectMonetizationStatus as json.
func (ProjectMonetizationStatus) MarshalJSON ¶
func (s ProjectMonetizationStatus) MarshalJSON() ([]byte, error)
MarshalJSON implements stdjson.Marshaler.
func (ProjectMonetizationStatus) MarshalText ¶
func (s ProjectMonetizationStatus) MarshalText() ([]byte, error)
MarshalText implements encoding.TextMarshaler.
func (*ProjectMonetizationStatus) UnmarshalJSON ¶
func (s *ProjectMonetizationStatus) UnmarshalJSON(data []byte) error
UnmarshalJSON implements stdjson.Unmarshaler.
func (*ProjectMonetizationStatus) UnmarshalText ¶
func (s *ProjectMonetizationStatus) UnmarshalText(data []byte) error
UnmarshalText implements encoding.TextUnmarshaler.
func (ProjectMonetizationStatus) Validate ¶
func (s ProjectMonetizationStatus) Validate() error
type ProjectProjectType ¶
type ProjectProjectType string
The project type of the project.
const ( ProjectProjectTypeMod ProjectProjectType = "mod" ProjectProjectTypeModpack ProjectProjectType = "modpack" ProjectProjectTypeResourcepack ProjectProjectType = "resourcepack" ProjectProjectTypeShader ProjectProjectType = "shader" )
func (ProjectProjectType) AllValues ¶
func (ProjectProjectType) AllValues() []ProjectProjectType
AllValues returns all ProjectProjectType values.
func (*ProjectProjectType) Decode ¶
func (s *ProjectProjectType) Decode(d *jx.Decoder) error
Decode decodes ProjectProjectType from json.
func (ProjectProjectType) Encode ¶
func (s ProjectProjectType) Encode(e *jx.Encoder)
Encode encodes ProjectProjectType as json.
func (ProjectProjectType) MarshalJSON ¶
func (s ProjectProjectType) MarshalJSON() ([]byte, error)
MarshalJSON implements stdjson.Marshaler.
func (ProjectProjectType) MarshalText ¶
func (s ProjectProjectType) MarshalText() ([]byte, error)
MarshalText implements encoding.TextMarshaler.
func (*ProjectProjectType) UnmarshalJSON ¶
func (s *ProjectProjectType) UnmarshalJSON(data []byte) error
UnmarshalJSON implements stdjson.Unmarshaler.
func (*ProjectProjectType) UnmarshalText ¶
func (s *ProjectProjectType) UnmarshalText(data []byte) error
UnmarshalText implements encoding.TextUnmarshaler.
func (ProjectProjectType) Validate ¶
func (s ProjectProjectType) Validate() error
type ProjectRequestedStatus ¶
type ProjectRequestedStatus string
The requested status when submitting for review or scheduling the project for release.
const ( ProjectRequestedStatusApproved ProjectRequestedStatus = "approved" ProjectRequestedStatusArchived ProjectRequestedStatus = "archived" ProjectRequestedStatusUnlisted ProjectRequestedStatus = "unlisted" ProjectRequestedStatusPrivate ProjectRequestedStatus = "private" ProjectRequestedStatusDraft ProjectRequestedStatus = "draft" )
func (ProjectRequestedStatus) AllValues ¶
func (ProjectRequestedStatus) AllValues() []ProjectRequestedStatus
AllValues returns all ProjectRequestedStatus values.
func (*ProjectRequestedStatus) Decode ¶
func (s *ProjectRequestedStatus) Decode(d *jx.Decoder) error
Decode decodes ProjectRequestedStatus from json.
func (ProjectRequestedStatus) Encode ¶
func (s ProjectRequestedStatus) Encode(e *jx.Encoder)
Encode encodes ProjectRequestedStatus as json.
func (ProjectRequestedStatus) MarshalJSON ¶
func (s ProjectRequestedStatus) MarshalJSON() ([]byte, error)
MarshalJSON implements stdjson.Marshaler.
func (ProjectRequestedStatus) MarshalText ¶
func (s ProjectRequestedStatus) MarshalText() ([]byte, error)
MarshalText implements encoding.TextMarshaler.
func (*ProjectRequestedStatus) UnmarshalJSON ¶
func (s *ProjectRequestedStatus) UnmarshalJSON(data []byte) error
UnmarshalJSON implements stdjson.Unmarshaler.
func (*ProjectRequestedStatus) UnmarshalText ¶
func (s *ProjectRequestedStatus) UnmarshalText(data []byte) error
UnmarshalText implements encoding.TextUnmarshaler.
func (ProjectRequestedStatus) Validate ¶
func (s ProjectRequestedStatus) Validate() error
type ProjectResult ¶
type ProjectResult struct {
// The slug of a project, used for vanity URLs. Regex: “`^[\w!@$()`.+,"\-']{3,64}$“`.
Slug string `json:"slug"`
// The title or name of the project.
Title string `json:"title"`
// A short description of the project.
Description string `json:"description"`
// A list of the categories that the project has.
Categories []string `json:"categories"`
// The client side support of the project.
ClientSide ProjectResultClientSide `json:"client_side"`
// The server side support of the project.
ServerSide ProjectResultServerSide `json:"server_side"`
// The project type of the project.
ProjectType ProjectResultProjectType `json:"project_type"`
// The total number of downloads of the project.
Downloads int `json:"downloads"`
// The URL of the project's icon.
IconURL OptNilString `json:"icon_url"`
// The RGB color of the project, automatically generated from the project icon.
Color OptNilInt `json:"color"`
// The ID of the moderation thread associated with this project.
ThreadID OptString `json:"thread_id"`
MonetizationStatus OptProjectResultMonetizationStatus `json:"monetization_status"`
// The ID of the project.
ProjectID string `json:"project_id"`
// The username of the project's author.
Author string `json:"author"`
// A list of the categories that the project has which are not secondary.
DisplayCategories []string `json:"display_categories"`
// A list of the minecraft versions supported by the project.
Versions []string `json:"versions"`
// The total number of users following the project.
Follows int `json:"follows"`
// The date the project was added to search.
DateCreated string `json:"date_created"`
// The date the project was last modified.
DateModified string `json:"date_modified"`
// The latest version of minecraft that this project supports.
LatestVersion OptString `json:"latest_version"`
// The SPDX license ID of a project.
License string `json:"license"`
// All gallery images attached to the project.
Gallery []string `json:"gallery"`
// The featured gallery image of the project.
FeaturedGallery OptNilString `json:"featured_gallery"`
}
Merged schema. Ref: #/components/schemas/ProjectResult
func (*ProjectResult) Decode ¶
func (s *ProjectResult) Decode(d *jx.Decoder) error
Decode decodes ProjectResult from json.
func (*ProjectResult) Encode ¶
func (s *ProjectResult) Encode(e *jx.Encoder)
Encode implements json.Marshaler.
func (*ProjectResult) GetAuthor ¶
func (s *ProjectResult) GetAuthor() string
GetAuthor returns the value of Author.
func (*ProjectResult) GetCategories ¶
func (s *ProjectResult) GetCategories() []string
GetCategories returns the value of Categories.
func (*ProjectResult) GetClientSide ¶
func (s *ProjectResult) GetClientSide() ProjectResultClientSide
GetClientSide returns the value of ClientSide.
func (*ProjectResult) GetColor ¶
func (s *ProjectResult) GetColor() OptNilInt
GetColor returns the value of Color.
func (*ProjectResult) GetDateCreated ¶
func (s *ProjectResult) GetDateCreated() string
GetDateCreated returns the value of DateCreated.
func (*ProjectResult) GetDateModified ¶
func (s *ProjectResult) GetDateModified() string
GetDateModified returns the value of DateModified.
func (*ProjectResult) GetDescription ¶
func (s *ProjectResult) GetDescription() string
GetDescription returns the value of Description.
func (*ProjectResult) GetDisplayCategories ¶
func (s *ProjectResult) GetDisplayCategories() []string
GetDisplayCategories returns the value of DisplayCategories.
func (*ProjectResult) GetDownloads ¶
func (s *ProjectResult) GetDownloads() int
GetDownloads returns the value of Downloads.
func (*ProjectResult) GetFeaturedGallery ¶
func (s *ProjectResult) GetFeaturedGallery() OptNilString
GetFeaturedGallery returns the value of FeaturedGallery.
func (*ProjectResult) GetFollows ¶
func (s *ProjectResult) GetFollows() int
GetFollows returns the value of Follows.
func (*ProjectResult) GetGallery ¶
func (s *ProjectResult) GetGallery() []string
GetGallery returns the value of Gallery.
func (*ProjectResult) GetIconURL ¶
func (s *ProjectResult) GetIconURL() OptNilString
GetIconURL returns the value of IconURL.
func (*ProjectResult) GetLatestVersion ¶
func (s *ProjectResult) GetLatestVersion() OptString
GetLatestVersion returns the value of LatestVersion.
func (*ProjectResult) GetLicense ¶
func (s *ProjectResult) GetLicense() string
GetLicense returns the value of License.
func (*ProjectResult) GetMonetizationStatus ¶
func (s *ProjectResult) GetMonetizationStatus() OptProjectResultMonetizationStatus
GetMonetizationStatus returns the value of MonetizationStatus.
func (*ProjectResult) GetProjectID ¶
func (s *ProjectResult) GetProjectID() string
GetProjectID returns the value of ProjectID.
func (*ProjectResult) GetProjectType ¶
func (s *ProjectResult) GetProjectType() ProjectResultProjectType
GetProjectType returns the value of ProjectType.
func (*ProjectResult) GetServerSide ¶
func (s *ProjectResult) GetServerSide() ProjectResultServerSide
GetServerSide returns the value of ServerSide.
func (*ProjectResult) GetSlug ¶
func (s *ProjectResult) GetSlug() string
GetSlug returns the value of Slug.
func (*ProjectResult) GetThreadID ¶
func (s *ProjectResult) GetThreadID() OptString
GetThreadID returns the value of ThreadID.
func (*ProjectResult) GetTitle ¶
func (s *ProjectResult) GetTitle() string
GetTitle returns the value of Title.
func (*ProjectResult) GetVersions ¶
func (s *ProjectResult) GetVersions() []string
GetVersions returns the value of Versions.
func (*ProjectResult) MarshalJSON ¶
func (s *ProjectResult) MarshalJSON() ([]byte, error)
MarshalJSON implements stdjson.Marshaler.
func (*ProjectResult) SetAuthor ¶
func (s *ProjectResult) SetAuthor(val string)
SetAuthor sets the value of Author.
func (*ProjectResult) SetCategories ¶
func (s *ProjectResult) SetCategories(val []string)
SetCategories sets the value of Categories.
func (*ProjectResult) SetClientSide ¶
func (s *ProjectResult) SetClientSide(val ProjectResultClientSide)
SetClientSide sets the value of ClientSide.
func (*ProjectResult) SetColor ¶
func (s *ProjectResult) SetColor(val OptNilInt)
SetColor sets the value of Color.
func (*ProjectResult) SetDateCreated ¶
func (s *ProjectResult) SetDateCreated(val string)
SetDateCreated sets the value of DateCreated.
func (*ProjectResult) SetDateModified ¶
func (s *ProjectResult) SetDateModified(val string)
SetDateModified sets the value of DateModified.
func (*ProjectResult) SetDescription ¶
func (s *ProjectResult) SetDescription(val string)
SetDescription sets the value of Description.
func (*ProjectResult) SetDisplayCategories ¶
func (s *ProjectResult) SetDisplayCategories(val []string)
SetDisplayCategories sets the value of DisplayCategories.
func (*ProjectResult) SetDownloads ¶
func (s *ProjectResult) SetDownloads(val int)
SetDownloads sets the value of Downloads.
func (*ProjectResult) SetFeaturedGallery ¶
func (s *ProjectResult) SetFeaturedGallery(val OptNilString)
SetFeaturedGallery sets the value of FeaturedGallery.
func (*ProjectResult) SetFollows ¶
func (s *ProjectResult) SetFollows(val int)
SetFollows sets the value of Follows.
func (*ProjectResult) SetGallery ¶
func (s *ProjectResult) SetGallery(val []string)
SetGallery sets the value of Gallery.
func (*ProjectResult) SetIconURL ¶
func (s *ProjectResult) SetIconURL(val OptNilString)
SetIconURL sets the value of IconURL.
func (*ProjectResult) SetLatestVersion ¶
func (s *ProjectResult) SetLatestVersion(val OptString)
SetLatestVersion sets the value of LatestVersion.
func (*ProjectResult) SetLicense ¶
func (s *ProjectResult) SetLicense(val string)
SetLicense sets the value of License.
func (*ProjectResult) SetMonetizationStatus ¶
func (s *ProjectResult) SetMonetizationStatus(val OptProjectResultMonetizationStatus)
SetMonetizationStatus sets the value of MonetizationStatus.
func (*ProjectResult) SetProjectID ¶
func (s *ProjectResult) SetProjectID(val string)
SetProjectID sets the value of ProjectID.
func (*ProjectResult) SetProjectType ¶
func (s *ProjectResult) SetProjectType(val ProjectResultProjectType)
SetProjectType sets the value of ProjectType.
func (*ProjectResult) SetServerSide ¶
func (s *ProjectResult) SetServerSide(val ProjectResultServerSide)
SetServerSide sets the value of ServerSide.
func (*ProjectResult) SetSlug ¶
func (s *ProjectResult) SetSlug(val string)
SetSlug sets the value of Slug.
func (*ProjectResult) SetThreadID ¶
func (s *ProjectResult) SetThreadID(val OptString)
SetThreadID sets the value of ThreadID.
func (*ProjectResult) SetTitle ¶
func (s *ProjectResult) SetTitle(val string)
SetTitle sets the value of Title.
func (*ProjectResult) SetVersions ¶
func (s *ProjectResult) SetVersions(val []string)
SetVersions sets the value of Versions.
func (*ProjectResult) UnmarshalJSON ¶
func (s *ProjectResult) UnmarshalJSON(data []byte) error
UnmarshalJSON implements stdjson.Unmarshaler.
func (*ProjectResult) Validate ¶
func (s *ProjectResult) Validate() error
type ProjectResultClientSide ¶
type ProjectResultClientSide string
The client side support of the project.
const ( ProjectResultClientSideRequired ProjectResultClientSide = "required" ProjectResultClientSideOptional ProjectResultClientSide = "optional" ProjectResultClientSideUnsupported ProjectResultClientSide = "unsupported" ProjectResultClientSideUnknown ProjectResultClientSide = "unknown" )
func (ProjectResultClientSide) AllValues ¶
func (ProjectResultClientSide) AllValues() []ProjectResultClientSide
AllValues returns all ProjectResultClientSide values.
func (*ProjectResultClientSide) Decode ¶
func (s *ProjectResultClientSide) Decode(d *jx.Decoder) error
Decode decodes ProjectResultClientSide from json.
func (ProjectResultClientSide) Encode ¶
func (s ProjectResultClientSide) Encode(e *jx.Encoder)
Encode encodes ProjectResultClientSide as json.
func (ProjectResultClientSide) MarshalJSON ¶
func (s ProjectResultClientSide) MarshalJSON() ([]byte, error)
MarshalJSON implements stdjson.Marshaler.
func (ProjectResultClientSide) MarshalText ¶
func (s ProjectResultClientSide) MarshalText() ([]byte, error)
MarshalText implements encoding.TextMarshaler.
func (*ProjectResultClientSide) UnmarshalJSON ¶
func (s *ProjectResultClientSide) UnmarshalJSON(data []byte) error
UnmarshalJSON implements stdjson.Unmarshaler.
func (*ProjectResultClientSide) UnmarshalText ¶
func (s *ProjectResultClientSide) UnmarshalText(data []byte) error
UnmarshalText implements encoding.TextUnmarshaler.
func (ProjectResultClientSide) Validate ¶
func (s ProjectResultClientSide) Validate() error
type ProjectResultMonetizationStatus ¶
type ProjectResultMonetizationStatus string
const ( ProjectResultMonetizationStatusMonetized ProjectResultMonetizationStatus = "monetized" ProjectResultMonetizationStatusDemonetized ProjectResultMonetizationStatus = "demonetized" ProjectResultMonetizationStatusForceDemonetized ProjectResultMonetizationStatus = "force-demonetized" )
func (ProjectResultMonetizationStatus) AllValues ¶
func (ProjectResultMonetizationStatus) AllValues() []ProjectResultMonetizationStatus
AllValues returns all ProjectResultMonetizationStatus values.
func (*ProjectResultMonetizationStatus) Decode ¶
func (s *ProjectResultMonetizationStatus) Decode(d *jx.Decoder) error
Decode decodes ProjectResultMonetizationStatus from json.
func (ProjectResultMonetizationStatus) Encode ¶
func (s ProjectResultMonetizationStatus) Encode(e *jx.Encoder)
Encode encodes ProjectResultMonetizationStatus as json.
func (ProjectResultMonetizationStatus) MarshalJSON ¶
func (s ProjectResultMonetizationStatus) MarshalJSON() ([]byte, error)
MarshalJSON implements stdjson.Marshaler.
func (ProjectResultMonetizationStatus) MarshalText ¶
func (s ProjectResultMonetizationStatus) MarshalText() ([]byte, error)
MarshalText implements encoding.TextMarshaler.
func (*ProjectResultMonetizationStatus) UnmarshalJSON ¶
func (s *ProjectResultMonetizationStatus) UnmarshalJSON(data []byte) error
UnmarshalJSON implements stdjson.Unmarshaler.
func (*ProjectResultMonetizationStatus) UnmarshalText ¶
func (s *ProjectResultMonetizationStatus) UnmarshalText(data []byte) error
UnmarshalText implements encoding.TextUnmarshaler.
func (ProjectResultMonetizationStatus) Validate ¶
func (s ProjectResultMonetizationStatus) Validate() error
type ProjectResultProjectType ¶
type ProjectResultProjectType string
The project type of the project.
const ( ProjectResultProjectTypeMod ProjectResultProjectType = "mod" ProjectResultProjectTypeModpack ProjectResultProjectType = "modpack" ProjectResultProjectTypeResourcepack ProjectResultProjectType = "resourcepack" ProjectResultProjectTypeShader ProjectResultProjectType = "shader" )
func (ProjectResultProjectType) AllValues ¶
func (ProjectResultProjectType) AllValues() []ProjectResultProjectType
AllValues returns all ProjectResultProjectType values.
func (*ProjectResultProjectType) Decode ¶
func (s *ProjectResultProjectType) Decode(d *jx.Decoder) error
Decode decodes ProjectResultProjectType from json.
func (ProjectResultProjectType) Encode ¶
func (s ProjectResultProjectType) Encode(e *jx.Encoder)
Encode encodes ProjectResultProjectType as json.
func (ProjectResultProjectType) MarshalJSON ¶
func (s ProjectResultProjectType) MarshalJSON() ([]byte, error)
MarshalJSON implements stdjson.Marshaler.
func (ProjectResultProjectType) MarshalText ¶
func (s ProjectResultProjectType) MarshalText() ([]byte, error)
MarshalText implements encoding.TextMarshaler.
func (*ProjectResultProjectType) UnmarshalJSON ¶
func (s *ProjectResultProjectType) UnmarshalJSON(data []byte) error
UnmarshalJSON implements stdjson.Unmarshaler.
func (*ProjectResultProjectType) UnmarshalText ¶
func (s *ProjectResultProjectType) UnmarshalText(data []byte) error
UnmarshalText implements encoding.TextUnmarshaler.
func (ProjectResultProjectType) Validate ¶
func (s ProjectResultProjectType) Validate() error
type ProjectResultServerSide ¶
type ProjectResultServerSide string
The server side support of the project.
const ( ProjectResultServerSideRequired ProjectResultServerSide = "required" ProjectResultServerSideOptional ProjectResultServerSide = "optional" ProjectResultServerSideUnsupported ProjectResultServerSide = "unsupported" ProjectResultServerSideUnknown ProjectResultServerSide = "unknown" )
func (ProjectResultServerSide) AllValues ¶
func (ProjectResultServerSide) AllValues() []ProjectResultServerSide
AllValues returns all ProjectResultServerSide values.
func (*ProjectResultServerSide) Decode ¶
func (s *ProjectResultServerSide) Decode(d *jx.Decoder) error
Decode decodes ProjectResultServerSide from json.
func (ProjectResultServerSide) Encode ¶
func (s ProjectResultServerSide) Encode(e *jx.Encoder)
Encode encodes ProjectResultServerSide as json.
func (ProjectResultServerSide) MarshalJSON ¶
func (s ProjectResultServerSide) MarshalJSON() ([]byte, error)
MarshalJSON implements stdjson.Marshaler.
func (ProjectResultServerSide) MarshalText ¶
func (s ProjectResultServerSide) MarshalText() ([]byte, error)
MarshalText implements encoding.TextMarshaler.
func (*ProjectResultServerSide) UnmarshalJSON ¶
func (s *ProjectResultServerSide) UnmarshalJSON(data []byte) error
UnmarshalJSON implements stdjson.Unmarshaler.
func (*ProjectResultServerSide) UnmarshalText ¶
func (s *ProjectResultServerSide) UnmarshalText(data []byte) error
UnmarshalText implements encoding.TextUnmarshaler.
func (ProjectResultServerSide) Validate ¶
func (s ProjectResultServerSide) Validate() error
type ProjectServerSide ¶
type ProjectServerSide string
Merged schema.
const ( ProjectServerSideRequired ProjectServerSide = "required" ProjectServerSideOptional ProjectServerSide = "optional" ProjectServerSideUnsupported ProjectServerSide = "unsupported" ProjectServerSideUnknown ProjectServerSide = "unknown" )
func (ProjectServerSide) AllValues ¶
func (ProjectServerSide) AllValues() []ProjectServerSide
AllValues returns all ProjectServerSide values.
func (*ProjectServerSide) Decode ¶
func (s *ProjectServerSide) Decode(d *jx.Decoder) error
Decode decodes ProjectServerSide from json.
func (ProjectServerSide) Encode ¶
func (s ProjectServerSide) Encode(e *jx.Encoder)
Encode encodes ProjectServerSide as json.
func (ProjectServerSide) MarshalJSON ¶
func (s ProjectServerSide) MarshalJSON() ([]byte, error)
MarshalJSON implements stdjson.Marshaler.
func (ProjectServerSide) MarshalText ¶
func (s ProjectServerSide) MarshalText() ([]byte, error)
MarshalText implements encoding.TextMarshaler.
func (*ProjectServerSide) UnmarshalJSON ¶
func (s *ProjectServerSide) UnmarshalJSON(data []byte) error
UnmarshalJSON implements stdjson.Unmarshaler.
func (*ProjectServerSide) UnmarshalText ¶
func (s *ProjectServerSide) UnmarshalText(data []byte) error
UnmarshalText implements encoding.TextUnmarshaler.
func (ProjectServerSide) Validate ¶
func (s ProjectServerSide) Validate() error
type ProjectStatus ¶
type ProjectStatus string
The status of the project.
const ( ProjectStatusApproved ProjectStatus = "approved" ProjectStatusArchived ProjectStatus = "archived" ProjectStatusRejected ProjectStatus = "rejected" ProjectStatusDraft ProjectStatus = "draft" ProjectStatusUnlisted ProjectStatus = "unlisted" ProjectStatusProcessing ProjectStatus = "processing" ProjectStatusWithheld ProjectStatus = "withheld" ProjectStatusScheduled ProjectStatus = "scheduled" ProjectStatusPrivate ProjectStatus = "private" ProjectStatusUnknown ProjectStatus = "unknown" )
func (ProjectStatus) AllValues ¶
func (ProjectStatus) AllValues() []ProjectStatus
AllValues returns all ProjectStatus values.
func (*ProjectStatus) Decode ¶
func (s *ProjectStatus) Decode(d *jx.Decoder) error
Decode decodes ProjectStatus from json.
func (ProjectStatus) Encode ¶
func (s ProjectStatus) Encode(e *jx.Encoder)
Encode encodes ProjectStatus as json.
func (ProjectStatus) MarshalJSON ¶
func (s ProjectStatus) MarshalJSON() ([]byte, error)
MarshalJSON implements stdjson.Marshaler.
func (ProjectStatus) MarshalText ¶
func (s ProjectStatus) MarshalText() ([]byte, error)
MarshalText implements encoding.TextMarshaler.
func (*ProjectStatus) UnmarshalJSON ¶
func (s *ProjectStatus) UnmarshalJSON(data []byte) error
UnmarshalJSON implements stdjson.Unmarshaler.
func (*ProjectStatus) UnmarshalText ¶
func (s *ProjectStatus) UnmarshalText(data []byte) error
UnmarshalText implements encoding.TextUnmarshaler.
func (ProjectStatus) Validate ¶
func (s ProjectStatus) Validate() error
type RandomProjectsOKApplicationJSON ¶
type RandomProjectsOKApplicationJSON []Project
func (*RandomProjectsOKApplicationJSON) Decode ¶
func (s *RandomProjectsOKApplicationJSON) Decode(d *jx.Decoder) error
Decode decodes RandomProjectsOKApplicationJSON from json.
func (RandomProjectsOKApplicationJSON) Encode ¶
func (s RandomProjectsOKApplicationJSON) Encode(e *jx.Encoder)
Encode encodes RandomProjectsOKApplicationJSON as json.
func (RandomProjectsOKApplicationJSON) MarshalJSON ¶
func (s RandomProjectsOKApplicationJSON) MarshalJSON() ([]byte, error)
MarshalJSON implements stdjson.Marshaler.
func (*RandomProjectsOKApplicationJSON) UnmarshalJSON ¶
func (s *RandomProjectsOKApplicationJSON) UnmarshalJSON(data []byte) error
UnmarshalJSON implements stdjson.Unmarshaler.
func (RandomProjectsOKApplicationJSON) Validate ¶
func (s RandomProjectsOKApplicationJSON) Validate() error
type RandomProjectsParams ¶
type RandomProjectsParams struct {
// The number of random projects to return.
Count int
}
RandomProjectsParams is parameters of randomProjects operation.
type RandomProjectsRes ¶
type RandomProjectsRes interface {
// contains filtered or unexported methods
}
type ReadNotificationNoContent ¶
type ReadNotificationNoContent struct{}
ReadNotificationNoContent is response for ReadNotification operation.
type ReadNotificationNotFound ¶
type ReadNotificationNotFound struct{}
ReadNotificationNotFound is response for ReadNotification operation.
type ReadNotificationParams ¶
type ReadNotificationParams struct {
// The ID of the notification.
ID string
}
ReadNotificationParams is parameters of readNotification operation.
type ReadNotificationRes ¶
type ReadNotificationRes interface {
// contains filtered or unexported methods
}
type ReadNotificationsNoContent ¶
type ReadNotificationsNoContent struct{}
ReadNotificationsNoContent is response for ReadNotifications operation.
type ReadNotificationsNotFound ¶
type ReadNotificationsNotFound struct{}
ReadNotificationsNotFound is response for ReadNotifications operation.
type ReadNotificationsParams ¶
type ReadNotificationsParams struct {
// The IDs of the notifications.
Ids string
}
ReadNotificationsParams is parameters of readNotifications operation.
type ReadNotificationsRes ¶
type ReadNotificationsRes interface {
// contains filtered or unexported methods
}
type Report ¶
type Report struct {
// The type of the report being sent.
ReportType string `json:"report_type"`
// The ID of the item (project, version, or user) being reported.
ItemID string `json:"item_id"`
// The type of the item being reported.
ItemType ReportItemType `json:"item_type"`
// The extended explanation of the report.
Body string `json:"body"`
// The ID of the report.
ID OptString `json:"id"`
// The ID of the user who reported the item.
Reporter string `json:"reporter"`
// The time at which the report was created.
Created string `json:"created"`
// Whether the report is resolved.
Closed bool `json:"closed"`
// The ID of the moderation thread associated with this report.
ThreadID string `json:"thread_id"`
}
Merged schema. Ref: #/components/schemas/Report
func (*Report) GetCreated ¶
GetCreated returns the value of Created.
func (*Report) GetItemType ¶
func (s *Report) GetItemType() ReportItemType
GetItemType returns the value of ItemType.
func (*Report) GetReportType ¶
GetReportType returns the value of ReportType.
func (*Report) GetReporter ¶
GetReporter returns the value of Reporter.
func (*Report) GetThreadID ¶
GetThreadID returns the value of ThreadID.
func (*Report) MarshalJSON ¶
MarshalJSON implements stdjson.Marshaler.
func (*Report) SetCreated ¶
SetCreated sets the value of Created.
func (*Report) SetItemType ¶
func (s *Report) SetItemType(val ReportItemType)
SetItemType sets the value of ItemType.
func (*Report) SetReportType ¶
SetReportType sets the value of ReportType.
func (*Report) SetReporter ¶
SetReporter sets the value of Reporter.
func (*Report) SetThreadID ¶
SetThreadID sets the value of ThreadID.
func (*Report) UnmarshalJSON ¶
UnmarshalJSON implements stdjson.Unmarshaler.
type ReportItemType ¶
type ReportItemType string
The type of the item being reported.
const ( ReportItemTypeProject ReportItemType = "project" ReportItemTypeUser ReportItemType = "user" ReportItemTypeVersion ReportItemType = "version" )
func (ReportItemType) AllValues ¶
func (ReportItemType) AllValues() []ReportItemType
AllValues returns all ReportItemType values.
func (*ReportItemType) Decode ¶
func (s *ReportItemType) Decode(d *jx.Decoder) error
Decode decodes ReportItemType from json.
func (ReportItemType) Encode ¶
func (s ReportItemType) Encode(e *jx.Encoder)
Encode encodes ReportItemType as json.
func (ReportItemType) MarshalJSON ¶
func (s ReportItemType) MarshalJSON() ([]byte, error)
MarshalJSON implements stdjson.Marshaler.
func (ReportItemType) MarshalText ¶
func (s ReportItemType) MarshalText() ([]byte, error)
MarshalText implements encoding.TextMarshaler.
func (*ReportItemType) UnmarshalJSON ¶
func (s *ReportItemType) UnmarshalJSON(data []byte) error
UnmarshalJSON implements stdjson.Unmarshaler.
func (*ReportItemType) UnmarshalText ¶
func (s *ReportItemType) UnmarshalText(data []byte) error
UnmarshalText implements encoding.TextUnmarshaler.
func (ReportItemType) Validate ¶
func (s ReportItemType) Validate() error
type Schedule ¶
type Schedule struct {
Time string `json:"time"`
// The requested status when scheduling the project for release.
RequestedStatus ScheduleRequestedStatus `json:"requested_status"`
}
Ref: #/components/schemas/Schedule
func (*Schedule) GetRequestedStatus ¶
func (s *Schedule) GetRequestedStatus() ScheduleRequestedStatus
GetRequestedStatus returns the value of RequestedStatus.
func (*Schedule) MarshalJSON ¶
MarshalJSON implements stdjson.Marshaler.
func (*Schedule) SetRequestedStatus ¶
func (s *Schedule) SetRequestedStatus(val ScheduleRequestedStatus)
SetRequestedStatus sets the value of RequestedStatus.
func (*Schedule) UnmarshalJSON ¶
UnmarshalJSON implements stdjson.Unmarshaler.
type ScheduleProjectNoContent ¶
type ScheduleProjectNoContent struct{}
ScheduleProjectNoContent is response for ScheduleProject operation.
type ScheduleProjectParams ¶
type ScheduleProjectParams struct {
// The ID or slug of the project.
IDSlug string
}
ScheduleProjectParams is parameters of scheduleProject operation.
type ScheduleProjectRes ¶
type ScheduleProjectRes interface {
// contains filtered or unexported methods
}
type ScheduleRequestedStatus ¶
type ScheduleRequestedStatus string
The requested status when scheduling the project for release.
const ( ScheduleRequestedStatusApproved ScheduleRequestedStatus = "approved" ScheduleRequestedStatusArchived ScheduleRequestedStatus = "archived" ScheduleRequestedStatusUnlisted ScheduleRequestedStatus = "unlisted" ScheduleRequestedStatusPrivate ScheduleRequestedStatus = "private" ScheduleRequestedStatusDraft ScheduleRequestedStatus = "draft" )
func (ScheduleRequestedStatus) AllValues ¶
func (ScheduleRequestedStatus) AllValues() []ScheduleRequestedStatus
AllValues returns all ScheduleRequestedStatus values.
func (*ScheduleRequestedStatus) Decode ¶
func (s *ScheduleRequestedStatus) Decode(d *jx.Decoder) error
Decode decodes ScheduleRequestedStatus from json.
func (ScheduleRequestedStatus) Encode ¶
func (s ScheduleRequestedStatus) Encode(e *jx.Encoder)
Encode encodes ScheduleRequestedStatus as json.
func (ScheduleRequestedStatus) MarshalJSON ¶
func (s ScheduleRequestedStatus) MarshalJSON() ([]byte, error)
MarshalJSON implements stdjson.Marshaler.
func (ScheduleRequestedStatus) MarshalText ¶
func (s ScheduleRequestedStatus) MarshalText() ([]byte, error)
MarshalText implements encoding.TextMarshaler.
func (*ScheduleRequestedStatus) UnmarshalJSON ¶
func (s *ScheduleRequestedStatus) UnmarshalJSON(data []byte) error
UnmarshalJSON implements stdjson.Unmarshaler.
func (*ScheduleRequestedStatus) UnmarshalText ¶
func (s *ScheduleRequestedStatus) UnmarshalText(data []byte) error
UnmarshalText implements encoding.TextUnmarshaler.
func (ScheduleRequestedStatus) Validate ¶
func (s ScheduleRequestedStatus) Validate() error
type ScheduleVersionNoContent ¶
type ScheduleVersionNoContent struct{}
ScheduleVersionNoContent is response for ScheduleVersion operation.
type ScheduleVersionParams ¶
type ScheduleVersionParams struct {
// The ID of the version.
ID string
}
ScheduleVersionParams is parameters of scheduleVersion operation.
type ScheduleVersionRes ¶
type ScheduleVersionRes interface {
// contains filtered or unexported methods
}
type SearchProjectsIndex ¶
type SearchProjectsIndex string
const ( SearchProjectsIndexRelevance SearchProjectsIndex = "relevance" SearchProjectsIndexDownloads SearchProjectsIndex = "downloads" SearchProjectsIndexFollows SearchProjectsIndex = "follows" SearchProjectsIndexNewest SearchProjectsIndex = "newest" SearchProjectsIndexUpdated SearchProjectsIndex = "updated" )
func (SearchProjectsIndex) AllValues ¶
func (SearchProjectsIndex) AllValues() []SearchProjectsIndex
AllValues returns all SearchProjectsIndex values.
func (SearchProjectsIndex) MarshalText ¶
func (s SearchProjectsIndex) MarshalText() ([]byte, error)
MarshalText implements encoding.TextMarshaler.
func (*SearchProjectsIndex) UnmarshalText ¶
func (s *SearchProjectsIndex) UnmarshalText(data []byte) error
UnmarshalText implements encoding.TextUnmarshaler.
func (SearchProjectsIndex) Validate ¶
func (s SearchProjectsIndex) Validate() error
type SearchProjectsParams ¶
type SearchProjectsParams struct {
// The query to search for.
Query OptString
// Facets are an essential concept for understanding how to filter out results.
// These are the most commonly used facet types:
// - `project_type`
// - `categories` (loaders are lumped in with categories in search)
// - `versions`
// - `client_side`
// - `server_side`
// - `open_source`
// Several others are also available for use, though these should not be used outside very specific
// use cases.
// - `title`
// - `author`
// - `follows`
// - `project_id`
// - `license`
// - `downloads`
// - `color`
// - `created_timestamp`
// - `modified_timestamp`
// In order to then use these facets, you need a value to filter by, as well as an operation to
// perform on this value.
// The most common operation is `:` (same as `=`), though you can also use `!=`, `>=`, `>`, `<=`, and
// `<`.
// Join together the type, operation, and value, and you've got your string.
// “`
// {type} {operation} {value}
// “`
// Examples:
// “`
// categories = adventure
// versions != 1.20.1
// downloads <= 100
// “`
// You then join these strings together in arrays to signal `AND` and `OR` operators.
// ##### OR
// All elements in a single array are considered to be joined by OR statements.
// For example, the search `[["versions:1.16.5", "versions:1.17.1"]]` translates to `Projects that
// support 1.16.5 OR 1.17.1`.
// ##### AND
// Separate arrays are considered to be joined by AND statements.
// For example, the search `[["versions:1.16.5"], ["project_type:modpack"]]` translates to `Projects
// that support 1.16.5 AND are modpacks`.
Facets OptString
// The sorting method used for sorting search results.
Index OptSearchProjectsIndex
// The offset into the search. Skips this number of results.
Offset OptInt
// The number of results returned by the search.
Limit OptInt
}
SearchProjectsParams is parameters of searchProjects operation.
type SearchProjectsRes ¶
type SearchProjectsRes interface {
// contains filtered or unexported methods
}
type SearchResults ¶
type SearchResults struct {
// The list of results.
Hits []ProjectResult `json:"hits"`
// The number of results that were skipped by the query.
Offset int `json:"offset"`
// The number of results that were returned by the query.
Limit int `json:"limit"`
// The total number of results that match the query.
TotalHits int `json:"total_hits"`
}
Ref: #/components/schemas/SearchResults
func (*SearchResults) Decode ¶
func (s *SearchResults) Decode(d *jx.Decoder) error
Decode decodes SearchResults from json.
func (*SearchResults) Encode ¶
func (s *SearchResults) Encode(e *jx.Encoder)
Encode implements json.Marshaler.
func (*SearchResults) GetHits ¶
func (s *SearchResults) GetHits() []ProjectResult
GetHits returns the value of Hits.
func (*SearchResults) GetLimit ¶
func (s *SearchResults) GetLimit() int
GetLimit returns the value of Limit.
func (*SearchResults) GetOffset ¶
func (s *SearchResults) GetOffset() int
GetOffset returns the value of Offset.
func (*SearchResults) GetTotalHits ¶
func (s *SearchResults) GetTotalHits() int
GetTotalHits returns the value of TotalHits.
func (*SearchResults) MarshalJSON ¶
func (s *SearchResults) MarshalJSON() ([]byte, error)
MarshalJSON implements stdjson.Marshaler.
func (*SearchResults) SetHits ¶
func (s *SearchResults) SetHits(val []ProjectResult)
SetHits sets the value of Hits.
func (*SearchResults) SetLimit ¶
func (s *SearchResults) SetLimit(val int)
SetLimit sets the value of Limit.
func (*SearchResults) SetOffset ¶
func (s *SearchResults) SetOffset(val int)
SetOffset sets the value of Offset.
func (*SearchResults) SetTotalHits ¶
func (s *SearchResults) SetTotalHits(val int)
SetTotalHits sets the value of TotalHits.
func (*SearchResults) UnmarshalJSON ¶
func (s *SearchResults) UnmarshalJSON(data []byte) error
UnmarshalJSON implements stdjson.Unmarshaler.
func (*SearchResults) Validate ¶
func (s *SearchResults) Validate() error
type SecuritySource ¶
type SecuritySource interface {
// TokenAuth provides TokenAuth security value.
TokenAuth(ctx context.Context, operationName OperationName) (TokenAuth, error)
}
SecuritySource is provider of security values (tokens, passwords, etc.).
type SendThreadMessageNotFound ¶
type SendThreadMessageNotFound struct{}
SendThreadMessageNotFound is response for SendThreadMessage operation.
type SendThreadMessageParams ¶
type SendThreadMessageParams struct {
// The ID of the thread.
ID string
}
SendThreadMessageParams is parameters of sendThreadMessage operation.
type SendThreadMessageRes ¶
type SendThreadMessageRes interface {
// contains filtered or unexported methods
}
type Statistics ¶
type Statistics struct {
// Number of projects on Modrinth.
Projects OptInt `json:"projects"`
// Number of versions on Modrinth.
Versions OptInt `json:"versions"`
// Number of version files on Modrinth.
Files OptInt `json:"files"`
// Number of authors (users with projects) on Modrinth.
Authors OptInt `json:"authors"`
}
Ref: #/components/schemas/Statistics
func (*Statistics) Decode ¶
func (s *Statistics) Decode(d *jx.Decoder) error
Decode decodes Statistics from json.
func (*Statistics) Encode ¶
func (s *Statistics) Encode(e *jx.Encoder)
Encode implements json.Marshaler.
func (*Statistics) GetAuthors ¶
func (s *Statistics) GetAuthors() OptInt
GetAuthors returns the value of Authors.
func (*Statistics) GetFiles ¶
func (s *Statistics) GetFiles() OptInt
GetFiles returns the value of Files.
func (*Statistics) GetProjects ¶
func (s *Statistics) GetProjects() OptInt
GetProjects returns the value of Projects.
func (*Statistics) GetVersions ¶
func (s *Statistics) GetVersions() OptInt
GetVersions returns the value of Versions.
func (*Statistics) MarshalJSON ¶
func (s *Statistics) MarshalJSON() ([]byte, error)
MarshalJSON implements stdjson.Marshaler.
func (*Statistics) SetAuthors ¶
func (s *Statistics) SetAuthors(val OptInt)
SetAuthors sets the value of Authors.
func (*Statistics) SetFiles ¶
func (s *Statistics) SetFiles(val OptInt)
SetFiles sets the value of Files.
func (*Statistics) SetProjects ¶
func (s *Statistics) SetProjects(val OptInt)
SetProjects sets the value of Projects.
func (*Statistics) SetVersions ¶
func (s *Statistics) SetVersions(val OptInt)
SetVersions sets the value of Versions.
func (*Statistics) UnmarshalJSON ¶
func (s *Statistics) UnmarshalJSON(data []byte) error
UnmarshalJSON implements stdjson.Unmarshaler.
type SubmitReportRes ¶
type SubmitReportRes interface {
// contains filtered or unexported methods
}
type TeamMember ¶
type TeamMember struct {
// The ID of the team this team member is a member of.
TeamID string `json:"team_id"`
User User `json:"user"`
// The user's role on the team.
Role string `json:"role"`
// The user's permissions in bitfield format (requires authorization to view)
// In order from first to tenth bit, the bits are:
// - UPLOAD_VERSION
// - DELETE_VERSION
// - EDIT_DETAILS
// - EDIT_BODY
// - MANAGE_INVITES
// - REMOVE_MEMBER
// - EDIT_MEMBER
// - DELETE_PROJECT
// - VIEW_ANALYTICS
// - VIEW_PAYOUTS.
Permissions OptInt `json:"permissions"`
// Whether or not the user has accepted to be on the team (requires authorization to view).
Accepted bool `json:"accepted"`
// The split of payouts going to this user. The proportion of payouts they get is their split divided
// by the sum of the splits of all members.
PayoutsSplit OptInt `json:"payouts_split"`
// The order of the team member.
Ordering OptInt `json:"ordering"`
}
Ref: #/components/schemas/TeamMember
func (*TeamMember) Decode ¶
func (s *TeamMember) Decode(d *jx.Decoder) error
Decode decodes TeamMember from json.
func (*TeamMember) Encode ¶
func (s *TeamMember) Encode(e *jx.Encoder)
Encode implements json.Marshaler.
func (*TeamMember) GetAccepted ¶
func (s *TeamMember) GetAccepted() bool
GetAccepted returns the value of Accepted.
func (*TeamMember) GetOrdering ¶
func (s *TeamMember) GetOrdering() OptInt
GetOrdering returns the value of Ordering.
func (*TeamMember) GetPayoutsSplit ¶
func (s *TeamMember) GetPayoutsSplit() OptInt
GetPayoutsSplit returns the value of PayoutsSplit.
func (*TeamMember) GetPermissions ¶
func (s *TeamMember) GetPermissions() OptInt
GetPermissions returns the value of Permissions.
func (*TeamMember) GetRole ¶
func (s *TeamMember) GetRole() string
GetRole returns the value of Role.
func (*TeamMember) GetTeamID ¶
func (s *TeamMember) GetTeamID() string
GetTeamID returns the value of TeamID.
func (*TeamMember) MarshalJSON ¶
func (s *TeamMember) MarshalJSON() ([]byte, error)
MarshalJSON implements stdjson.Marshaler.
func (*TeamMember) SetAccepted ¶
func (s *TeamMember) SetAccepted(val bool)
SetAccepted sets the value of Accepted.
func (*TeamMember) SetOrdering ¶
func (s *TeamMember) SetOrdering(val OptInt)
SetOrdering sets the value of Ordering.
func (*TeamMember) SetPayoutsSplit ¶
func (s *TeamMember) SetPayoutsSplit(val OptInt)
SetPayoutsSplit sets the value of PayoutsSplit.
func (*TeamMember) SetPermissions ¶
func (s *TeamMember) SetPermissions(val OptInt)
SetPermissions sets the value of Permissions.
func (*TeamMember) SetRole ¶
func (s *TeamMember) SetRole(val string)
SetRole sets the value of Role.
func (*TeamMember) SetTeamID ¶
func (s *TeamMember) SetTeamID(val string)
SetTeamID sets the value of TeamID.
func (*TeamMember) UnmarshalJSON ¶
func (s *TeamMember) UnmarshalJSON(data []byte) error
UnmarshalJSON implements stdjson.Unmarshaler.
func (*TeamMember) Validate ¶
func (s *TeamMember) Validate() error
type Thread ¶
type Thread struct {
// The ID of the thread.
ID string `json:"id"`
Type ThreadType `json:"type"`
// The ID of the associated project if a project thread.
ProjectID OptNilString `json:"project_id"`
// The ID of the associated report if a report thread.
ReportID OptNilString `json:"report_id"`
Messages []ThreadMessage `json:"messages"`
Members []User `json:"members"`
}
Ref: #/components/schemas/Thread
func (*Thread) GetMembers ¶
GetMembers returns the value of Members.
func (*Thread) GetMessages ¶
func (s *Thread) GetMessages() []ThreadMessage
GetMessages returns the value of Messages.
func (*Thread) GetProjectID ¶
func (s *Thread) GetProjectID() OptNilString
GetProjectID returns the value of ProjectID.
func (*Thread) GetReportID ¶
func (s *Thread) GetReportID() OptNilString
GetReportID returns the value of ReportID.
func (*Thread) MarshalJSON ¶
MarshalJSON implements stdjson.Marshaler.
func (*Thread) SetMembers ¶
SetMembers sets the value of Members.
func (*Thread) SetMessages ¶
func (s *Thread) SetMessages(val []ThreadMessage)
SetMessages sets the value of Messages.
func (*Thread) SetProjectID ¶
func (s *Thread) SetProjectID(val OptNilString)
SetProjectID sets the value of ProjectID.
func (*Thread) SetReportID ¶
func (s *Thread) SetReportID(val OptNilString)
SetReportID sets the value of ReportID.
func (*Thread) UnmarshalJSON ¶
UnmarshalJSON implements stdjson.Unmarshaler.
type ThreadMessage ¶
type ThreadMessage struct {
// The ID of the message itself.
ID string `json:"id"`
// The ID of the author.
AuthorID OptNilString `json:"author_id"`
Body ThreadMessageBody `json:"body"`
// The time at which the message was created.
Created string `json:"created"`
}
Ref: #/components/schemas/ThreadMessage
func (*ThreadMessage) Decode ¶
func (s *ThreadMessage) Decode(d *jx.Decoder) error
Decode decodes ThreadMessage from json.
func (*ThreadMessage) Encode ¶
func (s *ThreadMessage) Encode(e *jx.Encoder)
Encode implements json.Marshaler.
func (*ThreadMessage) GetAuthorID ¶
func (s *ThreadMessage) GetAuthorID() OptNilString
GetAuthorID returns the value of AuthorID.
func (*ThreadMessage) GetBody ¶
func (s *ThreadMessage) GetBody() ThreadMessageBody
GetBody returns the value of Body.
func (*ThreadMessage) GetCreated ¶
func (s *ThreadMessage) GetCreated() string
GetCreated returns the value of Created.
func (*ThreadMessage) MarshalJSON ¶
func (s *ThreadMessage) MarshalJSON() ([]byte, error)
MarshalJSON implements stdjson.Marshaler.
func (*ThreadMessage) SetAuthorID ¶
func (s *ThreadMessage) SetAuthorID(val OptNilString)
SetAuthorID sets the value of AuthorID.
func (*ThreadMessage) SetBody ¶
func (s *ThreadMessage) SetBody(val ThreadMessageBody)
SetBody sets the value of Body.
func (*ThreadMessage) SetCreated ¶
func (s *ThreadMessage) SetCreated(val string)
SetCreated sets the value of Created.
func (*ThreadMessage) UnmarshalJSON ¶
func (s *ThreadMessage) UnmarshalJSON(data []byte) error
UnmarshalJSON implements stdjson.Unmarshaler.
func (*ThreadMessage) Validate ¶
func (s *ThreadMessage) Validate() error
type ThreadMessageBody ¶
type ThreadMessageBody struct {
// The type of message.
Type ThreadMessageBodyType `json:"type"`
// The actual message text. **Only present for `text` message type**.
Body OptString `json:"body"`
// Whether the message is only visible to moderators. **Only present for `text` message type**.
Private OptBool `json:"private"`
// The ID of the message being replied to by this message. **Only present for `text` message type**.
ReplyingTo OptNilString `json:"replying_to"`
// The old status of the project. **Only present for `status_change` message type**.
OldStatus OptThreadMessageBodyOldStatus `json:"old_status"`
// The new status of the project. **Only present for `status_change` message type**.
NewStatus OptThreadMessageBodyNewStatus `json:"new_status"`
}
The contents of the message. **Fields will vary depending on message type.**. Ref: #/components/schemas/ThreadMessageBody
func (*ThreadMessageBody) Decode ¶
func (s *ThreadMessageBody) Decode(d *jx.Decoder) error
Decode decodes ThreadMessageBody from json.
func (*ThreadMessageBody) Encode ¶
func (s *ThreadMessageBody) Encode(e *jx.Encoder)
Encode implements json.Marshaler.
func (*ThreadMessageBody) GetBody ¶
func (s *ThreadMessageBody) GetBody() OptString
GetBody returns the value of Body.
func (*ThreadMessageBody) GetNewStatus ¶
func (s *ThreadMessageBody) GetNewStatus() OptThreadMessageBodyNewStatus
GetNewStatus returns the value of NewStatus.
func (*ThreadMessageBody) GetOldStatus ¶
func (s *ThreadMessageBody) GetOldStatus() OptThreadMessageBodyOldStatus
GetOldStatus returns the value of OldStatus.
func (*ThreadMessageBody) GetPrivate ¶
func (s *ThreadMessageBody) GetPrivate() OptBool
GetPrivate returns the value of Private.
func (*ThreadMessageBody) GetReplyingTo ¶
func (s *ThreadMessageBody) GetReplyingTo() OptNilString
GetReplyingTo returns the value of ReplyingTo.
func (*ThreadMessageBody) GetType ¶
func (s *ThreadMessageBody) GetType() ThreadMessageBodyType
GetType returns the value of Type.
func (*ThreadMessageBody) MarshalJSON ¶
func (s *ThreadMessageBody) MarshalJSON() ([]byte, error)
MarshalJSON implements stdjson.Marshaler.
func (*ThreadMessageBody) SetBody ¶
func (s *ThreadMessageBody) SetBody(val OptString)
SetBody sets the value of Body.
func (*ThreadMessageBody) SetNewStatus ¶
func (s *ThreadMessageBody) SetNewStatus(val OptThreadMessageBodyNewStatus)
SetNewStatus sets the value of NewStatus.
func (*ThreadMessageBody) SetOldStatus ¶
func (s *ThreadMessageBody) SetOldStatus(val OptThreadMessageBodyOldStatus)
SetOldStatus sets the value of OldStatus.
func (*ThreadMessageBody) SetPrivate ¶
func (s *ThreadMessageBody) SetPrivate(val OptBool)
SetPrivate sets the value of Private.
func (*ThreadMessageBody) SetReplyingTo ¶
func (s *ThreadMessageBody) SetReplyingTo(val OptNilString)
SetReplyingTo sets the value of ReplyingTo.
func (*ThreadMessageBody) SetType ¶
func (s *ThreadMessageBody) SetType(val ThreadMessageBodyType)
SetType sets the value of Type.
func (*ThreadMessageBody) UnmarshalJSON ¶
func (s *ThreadMessageBody) UnmarshalJSON(data []byte) error
UnmarshalJSON implements stdjson.Unmarshaler.
func (*ThreadMessageBody) Validate ¶
func (s *ThreadMessageBody) Validate() error
type ThreadMessageBodyNewStatus ¶
type ThreadMessageBodyNewStatus string
The new status of the project. **Only present for `status_change` message type**.
const ( ThreadMessageBodyNewStatusApproved ThreadMessageBodyNewStatus = "approved" ThreadMessageBodyNewStatusArchived ThreadMessageBodyNewStatus = "archived" ThreadMessageBodyNewStatusRejected ThreadMessageBodyNewStatus = "rejected" ThreadMessageBodyNewStatusDraft ThreadMessageBodyNewStatus = "draft" ThreadMessageBodyNewStatusUnlisted ThreadMessageBodyNewStatus = "unlisted" ThreadMessageBodyNewStatusProcessing ThreadMessageBodyNewStatus = "processing" ThreadMessageBodyNewStatusWithheld ThreadMessageBodyNewStatus = "withheld" ThreadMessageBodyNewStatusScheduled ThreadMessageBodyNewStatus = "scheduled" ThreadMessageBodyNewStatusPrivate ThreadMessageBodyNewStatus = "private" ThreadMessageBodyNewStatusUnknown ThreadMessageBodyNewStatus = "unknown" )
func (ThreadMessageBodyNewStatus) AllValues ¶
func (ThreadMessageBodyNewStatus) AllValues() []ThreadMessageBodyNewStatus
AllValues returns all ThreadMessageBodyNewStatus values.
func (*ThreadMessageBodyNewStatus) Decode ¶
func (s *ThreadMessageBodyNewStatus) Decode(d *jx.Decoder) error
Decode decodes ThreadMessageBodyNewStatus from json.
func (ThreadMessageBodyNewStatus) Encode ¶
func (s ThreadMessageBodyNewStatus) Encode(e *jx.Encoder)
Encode encodes ThreadMessageBodyNewStatus as json.
func (ThreadMessageBodyNewStatus) MarshalJSON ¶
func (s ThreadMessageBodyNewStatus) MarshalJSON() ([]byte, error)
MarshalJSON implements stdjson.Marshaler.
func (ThreadMessageBodyNewStatus) MarshalText ¶
func (s ThreadMessageBodyNewStatus) MarshalText() ([]byte, error)
MarshalText implements encoding.TextMarshaler.
func (*ThreadMessageBodyNewStatus) UnmarshalJSON ¶
func (s *ThreadMessageBodyNewStatus) UnmarshalJSON(data []byte) error
UnmarshalJSON implements stdjson.Unmarshaler.
func (*ThreadMessageBodyNewStatus) UnmarshalText ¶
func (s *ThreadMessageBodyNewStatus) UnmarshalText(data []byte) error
UnmarshalText implements encoding.TextUnmarshaler.
func (ThreadMessageBodyNewStatus) Validate ¶
func (s ThreadMessageBodyNewStatus) Validate() error
type ThreadMessageBodyOldStatus ¶
type ThreadMessageBodyOldStatus string
The old status of the project. **Only present for `status_change` message type**.
const ( ThreadMessageBodyOldStatusApproved ThreadMessageBodyOldStatus = "approved" ThreadMessageBodyOldStatusArchived ThreadMessageBodyOldStatus = "archived" ThreadMessageBodyOldStatusRejected ThreadMessageBodyOldStatus = "rejected" ThreadMessageBodyOldStatusDraft ThreadMessageBodyOldStatus = "draft" ThreadMessageBodyOldStatusUnlisted ThreadMessageBodyOldStatus = "unlisted" ThreadMessageBodyOldStatusProcessing ThreadMessageBodyOldStatus = "processing" ThreadMessageBodyOldStatusWithheld ThreadMessageBodyOldStatus = "withheld" ThreadMessageBodyOldStatusScheduled ThreadMessageBodyOldStatus = "scheduled" ThreadMessageBodyOldStatusPrivate ThreadMessageBodyOldStatus = "private" ThreadMessageBodyOldStatusUnknown ThreadMessageBodyOldStatus = "unknown" )
func (ThreadMessageBodyOldStatus) AllValues ¶
func (ThreadMessageBodyOldStatus) AllValues() []ThreadMessageBodyOldStatus
AllValues returns all ThreadMessageBodyOldStatus values.
func (*ThreadMessageBodyOldStatus) Decode ¶
func (s *ThreadMessageBodyOldStatus) Decode(d *jx.Decoder) error
Decode decodes ThreadMessageBodyOldStatus from json.
func (ThreadMessageBodyOldStatus) Encode ¶
func (s ThreadMessageBodyOldStatus) Encode(e *jx.Encoder)
Encode encodes ThreadMessageBodyOldStatus as json.
func (ThreadMessageBodyOldStatus) MarshalJSON ¶
func (s ThreadMessageBodyOldStatus) MarshalJSON() ([]byte, error)
MarshalJSON implements stdjson.Marshaler.
func (ThreadMessageBodyOldStatus) MarshalText ¶
func (s ThreadMessageBodyOldStatus) MarshalText() ([]byte, error)
MarshalText implements encoding.TextMarshaler.
func (*ThreadMessageBodyOldStatus) UnmarshalJSON ¶
func (s *ThreadMessageBodyOldStatus) UnmarshalJSON(data []byte) error
UnmarshalJSON implements stdjson.Unmarshaler.
func (*ThreadMessageBodyOldStatus) UnmarshalText ¶
func (s *ThreadMessageBodyOldStatus) UnmarshalText(data []byte) error
UnmarshalText implements encoding.TextUnmarshaler.
func (ThreadMessageBodyOldStatus) Validate ¶
func (s ThreadMessageBodyOldStatus) Validate() error
type ThreadMessageBodyType ¶
type ThreadMessageBodyType string
The type of message.
const ( ThreadMessageBodyTypeStatusChange ThreadMessageBodyType = "status_change" ThreadMessageBodyTypeText ThreadMessageBodyType = "text" ThreadMessageBodyTypeThreadClosure ThreadMessageBodyType = "thread_closure" ThreadMessageBodyTypeDeleted ThreadMessageBodyType = "deleted" )
func (ThreadMessageBodyType) AllValues ¶
func (ThreadMessageBodyType) AllValues() []ThreadMessageBodyType
AllValues returns all ThreadMessageBodyType values.
func (*ThreadMessageBodyType) Decode ¶
func (s *ThreadMessageBodyType) Decode(d *jx.Decoder) error
Decode decodes ThreadMessageBodyType from json.
func (ThreadMessageBodyType) Encode ¶
func (s ThreadMessageBodyType) Encode(e *jx.Encoder)
Encode encodes ThreadMessageBodyType as json.
func (ThreadMessageBodyType) MarshalJSON ¶
func (s ThreadMessageBodyType) MarshalJSON() ([]byte, error)
MarshalJSON implements stdjson.Marshaler.
func (ThreadMessageBodyType) MarshalText ¶
func (s ThreadMessageBodyType) MarshalText() ([]byte, error)
MarshalText implements encoding.TextMarshaler.
func (*ThreadMessageBodyType) UnmarshalJSON ¶
func (s *ThreadMessageBodyType) UnmarshalJSON(data []byte) error
UnmarshalJSON implements stdjson.Unmarshaler.
func (*ThreadMessageBodyType) UnmarshalText ¶
func (s *ThreadMessageBodyType) UnmarshalText(data []byte) error
UnmarshalText implements encoding.TextUnmarshaler.
func (ThreadMessageBodyType) Validate ¶
func (s ThreadMessageBodyType) Validate() error
type ThreadType ¶
type ThreadType string
const ( ThreadTypeProject ThreadType = "project" ThreadTypeReport ThreadType = "report" ThreadTypeDirectMessage ThreadType = "direct_message" )
func (ThreadType) AllValues ¶
func (ThreadType) AllValues() []ThreadType
AllValues returns all ThreadType values.
func (*ThreadType) Decode ¶
func (s *ThreadType) Decode(d *jx.Decoder) error
Decode decodes ThreadType from json.
func (ThreadType) Encode ¶
func (s ThreadType) Encode(e *jx.Encoder)
Encode encodes ThreadType as json.
func (ThreadType) MarshalJSON ¶
func (s ThreadType) MarshalJSON() ([]byte, error)
MarshalJSON implements stdjson.Marshaler.
func (ThreadType) MarshalText ¶
func (s ThreadType) MarshalText() ([]byte, error)
MarshalText implements encoding.TextMarshaler.
func (*ThreadType) UnmarshalJSON ¶
func (s *ThreadType) UnmarshalJSON(data []byte) error
UnmarshalJSON implements stdjson.Unmarshaler.
func (*ThreadType) UnmarshalText ¶
func (s *ThreadType) UnmarshalText(data []byte) error
UnmarshalText implements encoding.TextUnmarshaler.
func (ThreadType) Validate ¶
func (s ThreadType) Validate() error
type TokenAuth ¶
type TransferTeamOwnershipNoContent ¶
type TransferTeamOwnershipNoContent struct{}
TransferTeamOwnershipNoContent is response for TransferTeamOwnership operation.
type TransferTeamOwnershipNotFound ¶
type TransferTeamOwnershipNotFound struct{}
TransferTeamOwnershipNotFound is response for TransferTeamOwnership operation.
type TransferTeamOwnershipParams ¶
type TransferTeamOwnershipParams struct {
// The ID of the team.
ID string
}
TransferTeamOwnershipParams is parameters of transferTeamOwnership operation.
type TransferTeamOwnershipRes ¶
type TransferTeamOwnershipRes interface {
// contains filtered or unexported methods
}
type UnfollowProjectNoContent ¶
type UnfollowProjectNoContent struct{}
UnfollowProjectNoContent is response for UnfollowProject operation.
type UnfollowProjectParams ¶
type UnfollowProjectParams struct {
// The ID or slug of the project.
IDSlug string
}
UnfollowProjectParams is parameters of unfollowProject operation.
type UnfollowProjectRes ¶
type UnfollowProjectRes interface {
// contains filtered or unexported methods
}
type User ¶
type User struct {
// The user's username.
Username string `json:"username"`
// The user's display name.
Name OptNilString `json:"name"`
// The user's email (only displayed if requesting your own account). Requires `USER_READ_EMAIL` PAT
// scope.
Email OptNilString `json:"email"`
// A description of the user.
Bio OptString `json:"bio"`
PayoutData OptNilUserPayoutData `json:"payout_data"`
// The user's ID.
ID string `json:"id"`
// The user's avatar url.
AvatarURL string `json:"avatar_url"`
// The time at which the user was created.
Created string `json:"created"`
// The user's role.
Role UserRole `json:"role"`
// Any badges applicable to this user. These are currently unused and undisplayed, and as such are
// subject to change
// In order from first to seventh bit, the current bits are:
// - (unused)
// - EARLY_MODPACK_ADOPTER
// - EARLY_RESPACK_ADOPTER
// - EARLY_PLUGIN_ADOPTER
// - ALPHA_TESTER
// - CONTRIBUTOR
// - TRANSLATOR.
Badges OptInt `json:"badges"`
// A list of authentication providers you have signed up for (only displayed if requesting your own
// account).
AuthProviders OptNilStringArray `json:"auth_providers"`
// Whether your email is verified (only displayed if requesting your own account).
EmailVerified OptNilBool `json:"email_verified"`
// Whether you have a password associated with your account (only displayed if requesting your own
// account).
HasPassword OptNilBool `json:"has_password"`
// Whether you have TOTP two-factor authentication connected to your account (only displayed if
// requesting your own account).
HasTotp OptNilBool `json:"has_totp"`
// Deprecated - this is no longer public for security reasons and is always null.
//
// Deprecated: schema marks this property as deprecated.
GithubID OptNilInt `json:"github_id"`
}
Merged schema. Ref: #/components/schemas/User
func (*User) GetAuthProviders ¶
func (s *User) GetAuthProviders() OptNilStringArray
GetAuthProviders returns the value of AuthProviders.
func (*User) GetAvatarURL ¶
GetAvatarURL returns the value of AvatarURL.
func (*User) GetCreated ¶
GetCreated returns the value of Created.
func (*User) GetEmailVerified ¶
func (s *User) GetEmailVerified() OptNilBool
GetEmailVerified returns the value of EmailVerified.
func (*User) GetGithubID ¶
GetGithubID returns the value of GithubID.
func (*User) GetHasPassword ¶
func (s *User) GetHasPassword() OptNilBool
GetHasPassword returns the value of HasPassword.
func (*User) GetHasTotp ¶
func (s *User) GetHasTotp() OptNilBool
GetHasTotp returns the value of HasTotp.
func (*User) GetPayoutData ¶
func (s *User) GetPayoutData() OptNilUserPayoutData
GetPayoutData returns the value of PayoutData.
func (*User) GetUsername ¶
GetUsername returns the value of Username.
func (*User) MarshalJSON ¶
MarshalJSON implements stdjson.Marshaler.
func (*User) SetAuthProviders ¶
func (s *User) SetAuthProviders(val OptNilStringArray)
SetAuthProviders sets the value of AuthProviders.
func (*User) SetAvatarURL ¶
SetAvatarURL sets the value of AvatarURL.
func (*User) SetCreated ¶
SetCreated sets the value of Created.
func (*User) SetEmailVerified ¶
func (s *User) SetEmailVerified(val OptNilBool)
SetEmailVerified sets the value of EmailVerified.
func (*User) SetGithubID ¶
SetGithubID sets the value of GithubID.
func (*User) SetHasPassword ¶
func (s *User) SetHasPassword(val OptNilBool)
SetHasPassword sets the value of HasPassword.
func (*User) SetHasTotp ¶
func (s *User) SetHasTotp(val OptNilBool)
SetHasTotp sets the value of HasTotp.
func (*User) SetPayoutData ¶
func (s *User) SetPayoutData(val OptNilUserPayoutData)
SetPayoutData sets the value of PayoutData.
func (*User) SetUsername ¶
SetUsername sets the value of Username.
func (*User) UnmarshalJSON ¶
UnmarshalJSON implements stdjson.Unmarshaler.
type UserIdentifier ¶
func (*UserIdentifier) Decode ¶
func (s *UserIdentifier) Decode(d *jx.Decoder) error
Decode decodes UserIdentifier from json.
func (UserIdentifier) Encode ¶
func (s UserIdentifier) Encode(e *jx.Encoder)
Encode encodes UserIdentifier as json.
func (UserIdentifier) MarshalJSON ¶
func (s UserIdentifier) MarshalJSON() ([]byte, error)
MarshalJSON implements stdjson.Marshaler.
func (*UserIdentifier) UnmarshalJSON ¶
func (s *UserIdentifier) UnmarshalJSON(data []byte) error
UnmarshalJSON implements stdjson.Unmarshaler.
type UserPayoutData ¶
type UserPayoutData struct {
// The payout balance available for the user to withdraw (note, you cannot modify this in a PATCH
// request).
Balance OptInt `json:"balance"`
// The wallet that the user has selected.
PayoutWallet OptUserPayoutDataPayoutWallet `json:"payout_wallet"`
// The type of the user's wallet.
PayoutWalletType OptUserPayoutDataPayoutWalletType `json:"payout_wallet_type"`
// The user's payout address.
PayoutAddress OptString `json:"payout_address"`
}
Various data relating to the user's payouts status (you can only see your own). Ref: #/components/schemas/UserPayoutData
func (*UserPayoutData) Decode ¶
func (s *UserPayoutData) Decode(d *jx.Decoder) error
Decode decodes UserPayoutData from json.
func (*UserPayoutData) Encode ¶
func (s *UserPayoutData) Encode(e *jx.Encoder)
Encode implements json.Marshaler.
func (*UserPayoutData) GetBalance ¶
func (s *UserPayoutData) GetBalance() OptInt
GetBalance returns the value of Balance.
func (*UserPayoutData) GetPayoutAddress ¶
func (s *UserPayoutData) GetPayoutAddress() OptString
GetPayoutAddress returns the value of PayoutAddress.
func (*UserPayoutData) GetPayoutWallet ¶
func (s *UserPayoutData) GetPayoutWallet() OptUserPayoutDataPayoutWallet
GetPayoutWallet returns the value of PayoutWallet.
func (*UserPayoutData) GetPayoutWalletType ¶
func (s *UserPayoutData) GetPayoutWalletType() OptUserPayoutDataPayoutWalletType
GetPayoutWalletType returns the value of PayoutWalletType.
func (*UserPayoutData) MarshalJSON ¶
func (s *UserPayoutData) MarshalJSON() ([]byte, error)
MarshalJSON implements stdjson.Marshaler.
func (*UserPayoutData) SetBalance ¶
func (s *UserPayoutData) SetBalance(val OptInt)
SetBalance sets the value of Balance.
func (*UserPayoutData) SetPayoutAddress ¶
func (s *UserPayoutData) SetPayoutAddress(val OptString)
SetPayoutAddress sets the value of PayoutAddress.
func (*UserPayoutData) SetPayoutWallet ¶
func (s *UserPayoutData) SetPayoutWallet(val OptUserPayoutDataPayoutWallet)
SetPayoutWallet sets the value of PayoutWallet.
func (*UserPayoutData) SetPayoutWalletType ¶
func (s *UserPayoutData) SetPayoutWalletType(val OptUserPayoutDataPayoutWalletType)
SetPayoutWalletType sets the value of PayoutWalletType.
func (*UserPayoutData) UnmarshalJSON ¶
func (s *UserPayoutData) UnmarshalJSON(data []byte) error
UnmarshalJSON implements stdjson.Unmarshaler.
func (*UserPayoutData) Validate ¶
func (s *UserPayoutData) Validate() error
type UserPayoutDataPayoutWallet ¶
type UserPayoutDataPayoutWallet string
The wallet that the user has selected.
const ( UserPayoutDataPayoutWalletPaypal UserPayoutDataPayoutWallet = "paypal" UserPayoutDataPayoutWalletVenmo UserPayoutDataPayoutWallet = "venmo" )
func (UserPayoutDataPayoutWallet) AllValues ¶
func (UserPayoutDataPayoutWallet) AllValues() []UserPayoutDataPayoutWallet
AllValues returns all UserPayoutDataPayoutWallet values.
func (*UserPayoutDataPayoutWallet) Decode ¶
func (s *UserPayoutDataPayoutWallet) Decode(d *jx.Decoder) error
Decode decodes UserPayoutDataPayoutWallet from json.
func (UserPayoutDataPayoutWallet) Encode ¶
func (s UserPayoutDataPayoutWallet) Encode(e *jx.Encoder)
Encode encodes UserPayoutDataPayoutWallet as json.
func (UserPayoutDataPayoutWallet) MarshalJSON ¶
func (s UserPayoutDataPayoutWallet) MarshalJSON() ([]byte, error)
MarshalJSON implements stdjson.Marshaler.
func (UserPayoutDataPayoutWallet) MarshalText ¶
func (s UserPayoutDataPayoutWallet) MarshalText() ([]byte, error)
MarshalText implements encoding.TextMarshaler.
func (*UserPayoutDataPayoutWallet) UnmarshalJSON ¶
func (s *UserPayoutDataPayoutWallet) UnmarshalJSON(data []byte) error
UnmarshalJSON implements stdjson.Unmarshaler.
func (*UserPayoutDataPayoutWallet) UnmarshalText ¶
func (s *UserPayoutDataPayoutWallet) UnmarshalText(data []byte) error
UnmarshalText implements encoding.TextUnmarshaler.
func (UserPayoutDataPayoutWallet) Validate ¶
func (s UserPayoutDataPayoutWallet) Validate() error
type UserPayoutDataPayoutWalletType ¶
type UserPayoutDataPayoutWalletType string
The type of the user's wallet.
const ( UserPayoutDataPayoutWalletTypeEmail UserPayoutDataPayoutWalletType = "email" UserPayoutDataPayoutWalletTypePhone UserPayoutDataPayoutWalletType = "phone" UserPayoutDataPayoutWalletTypeUserHandle UserPayoutDataPayoutWalletType = "user_handle" )
func (UserPayoutDataPayoutWalletType) AllValues ¶
func (UserPayoutDataPayoutWalletType) AllValues() []UserPayoutDataPayoutWalletType
AllValues returns all UserPayoutDataPayoutWalletType values.
func (*UserPayoutDataPayoutWalletType) Decode ¶
func (s *UserPayoutDataPayoutWalletType) Decode(d *jx.Decoder) error
Decode decodes UserPayoutDataPayoutWalletType from json.
func (UserPayoutDataPayoutWalletType) Encode ¶
func (s UserPayoutDataPayoutWalletType) Encode(e *jx.Encoder)
Encode encodes UserPayoutDataPayoutWalletType as json.
func (UserPayoutDataPayoutWalletType) MarshalJSON ¶
func (s UserPayoutDataPayoutWalletType) MarshalJSON() ([]byte, error)
MarshalJSON implements stdjson.Marshaler.
func (UserPayoutDataPayoutWalletType) MarshalText ¶
func (s UserPayoutDataPayoutWalletType) MarshalText() ([]byte, error)
MarshalText implements encoding.TextMarshaler.
func (*UserPayoutDataPayoutWalletType) UnmarshalJSON ¶
func (s *UserPayoutDataPayoutWalletType) UnmarshalJSON(data []byte) error
UnmarshalJSON implements stdjson.Unmarshaler.
func (*UserPayoutDataPayoutWalletType) UnmarshalText ¶
func (s *UserPayoutDataPayoutWalletType) UnmarshalText(data []byte) error
UnmarshalText implements encoding.TextUnmarshaler.
func (UserPayoutDataPayoutWalletType) Validate ¶
func (s UserPayoutDataPayoutWalletType) Validate() error
type UserPayoutHistory ¶
type UserPayoutHistory struct {
// The all-time balance accrued by this user in USD.
AllTime OptString `json:"all_time"`
// The amount in USD made by the user in the previous 30 days.
LastMonth OptString `json:"last_month"`
// A history of all of the user's past transactions.
Payouts []UserPayoutHistoryEntry `json:"payouts"`
}
Ref: #/components/schemas/UserPayoutHistory
func (*UserPayoutHistory) Decode ¶
func (s *UserPayoutHistory) Decode(d *jx.Decoder) error
Decode decodes UserPayoutHistory from json.
func (*UserPayoutHistory) Encode ¶
func (s *UserPayoutHistory) Encode(e *jx.Encoder)
Encode implements json.Marshaler.
func (*UserPayoutHistory) GetAllTime ¶
func (s *UserPayoutHistory) GetAllTime() OptString
GetAllTime returns the value of AllTime.
func (*UserPayoutHistory) GetLastMonth ¶
func (s *UserPayoutHistory) GetLastMonth() OptString
GetLastMonth returns the value of LastMonth.
func (*UserPayoutHistory) GetPayouts ¶
func (s *UserPayoutHistory) GetPayouts() []UserPayoutHistoryEntry
GetPayouts returns the value of Payouts.
func (*UserPayoutHistory) MarshalJSON ¶
func (s *UserPayoutHistory) MarshalJSON() ([]byte, error)
MarshalJSON implements stdjson.Marshaler.
func (*UserPayoutHistory) SetAllTime ¶
func (s *UserPayoutHistory) SetAllTime(val OptString)
SetAllTime sets the value of AllTime.
func (*UserPayoutHistory) SetLastMonth ¶
func (s *UserPayoutHistory) SetLastMonth(val OptString)
SetLastMonth sets the value of LastMonth.
func (*UserPayoutHistory) SetPayouts ¶
func (s *UserPayoutHistory) SetPayouts(val []UserPayoutHistoryEntry)
SetPayouts sets the value of Payouts.
func (*UserPayoutHistory) UnmarshalJSON ¶
func (s *UserPayoutHistory) UnmarshalJSON(data []byte) error
UnmarshalJSON implements stdjson.Unmarshaler.
type UserPayoutHistoryEntry ¶
type UserPayoutHistoryEntry struct {
// The date of this transaction.
Created OptString `json:"created"`
// The amount of this transaction in USD.
Amount OptInt `json:"amount"`
// The status of this transaction.
Status OptString `json:"status"`
}
Ref: #/components/schemas/UserPayoutHistoryEntry
func (*UserPayoutHistoryEntry) Decode ¶
func (s *UserPayoutHistoryEntry) Decode(d *jx.Decoder) error
Decode decodes UserPayoutHistoryEntry from json.
func (*UserPayoutHistoryEntry) Encode ¶
func (s *UserPayoutHistoryEntry) Encode(e *jx.Encoder)
Encode implements json.Marshaler.
func (*UserPayoutHistoryEntry) GetAmount ¶
func (s *UserPayoutHistoryEntry) GetAmount() OptInt
GetAmount returns the value of Amount.
func (*UserPayoutHistoryEntry) GetCreated ¶
func (s *UserPayoutHistoryEntry) GetCreated() OptString
GetCreated returns the value of Created.
func (*UserPayoutHistoryEntry) GetStatus ¶
func (s *UserPayoutHistoryEntry) GetStatus() OptString
GetStatus returns the value of Status.
func (*UserPayoutHistoryEntry) MarshalJSON ¶
func (s *UserPayoutHistoryEntry) MarshalJSON() ([]byte, error)
MarshalJSON implements stdjson.Marshaler.
func (*UserPayoutHistoryEntry) SetAmount ¶
func (s *UserPayoutHistoryEntry) SetAmount(val OptInt)
SetAmount sets the value of Amount.
func (*UserPayoutHistoryEntry) SetCreated ¶
func (s *UserPayoutHistoryEntry) SetCreated(val OptString)
SetCreated sets the value of Created.
func (*UserPayoutHistoryEntry) SetStatus ¶
func (s *UserPayoutHistoryEntry) SetStatus(val OptString)
SetStatus sets the value of Status.
func (*UserPayoutHistoryEntry) UnmarshalJSON ¶
func (s *UserPayoutHistoryEntry) UnmarshalJSON(data []byte) error
UnmarshalJSON implements stdjson.Unmarshaler.
type UserRole ¶
type UserRole string
The user's role.
func (UserRole) MarshalJSON ¶
MarshalJSON implements stdjson.Marshaler.
func (UserRole) MarshalText ¶
MarshalText implements encoding.TextMarshaler.
func (*UserRole) UnmarshalJSON ¶
UnmarshalJSON implements stdjson.Unmarshaler.
func (*UserRole) UnmarshalText ¶
UnmarshalText implements encoding.TextUnmarshaler.
type Version ¶
type Version struct {
// The name of this version.
Name string `json:"name"`
// The version number. Ideally will follow semantic versioning.
VersionNumber string `json:"version_number"`
// The changelog for this version.
Changelog OptNilString `json:"changelog"`
// A list of specific versions of projects that this version depends on.
Dependencies []VersionDependency `json:"dependencies"`
// A list of versions of Minecraft that this version supports.
GameVersions []string `json:"game_versions"`
// The release channel for this version.
VersionType VersionVersionType `json:"version_type"`
// The mod loaders that this version supports. In case of resource packs, use "minecraft".
Loaders []string `json:"loaders"`
// Whether the version is featured or not.
Featured bool `json:"featured"`
Status OptVersionStatus `json:"status"`
RequestedStatus OptNilVersionRequestedStatus `json:"requested_status"`
// The ID of the version, encoded as a base62 string.
ID string `json:"id"`
// The ID of the project this version is for.
ProjectID string `json:"project_id"`
// The ID of the author who published this version.
AuthorID string `json:"author_id"`
DatePublished string `json:"date_published"`
// The number of times this version has been downloaded.
Downloads int `json:"downloads"`
// A link to the changelog for this version. Always null, only kept for legacy compatibility.
//
// Deprecated: schema marks this property as deprecated.
ChangelogURL OptNilString `json:"changelog_url"`
// A list of files available for download for this version.
Files []VersionFile `json:"files"`
}
Merged schema. Ref: #/components/schemas/Version
func (*Version) GetAuthorID ¶
GetAuthorID returns the value of AuthorID.
func (*Version) GetChangelog ¶
func (s *Version) GetChangelog() OptNilString
GetChangelog returns the value of Changelog.
func (*Version) GetChangelogURL ¶
func (s *Version) GetChangelogURL() OptNilString
GetChangelogURL returns the value of ChangelogURL.
func (*Version) GetDatePublished ¶
GetDatePublished returns the value of DatePublished.
func (*Version) GetDependencies ¶
func (s *Version) GetDependencies() []VersionDependency
GetDependencies returns the value of Dependencies.
func (*Version) GetDownloads ¶
GetDownloads returns the value of Downloads.
func (*Version) GetFeatured ¶
GetFeatured returns the value of Featured.
func (*Version) GetFiles ¶
func (s *Version) GetFiles() []VersionFile
GetFiles returns the value of Files.
func (*Version) GetGameVersions ¶
GetGameVersions returns the value of GameVersions.
func (*Version) GetLoaders ¶
GetLoaders returns the value of Loaders.
func (*Version) GetProjectID ¶
GetProjectID returns the value of ProjectID.
func (*Version) GetRequestedStatus ¶
func (s *Version) GetRequestedStatus() OptNilVersionRequestedStatus
GetRequestedStatus returns the value of RequestedStatus.
func (*Version) GetStatus ¶
func (s *Version) GetStatus() OptVersionStatus
GetStatus returns the value of Status.
func (*Version) GetVersionNumber ¶
GetVersionNumber returns the value of VersionNumber.
func (*Version) GetVersionType ¶
func (s *Version) GetVersionType() VersionVersionType
GetVersionType returns the value of VersionType.
func (*Version) MarshalJSON ¶
MarshalJSON implements stdjson.Marshaler.
func (*Version) SetAuthorID ¶
SetAuthorID sets the value of AuthorID.
func (*Version) SetChangelog ¶
func (s *Version) SetChangelog(val OptNilString)
SetChangelog sets the value of Changelog.
func (*Version) SetChangelogURL ¶
func (s *Version) SetChangelogURL(val OptNilString)
SetChangelogURL sets the value of ChangelogURL.
func (*Version) SetDatePublished ¶
SetDatePublished sets the value of DatePublished.
func (*Version) SetDependencies ¶
func (s *Version) SetDependencies(val []VersionDependency)
SetDependencies sets the value of Dependencies.
func (*Version) SetDownloads ¶
SetDownloads sets the value of Downloads.
func (*Version) SetFeatured ¶
SetFeatured sets the value of Featured.
func (*Version) SetFiles ¶
func (s *Version) SetFiles(val []VersionFile)
SetFiles sets the value of Files.
func (*Version) SetGameVersions ¶
SetGameVersions sets the value of GameVersions.
func (*Version) SetLoaders ¶
SetLoaders sets the value of Loaders.
func (*Version) SetProjectID ¶
SetProjectID sets the value of ProjectID.
func (*Version) SetRequestedStatus ¶
func (s *Version) SetRequestedStatus(val OptNilVersionRequestedStatus)
SetRequestedStatus sets the value of RequestedStatus.
func (*Version) SetStatus ¶
func (s *Version) SetStatus(val OptVersionStatus)
SetStatus sets the value of Status.
func (*Version) SetVersionNumber ¶
SetVersionNumber sets the value of VersionNumber.
func (*Version) SetVersionType ¶
func (s *Version) SetVersionType(val VersionVersionType)
SetVersionType sets the value of VersionType.
func (*Version) UnmarshalJSON ¶
UnmarshalJSON implements stdjson.Unmarshaler.
type VersionDependency ¶
type VersionDependency struct {
// The ID of the version that this version depends on.
VersionID OptNilString `json:"version_id"`
// The ID of the project that this version depends on.
ProjectID OptNilString `json:"project_id"`
// The file name of the dependency, mostly used for showing external dependencies on modpacks.
FileName OptNilString `json:"file_name"`
// The type of dependency that this version has.
DependencyType VersionDependencyDependencyType `json:"dependency_type"`
}
Ref: #/components/schemas/VersionDependency
func (*VersionDependency) Decode ¶
func (s *VersionDependency) Decode(d *jx.Decoder) error
Decode decodes VersionDependency from json.
func (*VersionDependency) Encode ¶
func (s *VersionDependency) Encode(e *jx.Encoder)
Encode implements json.Marshaler.
func (*VersionDependency) GetDependencyType ¶
func (s *VersionDependency) GetDependencyType() VersionDependencyDependencyType
GetDependencyType returns the value of DependencyType.
func (*VersionDependency) GetFileName ¶
func (s *VersionDependency) GetFileName() OptNilString
GetFileName returns the value of FileName.
func (*VersionDependency) GetProjectID ¶
func (s *VersionDependency) GetProjectID() OptNilString
GetProjectID returns the value of ProjectID.
func (*VersionDependency) GetVersionID ¶
func (s *VersionDependency) GetVersionID() OptNilString
GetVersionID returns the value of VersionID.
func (*VersionDependency) MarshalJSON ¶
func (s *VersionDependency) MarshalJSON() ([]byte, error)
MarshalJSON implements stdjson.Marshaler.
func (*VersionDependency) SetDependencyType ¶
func (s *VersionDependency) SetDependencyType(val VersionDependencyDependencyType)
SetDependencyType sets the value of DependencyType.
func (*VersionDependency) SetFileName ¶
func (s *VersionDependency) SetFileName(val OptNilString)
SetFileName sets the value of FileName.
func (*VersionDependency) SetProjectID ¶
func (s *VersionDependency) SetProjectID(val OptNilString)
SetProjectID sets the value of ProjectID.
func (*VersionDependency) SetVersionID ¶
func (s *VersionDependency) SetVersionID(val OptNilString)
SetVersionID sets the value of VersionID.
func (*VersionDependency) UnmarshalJSON ¶
func (s *VersionDependency) UnmarshalJSON(data []byte) error
UnmarshalJSON implements stdjson.Unmarshaler.
func (*VersionDependency) Validate ¶
func (s *VersionDependency) Validate() error
type VersionDependencyDependencyType ¶
type VersionDependencyDependencyType string
The type of dependency that this version has.
const ( VersionDependencyDependencyTypeRequired VersionDependencyDependencyType = "required" VersionDependencyDependencyTypeOptional VersionDependencyDependencyType = "optional" VersionDependencyDependencyTypeIncompatible VersionDependencyDependencyType = "incompatible" VersionDependencyDependencyTypeEmbedded VersionDependencyDependencyType = "embedded" )
func (VersionDependencyDependencyType) AllValues ¶
func (VersionDependencyDependencyType) AllValues() []VersionDependencyDependencyType
AllValues returns all VersionDependencyDependencyType values.
func (*VersionDependencyDependencyType) Decode ¶
func (s *VersionDependencyDependencyType) Decode(d *jx.Decoder) error
Decode decodes VersionDependencyDependencyType from json.
func (VersionDependencyDependencyType) Encode ¶
func (s VersionDependencyDependencyType) Encode(e *jx.Encoder)
Encode encodes VersionDependencyDependencyType as json.
func (VersionDependencyDependencyType) MarshalJSON ¶
func (s VersionDependencyDependencyType) MarshalJSON() ([]byte, error)
MarshalJSON implements stdjson.Marshaler.
func (VersionDependencyDependencyType) MarshalText ¶
func (s VersionDependencyDependencyType) MarshalText() ([]byte, error)
MarshalText implements encoding.TextMarshaler.
func (*VersionDependencyDependencyType) UnmarshalJSON ¶
func (s *VersionDependencyDependencyType) UnmarshalJSON(data []byte) error
UnmarshalJSON implements stdjson.Unmarshaler.
func (*VersionDependencyDependencyType) UnmarshalText ¶
func (s *VersionDependencyDependencyType) UnmarshalText(data []byte) error
UnmarshalText implements encoding.TextUnmarshaler.
func (VersionDependencyDependencyType) Validate ¶
func (s VersionDependencyDependencyType) Validate() error
type VersionFile ¶
type VersionFile struct {
Hashes VersionFileHashes `json:"hashes"`
// A direct link to the file.
URL string `json:"url"`
// The name of the file.
Filename string `json:"filename"`
// Whether this file is the primary one for its version. Only a maximum of one file per version will
// have this set to true. If there are not any primary files, it can be inferred that the first file
// is the primary one.
Primary bool `json:"primary"`
// The size of the file in bytes.
Size int `json:"size"`
// The type of the additional file, used mainly for adding resource packs to datapacks.
FileType OptNilVersionFileFileType `json:"file_type"`
}
Ref: #/components/schemas/VersionFile
func (*VersionFile) Decode ¶
func (s *VersionFile) Decode(d *jx.Decoder) error
Decode decodes VersionFile from json.
func (*VersionFile) Encode ¶
func (s *VersionFile) Encode(e *jx.Encoder)
Encode implements json.Marshaler.
func (*VersionFile) GetFileType ¶
func (s *VersionFile) GetFileType() OptNilVersionFileFileType
GetFileType returns the value of FileType.
func (*VersionFile) GetFilename ¶
func (s *VersionFile) GetFilename() string
GetFilename returns the value of Filename.
func (*VersionFile) GetHashes ¶
func (s *VersionFile) GetHashes() VersionFileHashes
GetHashes returns the value of Hashes.
func (*VersionFile) GetPrimary ¶
func (s *VersionFile) GetPrimary() bool
GetPrimary returns the value of Primary.
func (*VersionFile) GetSize ¶
func (s *VersionFile) GetSize() int
GetSize returns the value of Size.
func (*VersionFile) MarshalJSON ¶
func (s *VersionFile) MarshalJSON() ([]byte, error)
MarshalJSON implements stdjson.Marshaler.
func (*VersionFile) SetFileType ¶
func (s *VersionFile) SetFileType(val OptNilVersionFileFileType)
SetFileType sets the value of FileType.
func (*VersionFile) SetFilename ¶
func (s *VersionFile) SetFilename(val string)
SetFilename sets the value of Filename.
func (*VersionFile) SetHashes ¶
func (s *VersionFile) SetHashes(val VersionFileHashes)
SetHashes sets the value of Hashes.
func (*VersionFile) SetPrimary ¶
func (s *VersionFile) SetPrimary(val bool)
SetPrimary sets the value of Primary.
func (*VersionFile) SetSize ¶
func (s *VersionFile) SetSize(val int)
SetSize sets the value of Size.
func (*VersionFile) UnmarshalJSON ¶
func (s *VersionFile) UnmarshalJSON(data []byte) error
UnmarshalJSON implements stdjson.Unmarshaler.
func (*VersionFile) Validate ¶
func (s *VersionFile) Validate() error
type VersionFileFileType ¶
type VersionFileFileType string
The type of the additional file, used mainly for adding resource packs to datapacks.
const ( VersionFileFileTypeRequiredResourcePack VersionFileFileType = "required-resource-pack" VersionFileFileTypeOptionalResourcePack VersionFileFileType = "optional-resource-pack" )
func (VersionFileFileType) AllValues ¶
func (VersionFileFileType) AllValues() []VersionFileFileType
AllValues returns all VersionFileFileType values.
func (*VersionFileFileType) Decode ¶
func (s *VersionFileFileType) Decode(d *jx.Decoder) error
Decode decodes VersionFileFileType from json.
func (VersionFileFileType) Encode ¶
func (s VersionFileFileType) Encode(e *jx.Encoder)
Encode encodes VersionFileFileType as json.
func (VersionFileFileType) MarshalJSON ¶
func (s VersionFileFileType) MarshalJSON() ([]byte, error)
MarshalJSON implements stdjson.Marshaler.
func (VersionFileFileType) MarshalText ¶
func (s VersionFileFileType) MarshalText() ([]byte, error)
MarshalText implements encoding.TextMarshaler.
func (*VersionFileFileType) UnmarshalJSON ¶
func (s *VersionFileFileType) UnmarshalJSON(data []byte) error
UnmarshalJSON implements stdjson.Unmarshaler.
func (*VersionFileFileType) UnmarshalText ¶
func (s *VersionFileFileType) UnmarshalText(data []byte) error
UnmarshalText implements encoding.TextUnmarshaler.
func (VersionFileFileType) Validate ¶
func (s VersionFileFileType) Validate() error
type VersionFileHashes ¶
A map of hashes of the file. The key is the hashing algorithm and the value is the string version of the hash. Ref: #/components/schemas/VersionFileHashes
func (*VersionFileHashes) Decode ¶
func (s *VersionFileHashes) Decode(d *jx.Decoder) error
Decode decodes VersionFileHashes from json.
func (*VersionFileHashes) Encode ¶
func (s *VersionFileHashes) Encode(e *jx.Encoder)
Encode implements json.Marshaler.
func (*VersionFileHashes) GetSHA1 ¶
func (s *VersionFileHashes) GetSHA1() OptString
GetSHA1 returns the value of SHA1.
func (*VersionFileHashes) GetSha512 ¶
func (s *VersionFileHashes) GetSha512() OptString
GetSha512 returns the value of Sha512.
func (*VersionFileHashes) MarshalJSON ¶
func (s *VersionFileHashes) MarshalJSON() ([]byte, error)
MarshalJSON implements stdjson.Marshaler.
func (*VersionFileHashes) SetSHA1 ¶
func (s *VersionFileHashes) SetSHA1(val OptString)
SetSHA1 sets the value of SHA1.
func (*VersionFileHashes) SetSha512 ¶
func (s *VersionFileHashes) SetSha512(val OptString)
SetSha512 sets the value of Sha512.
func (*VersionFileHashes) UnmarshalJSON ¶
func (s *VersionFileHashes) UnmarshalJSON(data []byte) error
UnmarshalJSON implements stdjson.Unmarshaler.
type VersionFromHashNotFound ¶
type VersionFromHashNotFound struct{}
VersionFromHashNotFound is response for VersionFromHash operation.
type VersionFromHashParams ¶
type VersionFromHashParams struct {
// Whether to return multiple results when looking for this hash.
Multiple OptBool
// The hash of the file, considering its byte content, and encoded in hexadecimal.
Hash string
// The algorithm of the hash.
Algorithm AlgorithmIdentifier
}
VersionFromHashParams is parameters of versionFromHash operation.
type VersionFromHashRes ¶
type VersionFromHashRes interface {
// contains filtered or unexported methods
}
type VersionRequestedStatus ¶
type VersionRequestedStatus string
const ( VersionRequestedStatusListed VersionRequestedStatus = "listed" VersionRequestedStatusArchived VersionRequestedStatus = "archived" VersionRequestedStatusDraft VersionRequestedStatus = "draft" VersionRequestedStatusUnlisted VersionRequestedStatus = "unlisted" )
func (VersionRequestedStatus) AllValues ¶
func (VersionRequestedStatus) AllValues() []VersionRequestedStatus
AllValues returns all VersionRequestedStatus values.
func (*VersionRequestedStatus) Decode ¶
func (s *VersionRequestedStatus) Decode(d *jx.Decoder) error
Decode decodes VersionRequestedStatus from json.
func (VersionRequestedStatus) Encode ¶
func (s VersionRequestedStatus) Encode(e *jx.Encoder)
Encode encodes VersionRequestedStatus as json.
func (VersionRequestedStatus) MarshalJSON ¶
func (s VersionRequestedStatus) MarshalJSON() ([]byte, error)
MarshalJSON implements stdjson.Marshaler.
func (VersionRequestedStatus) MarshalText ¶
func (s VersionRequestedStatus) MarshalText() ([]byte, error)
MarshalText implements encoding.TextMarshaler.
func (*VersionRequestedStatus) UnmarshalJSON ¶
func (s *VersionRequestedStatus) UnmarshalJSON(data []byte) error
UnmarshalJSON implements stdjson.Unmarshaler.
func (*VersionRequestedStatus) UnmarshalText ¶
func (s *VersionRequestedStatus) UnmarshalText(data []byte) error
UnmarshalText implements encoding.TextUnmarshaler.
func (VersionRequestedStatus) Validate ¶
func (s VersionRequestedStatus) Validate() error
type VersionStatus ¶
type VersionStatus string
const ( VersionStatusListed VersionStatus = "listed" VersionStatusArchived VersionStatus = "archived" VersionStatusDraft VersionStatus = "draft" VersionStatusUnlisted VersionStatus = "unlisted" VersionStatusScheduled VersionStatus = "scheduled" VersionStatusUnknown VersionStatus = "unknown" )
func (VersionStatus) AllValues ¶
func (VersionStatus) AllValues() []VersionStatus
AllValues returns all VersionStatus values.
func (*VersionStatus) Decode ¶
func (s *VersionStatus) Decode(d *jx.Decoder) error
Decode decodes VersionStatus from json.
func (VersionStatus) Encode ¶
func (s VersionStatus) Encode(e *jx.Encoder)
Encode encodes VersionStatus as json.
func (VersionStatus) MarshalJSON ¶
func (s VersionStatus) MarshalJSON() ([]byte, error)
MarshalJSON implements stdjson.Marshaler.
func (VersionStatus) MarshalText ¶
func (s VersionStatus) MarshalText() ([]byte, error)
MarshalText implements encoding.TextMarshaler.
func (*VersionStatus) UnmarshalJSON ¶
func (s *VersionStatus) UnmarshalJSON(data []byte) error
UnmarshalJSON implements stdjson.Unmarshaler.
func (*VersionStatus) UnmarshalText ¶
func (s *VersionStatus) UnmarshalText(data []byte) error
UnmarshalText implements encoding.TextUnmarshaler.
func (VersionStatus) Validate ¶
func (s VersionStatus) Validate() error
type VersionVersionType ¶
type VersionVersionType string
The release channel for this version.
const ( VersionVersionTypeRelease VersionVersionType = "release" VersionVersionTypeBeta VersionVersionType = "beta" VersionVersionTypeAlpha VersionVersionType = "alpha" )
func (VersionVersionType) AllValues ¶
func (VersionVersionType) AllValues() []VersionVersionType
AllValues returns all VersionVersionType values.
func (*VersionVersionType) Decode ¶
func (s *VersionVersionType) Decode(d *jx.Decoder) error
Decode decodes VersionVersionType from json.
func (VersionVersionType) Encode ¶
func (s VersionVersionType) Encode(e *jx.Encoder)
Encode encodes VersionVersionType as json.
func (VersionVersionType) MarshalJSON ¶
func (s VersionVersionType) MarshalJSON() ([]byte, error)
MarshalJSON implements stdjson.Marshaler.
func (VersionVersionType) MarshalText ¶
func (s VersionVersionType) MarshalText() ([]byte, error)
MarshalText implements encoding.TextMarshaler.
func (*VersionVersionType) UnmarshalJSON ¶
func (s *VersionVersionType) UnmarshalJSON(data []byte) error
UnmarshalJSON implements stdjson.Unmarshaler.
func (*VersionVersionType) UnmarshalText ¶
func (s *VersionVersionType) UnmarshalText(data []byte) error
UnmarshalText implements encoding.TextUnmarshaler.
func (VersionVersionType) Validate ¶
func (s VersionVersionType) Validate() error
type VersionsFromHashesBadRequest ¶
type VersionsFromHashesBadRequest struct{}
VersionsFromHashesBadRequest is response for VersionsFromHashes operation.
type VersionsFromHashesRes ¶
type VersionsFromHashesRes interface {
// contains filtered or unexported methods
}
type WithdrawPayoutNoContent ¶
type WithdrawPayoutNoContent struct{}
WithdrawPayoutNoContent is response for WithdrawPayout operation.
type WithdrawPayoutNotFound ¶
type WithdrawPayoutNotFound struct{}
WithdrawPayoutNotFound is response for WithdrawPayout operation.
type WithdrawPayoutParams ¶
type WithdrawPayoutParams struct {
// Amount to withdraw.
Amount int
// The ID or username of the user.
IDUsername string
}
WithdrawPayoutParams is parameters of withdrawPayout operation.
type WithdrawPayoutRes ¶
type WithdrawPayoutRes interface {
// contains filtered or unexported methods
}