Documentation ¶
Index ¶
- func NewExecutableSchema(cfg Config) graphql.ExecutableSchema
- type BasicMessageConnectionResolver
- type BasicMessageResolver
- type ComplexityRoot
- type Config
- type CredentialConnectionResolver
- type CredentialResolver
- type DirectiveRoot
- type EventConnectionResolver
- type EventResolver
- type JobConnectionResolver
- type JobResolver
- type MutationResolver
- type PairwiseConnectionResolver
- type PairwiseResolver
- type ProofConnectionResolver
- type ProofResolver
- type QueryResolver
- type ResolverRoot
- type SubscriptionResolver
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 BasicMessageResolver ¶
type ComplexityRoot ¶
type ComplexityRoot struct { BasicMessage struct { Connection func(childComplexity int) int CreatedMs func(childComplexity int) int Delivered func(childComplexity int) int ID func(childComplexity int) int Message func(childComplexity int) int SentByMe func(childComplexity int) int } BasicMessageConnection struct { ConnectionID func(childComplexity int) int Edges func(childComplexity int) int Nodes func(childComplexity int) int PageInfo func(childComplexity int) int TotalCount func(childComplexity int) int } BasicMessageEdge struct { Cursor func(childComplexity int) int Node func(childComplexity int) int } Credential struct { ApprovedMs func(childComplexity int) int Attributes func(childComplexity int) int Connection func(childComplexity int) int CreatedMs func(childComplexity int) int CredDefID func(childComplexity int) int ID func(childComplexity int) int InitiatedByUs func(childComplexity int) int IssuedMs func(childComplexity int) int Role func(childComplexity int) int SchemaID func(childComplexity int) int } CredentialConnection struct { ConnectionID func(childComplexity int) int Edges func(childComplexity int) int Nodes func(childComplexity int) int PageInfo func(childComplexity int) int TotalCount func(childComplexity int) int } CredentialEdge struct { Cursor func(childComplexity int) int Node func(childComplexity int) int } CredentialMatch struct { CredentialID func(childComplexity int) int ID func(childComplexity int) int Value func(childComplexity int) int } CredentialValue struct { ID func(childComplexity int) int Name func(childComplexity int) int Value func(childComplexity int) int } Event struct { Connection func(childComplexity int) int CreatedMs func(childComplexity int) int Description func(childComplexity int) int ID func(childComplexity int) int Job func(childComplexity int) int Read func(childComplexity int) int } EventConnection struct { ConnectionID func(childComplexity int) int Edges func(childComplexity int) int Nodes func(childComplexity int) int PageInfo func(childComplexity int) int TotalCount func(childComplexity int) int } EventEdge struct { Cursor func(childComplexity int) int Node func(childComplexity int) int } InvitationResponse struct { Endpoint func(childComplexity int) int ID func(childComplexity int) int ImageB64 func(childComplexity int) int Label func(childComplexity int) int Raw func(childComplexity int) int } Job struct { CreatedMs func(childComplexity int) int ID func(childComplexity int) int InitiatedByUs func(childComplexity int) int Output func(childComplexity int) int Protocol func(childComplexity int) int Result func(childComplexity int) int Status func(childComplexity int) int UpdatedMs func(childComplexity int) int } JobConnection struct { Completed func(childComplexity int) int ConnectionID func(childComplexity int) int Edges func(childComplexity int) int Nodes func(childComplexity int) int PageInfo func(childComplexity int) int TotalCount func(childComplexity int) int } JobEdge struct { Cursor func(childComplexity int) int Node func(childComplexity int) int } JobOutput struct { Connection func(childComplexity int) int Credential func(childComplexity int) int Message func(childComplexity int) int Proof func(childComplexity int) int } LoginResponse struct { Token func(childComplexity int) int } Mutation struct { Connect func(childComplexity int, input model.ConnectInput) int Invite func(childComplexity int) int MarkEventRead func(childComplexity int, input model.MarkReadInput) int Resume func(childComplexity int, input model.ResumeJobInput) int SendMessage func(childComplexity int, input model.MessageInput) int } PageInfo struct { EndCursor func(childComplexity int) int HasNextPage func(childComplexity int) int HasPreviousPage func(childComplexity int) int StartCursor func(childComplexity int) int } Pairwise struct { ApprovedMs func(childComplexity int) int CreatedMs func(childComplexity int) int Credentials func(childComplexity int, after *string, before *string, first *int, last *int) int Events func(childComplexity int, after *string, before *string, first *int, last *int) int ID func(childComplexity int) int Invited func(childComplexity int) int Jobs func(childComplexity int, after *string, before *string, first *int, last *int, completed *bool) int Messages func(childComplexity int, after *string, before *string, first *int, last *int) int OurDid func(childComplexity int) int Proofs func(childComplexity int, after *string, before *string, first *int, last *int) int TheirDid func(childComplexity int) int TheirEndpoint func(childComplexity int) int TheirLabel func(childComplexity int) int } PairwiseConnection struct { Edges func(childComplexity int) int Nodes func(childComplexity int) int PageInfo func(childComplexity int) int TotalCount func(childComplexity int) int } PairwiseEdge struct { Cursor func(childComplexity int) int Node func(childComplexity int) int } Proof struct { ApprovedMs func(childComplexity int) int Attributes func(childComplexity int) int Connection func(childComplexity int) int CreatedMs func(childComplexity int) int ID func(childComplexity int) int InitiatedByUs func(childComplexity int) int Provable func(childComplexity int) int Result func(childComplexity int) int Role func(childComplexity int) int Values func(childComplexity int) int VerifiedMs func(childComplexity int) int } ProofAttribute struct { CredDefID func(childComplexity int) int ID func(childComplexity int) int Name func(childComplexity int) int } ProofConnection struct { ConnectionID func(childComplexity int) int Edges func(childComplexity int) int Nodes func(childComplexity int) int PageInfo func(childComplexity int) int TotalCount func(childComplexity int) int } ProofEdge struct { Cursor func(childComplexity int) int Node func(childComplexity int) int } ProofValue struct { AttributeID func(childComplexity int) int ID func(childComplexity int) int Value func(childComplexity int) int } Provable struct { Attributes func(childComplexity int) int ID func(childComplexity int) int Provable func(childComplexity int) int } ProvableAttribute struct { Attribute func(childComplexity int) int Credentials func(childComplexity int) int ID func(childComplexity int) int } Query struct { Connection func(childComplexity int, id string) int Connections func(childComplexity int, after *string, before *string, first *int, last *int) int Credential func(childComplexity int, id string) int Credentials func(childComplexity int, after *string, before *string, first *int, last *int) int Endpoint func(childComplexity int, payload string) int Event func(childComplexity int, id string) int Events func(childComplexity int, after *string, before *string, first *int, last *int) int Job func(childComplexity int, id string) int Jobs func(childComplexity int, after *string, before *string, first *int, last *int, completed *bool) int Message func(childComplexity int, id string) int Proof func(childComplexity int, id string) int User func(childComplexity int) int } Response struct { Ok func(childComplexity int) int } Subscription struct { EventAdded func(childComplexity int) int } User struct { ID func(childComplexity int) int Name func(childComplexity int) int } }
type Config ¶
type Config struct { Resolvers ResolverRoot Directives DirectiveRoot Complexity ComplexityRoot }
type CredentialResolver ¶
type DirectiveRoot ¶
type DirectiveRoot struct { }
type EventConnectionResolver ¶
type EventResolver ¶
type JobConnectionResolver ¶
type JobResolver ¶
type MutationResolver ¶
type MutationResolver interface { MarkEventRead(ctx context.Context, input model.MarkReadInput) (*model.Event, error) Invite(ctx context.Context) (*model.InvitationResponse, error) Connect(ctx context.Context, input model.ConnectInput) (*model.Response, error) SendMessage(ctx context.Context, input model.MessageInput) (*model.Response, error) Resume(ctx context.Context, input model.ResumeJobInput) (*model.Response, error) }
type PairwiseResolver ¶
type PairwiseResolver interface { Messages(ctx context.Context, obj *model.Pairwise, after *string, before *string, first *int, last *int) (*model.BasicMessageConnection, error) Credentials(ctx context.Context, obj *model.Pairwise, after *string, before *string, first *int, last *int) (*model.CredentialConnection, error) Proofs(ctx context.Context, obj *model.Pairwise, after *string, before *string, first *int, last *int) (*model.ProofConnection, error) Jobs(ctx context.Context, obj *model.Pairwise, after *string, before *string, first *int, last *int, completed *bool) (*model.JobConnection, error) Events(ctx context.Context, obj *model.Pairwise, after *string, before *string, first *int, last *int) (*model.EventConnection, error) }
type ProofConnectionResolver ¶
type ProofResolver ¶
type QueryResolver ¶
type QueryResolver interface { Connections(ctx context.Context, after *string, before *string, first *int, last *int) (*model.PairwiseConnection, error) Connection(ctx context.Context, id string) (*model.Pairwise, error) Message(ctx context.Context, id string) (*model.BasicMessage, error) Credential(ctx context.Context, id string) (*model.Credential, error) Credentials(ctx context.Context, after *string, before *string, first *int, last *int) (*model.CredentialConnection, error) Proof(ctx context.Context, id string) (*model.Proof, error) Events(ctx context.Context, after *string, before *string, first *int, last *int) (*model.EventConnection, error) Event(ctx context.Context, id string) (*model.Event, error) Jobs(ctx context.Context, after *string, before *string, first *int, last *int, completed *bool) (*model.JobConnection, error) Job(ctx context.Context, id string) (*model.Job, error) User(ctx context.Context) (*model.User, error) Endpoint(ctx context.Context, payload string) (*model.InvitationResponse, error) }
type ResolverRoot ¶
type ResolverRoot interface { BasicMessage() BasicMessageResolver BasicMessageConnection() BasicMessageConnectionResolver Credential() CredentialResolver CredentialConnection() CredentialConnectionResolver Event() EventResolver EventConnection() EventConnectionResolver Job() JobResolver JobConnection() JobConnectionResolver Mutation() MutationResolver Pairwise() PairwiseResolver PairwiseConnection() PairwiseConnectionResolver Proof() ProofResolver ProofConnection() ProofConnectionResolver Query() QueryResolver Subscription() SubscriptionResolver }
Click to show internal directories.
Click to hide internal directories.