gql

package
v1.1.6 Latest Latest
Warning

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

Go to latest
Published: Aug 12, 2023 License: GPL-3.0 Imports: 39 Imported by: 0

Documentation

Index

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 DBGuideToGenerated

func DBGuideToGenerated(guide *postgres.Guide) *generated.Guide

func DBModToGenerated

func DBModToGenerated(mod *postgres.Mod) *generated.Mod

func DBSMLVersionToGenerated

func DBSMLVersionToGenerated(smlVersion *postgres.SMLVersion) *generated.SMLVersion

func DBTagToGenerated added in v1.1.0

func DBTagToGenerated(tag *postgres.Tag) *generated.Tag

func DBTagsToGeneratedSlice added in v1.1.0

func DBTagsToGeneratedSlice(tags []postgres.Tag) []*generated.Tag

func DBUserToGenerated

func DBUserToGenerated(user *postgres.User) *generated.User

func DBVersionDependencyToGenerated

func DBVersionDependencyToGenerated(versionDependency *postgres.VersionDependency) *generated.VersionDependency

func DBVersionToGenerated

func DBVersionToGenerated(version *postgres.Version) *generated.Version

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 RealIP

func RealIP(ctx context.Context) string

func SetCompatibilityINN added in v1.1.0

func SetCompatibilityINN(value *generated.CompatibilityInfoInput, target **postgres.CompatibilityInfo)

func SetDateINN

func SetDateINN(value *string, target *time.Time)

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

func SetStringINNOE(value *string, target *string)

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

type TraceWrapper

type TraceWrapper struct {
	Span trace.Span
}

func WrapMutationTrace

func WrapMutationTrace(ctx context.Context, action string) (TraceWrapper, context.Context)

func WrapQueryTrace

func WrapQueryTrace(ctx context.Context, action string) (TraceWrapper, context.Context)

Jump to

Keyboard shortcuts

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