Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewExecutableSchema ¶
func NewExecutableSchema(cfg Config) graphql.ExecutableSchema
NewExecutableSchema creates an ExecutableSchema from the ResolverRoot interface.
Types ¶
type ComplexityRoot ¶
type ComplexityRoot struct { Attestation struct { AttestationCollection func(childComplexity int) int ID func(childComplexity int) int Type func(childComplexity int) int } AttestationCollection struct { Attestations func(childComplexity int) int ID func(childComplexity int) int Name func(childComplexity int) int Statement func(childComplexity int) int } AttestationPolicy struct { ID func(childComplexity int) int Name func(childComplexity int) int Statement func(childComplexity int) int } AttestationPolicyConnection struct { Edges func(childComplexity int) int PageInfo func(childComplexity int) int TotalCount func(childComplexity int) int } AttestationPolicyEdge struct { Cursor func(childComplexity int) int Node func(childComplexity int) int } Dsse struct { GitoidSha256 func(childComplexity int) int ID func(childComplexity int) int PayloadDigests func(childComplexity int) int PayloadType func(childComplexity int) int Signatures func(childComplexity int) int Statement func(childComplexity int) int } DsseConnection struct { Edges func(childComplexity int) int PageInfo func(childComplexity int) int TotalCount func(childComplexity int) int } DsseEdge struct { Cursor func(childComplexity int) int Node func(childComplexity int) int } PageInfo struct { EndCursor func(childComplexity int) int HasNextPage func(childComplexity int) int HasPreviousPage func(childComplexity int) int StartCursor func(childComplexity int) int } PayloadDigest struct { Algorithm func(childComplexity int) int Dsse func(childComplexity int) int ID func(childComplexity int) int Value func(childComplexity int) int } Query struct { AttestationPolicies func(childComplexity int, after *entgql.Cursor[uuid.UUID], first *int, before *entgql.Cursor[uuid.UUID], last *int, where *ent.AttestationPolicyWhereInput) int Dsses func(childComplexity int, after *entgql.Cursor[uuid.UUID], first *int, before *entgql.Cursor[uuid.UUID], last *int, where *ent.DsseWhereInput) int Node func(childComplexity int, id uuid.UUID) int Nodes func(childComplexity int, ids []uuid.UUID) int Subjects func(childComplexity int, after *entgql.Cursor[uuid.UUID], first *int, before *entgql.Cursor[uuid.UUID], last *int, where *ent.SubjectWhereInput) int } Signature struct { Dsse func(childComplexity int) int ID func(childComplexity int) int KeyID func(childComplexity int) int Signature func(childComplexity int) int Timestamps func(childComplexity int) int } Statement struct { AttestationCollections func(childComplexity int) int Dsse func(childComplexity int) int ID func(childComplexity int) int Policy func(childComplexity int) int Predicate func(childComplexity int) int Subjects func(childComplexity int, after *entgql.Cursor[uuid.UUID], first *int, before *entgql.Cursor[uuid.UUID], last *int, where *ent.SubjectWhereInput) int } Subject struct { ID func(childComplexity int) int Name func(childComplexity int) int Statement func(childComplexity int) int SubjectDigests func(childComplexity int) int } SubjectConnection struct { Edges func(childComplexity int) int PageInfo func(childComplexity int) int TotalCount func(childComplexity int) int } SubjectDigest struct { Algorithm func(childComplexity int) int ID func(childComplexity int) int Subject func(childComplexity int) int Value func(childComplexity int) int } SubjectEdge struct { Cursor func(childComplexity int) int Node func(childComplexity int) int } Timestamp struct { ID func(childComplexity int) int Signature func(childComplexity int) int Timestamp func(childComplexity int) int Type func(childComplexity int) int } }
type Config ¶
type Config struct { Schema *ast.Schema Resolvers ResolverRoot Directives DirectiveRoot Complexity ComplexityRoot }
type DirectiveRoot ¶
type DirectiveRoot struct { }
type QueryResolver ¶
type QueryResolver interface { Node(ctx context.Context, id uuid.UUID) (ent.Noder, error) Nodes(ctx context.Context, ids []uuid.UUID) ([]ent.Noder, error) AttestationPolicies(ctx context.Context, after *entgql.Cursor[uuid.UUID], first *int, before *entgql.Cursor[uuid.UUID], last *int, where *ent.AttestationPolicyWhereInput) (*ent.AttestationPolicyConnection, error) Dsses(ctx context.Context, after *entgql.Cursor[uuid.UUID], first *int, before *entgql.Cursor[uuid.UUID], last *int, where *ent.DsseWhereInput) (*ent.DsseConnection, error) Subjects(ctx context.Context, after *entgql.Cursor[uuid.UUID], first *int, before *entgql.Cursor[uuid.UUID], last *int, where *ent.SubjectWhereInput) (*ent.SubjectConnection, error) }
type Resolver ¶
type Resolver struct {
// contains filtered or unexported fields
}
Resolver is the resolver root.
func (*Resolver) Query ¶
func (r *Resolver) Query() QueryResolver
Query returns QueryResolver implementation.
type ResolverRoot ¶
type ResolverRoot interface {
Query() QueryResolver
}
Directories ¶
Path | Synopsis |
---|---|
cmd
|
|
Package docs Code generated by swaggo/swag.
|
Package docs Code generated by swaggo/swag. |
pkg
|
|
Click to show internal directories.
Click to hide internal directories.