Documentation ¶
Index ¶
- func DBAnnouncementToGenerated(announcement *postgres.Announcement) *generated.Announcement
- func DBAnnouncementsToGeneratedSlice(announcements []postgres.Announcement) []*generated.Announcement
- func DBBootstrapVersionToGenerated(bootstrapVersion *postgres.BootstrapVersion) *generated.BootstrapVersion
- func DBCompInfoToGenCompInfo(gen *postgres.CompatibilityInfo) *generated.CompatibilityInfo
- func DBCompToGenComp(db postgres.Compatibility) *generated.Compatibility
- func DBGuideToGenerated(guide *postgres.Guide) *generated.Guide
- func DBModToGenerated(mod *postgres.Mod) *generated.Mod
- func DBSMLVersionToGenerated(smlVersion *postgres.SMLVersion) *generated.SMLVersion
- func DBTagToGenerated(tag *postgres.Tag) *generated.Tag
- func DBTagsToGeneratedSlice(tags []postgres.Tag) []*generated.Tag
- func DBUserToGenerated(user *postgres.User) *generated.User
- func DBVersionDependencyToGenerated(versionDependency *postgres.VersionDependency) *generated.VersionDependency
- func DBVersionToGenerated(version *postgres.Version) *generated.Version
- func FinalizeVersionUploadAsync(ctx context.Context, mod *postgres.Mod, versionID string, ...) (*generated.CreateVersionResponse, error)
- func GenCompInfoToDBCompInfo(gen *generated.CompatibilityInfoInput) *postgres.CompatibilityInfo
- func GenCompToDBComp(gen *generated.CompatibilityInput) postgres.Compatibility
- func MakeDirective() generated.DirectiveRoot
- func RealIP(ctx context.Context) string
- func SetCompatibilityINN(value *generated.CompatibilityInfoInput, target **postgres.CompatibilityInfo)
- func SetDateINN(value *string, target *time.Time)
- func SetINN[T any](v *T, target *T)
- func SetStabilityINN(value *generated.VersionStabilities, target *string)
- func SetStringINNOE(value *string, target *string)
- type Directive
- type Resolver
- func (r *Resolver) GetBootstrapVersions() generated.GetBootstrapVersionsResolver
- func (r *Resolver) GetGuides() generated.GetGuidesResolver
- func (r *Resolver) GetMods() generated.GetModsResolver
- func (r *Resolver) GetMyMods() generated.GetMyModsResolver
- func (r *Resolver) GetMyVersions() generated.GetMyVersionsResolver
- func (r *Resolver) GetSMLVersions() generated.GetSMLVersionsResolver
- func (r *Resolver) GetVersions() generated.GetVersionsResolver
- func (r *Resolver) Guide() generated.GuideResolver
- func (r *Resolver) Mod() generated.ModResolver
- func (r *Resolver) Mutation() generated.MutationResolver
- func (r *Resolver) Query() generated.QueryResolver
- func (r *Resolver) User() generated.UserResolver
- func (r *Resolver) UserMod() generated.UserModResolver
- func (r *Resolver) Version() generated.VersionResolver
- type TraceWrapper
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func DBAnnouncementToGenerated ¶
func DBAnnouncementToGenerated(announcement *postgres.Announcement) *generated.Announcement
func DBAnnouncementsToGeneratedSlice ¶
func DBAnnouncementsToGeneratedSlice(announcements []postgres.Announcement) []*generated.Announcement
func DBBootstrapVersionToGenerated ¶
func DBBootstrapVersionToGenerated(bootstrapVersion *postgres.BootstrapVersion) *generated.BootstrapVersion
func DBCompInfoToGenCompInfo ¶ added in v1.1.0
func DBCompInfoToGenCompInfo(gen *postgres.CompatibilityInfo) *generated.CompatibilityInfo
func DBCompToGenComp ¶ added in v1.1.0
func DBCompToGenComp(db postgres.Compatibility) *generated.Compatibility
func DBSMLVersionToGenerated ¶
func DBSMLVersionToGenerated(smlVersion *postgres.SMLVersion) *generated.SMLVersion
func DBTagsToGeneratedSlice ¶ added in v1.1.0
func DBVersionDependencyToGenerated ¶
func DBVersionDependencyToGenerated(versionDependency *postgres.VersionDependency) *generated.VersionDependency
func FinalizeVersionUploadAsync ¶
func FinalizeVersionUploadAsync(ctx context.Context, mod *postgres.Mod, versionID string, version generated.NewVersion) (*generated.CreateVersionResponse, error)
func GenCompInfoToDBCompInfo ¶ added in v1.1.0
func GenCompInfoToDBCompInfo(gen *generated.CompatibilityInfoInput) *postgres.CompatibilityInfo
func GenCompToDBComp ¶ added in v1.1.0
func GenCompToDBComp(gen *generated.CompatibilityInput) postgres.Compatibility
func MakeDirective ¶
func MakeDirective() generated.DirectiveRoot
func SetCompatibilityINN ¶ added in v1.1.0
func SetCompatibilityINN(value *generated.CompatibilityInfoInput, target **postgres.CompatibilityInfo)
func SetDateINN ¶
func SetINN ¶ added in v1.1.0
func SetINN[T any](v *T, target *T)
SetINN sets target if value not nil
func SetStabilityINN ¶
func SetStabilityINN(value *generated.VersionStabilities, target *string)
func SetStringINNOE ¶
SetStringINNOE sets target if value not nil or empty
Types ¶
type Directive ¶
type Directive struct {
generated.DirectiveRoot
}
type Resolver ¶
type Resolver struct{}
func (*Resolver) GetBootstrapVersions ¶
func (r *Resolver) GetBootstrapVersions() generated.GetBootstrapVersionsResolver
func (*Resolver) GetGuides ¶
func (r *Resolver) GetGuides() generated.GetGuidesResolver
func (*Resolver) GetMods ¶
func (r *Resolver) GetMods() generated.GetModsResolver
func (*Resolver) GetMyMods ¶
func (r *Resolver) GetMyMods() generated.GetMyModsResolver
func (*Resolver) GetMyVersions ¶
func (r *Resolver) GetMyVersions() generated.GetMyVersionsResolver
func (*Resolver) GetSMLVersions ¶
func (r *Resolver) GetSMLVersions() generated.GetSMLVersionsResolver
func (*Resolver) GetVersions ¶
func (r *Resolver) GetVersions() generated.GetVersionsResolver
func (*Resolver) Guide ¶
func (r *Resolver) Guide() generated.GuideResolver
func (*Resolver) Mod ¶
func (r *Resolver) Mod() generated.ModResolver
func (*Resolver) Mutation ¶
func (r *Resolver) Mutation() generated.MutationResolver
func (*Resolver) Query ¶
func (r *Resolver) Query() generated.QueryResolver
func (*Resolver) User ¶
func (r *Resolver) User() generated.UserResolver
func (*Resolver) UserMod ¶
func (r *Resolver) UserMod() generated.UserModResolver
func (*Resolver) Version ¶
func (r *Resolver) Version() generated.VersionResolver
Click to show internal directories.
Click to hide internal directories.