Documentation
¶
Index ¶
- Variables
- func NewExecutableSchema(cfg Config) graphql.ExecutableSchema
- type ComplexityRoot
- type Config
- type DeviceKeyCreateInput
- type DeviceKeyParam
- type DirectiveRoot
- type InfectedEncounterCreateInput
- type InfectedEncountersCreateInput
- type InfectionAlert
- type InfectionCreateKey
- type InfectionCreateKeyInput
- type MutationResolver
- type OkPayload
- type QueryResolver
- type ResolverRoot
- type Risk
Constants ¶
This section is empty.
Variables ¶
View Source
var AllRisk = []Risk{ RiskHighRisk, RiskMiddleRisk, RiskLowRisk, }
Functions ¶
func NewExecutableSchema ¶
func NewExecutableSchema(cfg Config) graphql.ExecutableSchema
NewExecutableSchema creates an ExecutableSchema from the ResolverRoot interface.
Types ¶
type ComplexityRoot ¶
type ComplexityRoot struct { InfectionAlert struct { HowManyEncounters func(childComplexity int) int Risk func(childComplexity int) int } InfectionCreateKey struct { Key func(childComplexity int) int Password func(childComplexity int) int } Mutation struct { CreateDeviceKey func(childComplexity int, input DeviceKeyCreateInput) int CreateInfectedEncounters func(childComplexity int, input InfectedEncountersCreateInput) int CreateInfectionCreateKey func(childComplexity int, singleSignOnKey string, singleSignOnSecondKey string) int CreateInfectionCreateKeyUnauthorized func(childComplexity int) int DeleteInfectedEncountersOnKeys func(childComplexity int, keys []*DeviceKeyParam) int RemoveDeviceKeys func(childComplexity int, keys []*DeviceKeyParam) int } OkPayload struct { Ok func(childComplexity int) int } Query struct { InfectedEncounters func(childComplexity int, deviceHashesOfMyOwn []*DeviceKeyParam) int } }
type Config ¶
type Config struct { Resolvers ResolverRoot Directives DirectiveRoot Complexity ComplexityRoot }
type DeviceKeyCreateInput ¶
type DeviceKeyParam ¶
type DirectiveRoot ¶
type DirectiveRoot struct { }
type InfectedEncountersCreateInput ¶
type InfectedEncountersCreateInput struct { InfectionCreateKey *InfectionCreateKeyInput `json:"infectionCreateKey"` InfectedEncounters []*InfectedEncounterCreateInput `json:"infectedEncounters"` }
type InfectionAlert ¶
type InfectionCreateKey ¶
type InfectionCreateKeyInput ¶
type MutationResolver ¶
type MutationResolver interface { CreateInfectedEncounters(ctx context.Context, input InfectedEncountersCreateInput) (*OkPayload, error) CreateDeviceKey(ctx context.Context, input DeviceKeyCreateInput) (*OkPayload, error) DeleteInfectedEncountersOnKeys(ctx context.Context, keys []*DeviceKeyParam) (*OkPayload, error) RemoveDeviceKeys(ctx context.Context, keys []*DeviceKeyParam) (*OkPayload, error) CreateInfectionCreateKey(ctx context.Context, singleSignOnKey string, singleSignOnSecondKey string) (*InfectionCreateKey, error) }
type QueryResolver ¶
type QueryResolver interface {
InfectedEncounters(ctx context.Context, deviceHashesOfMyOwn []*DeviceKeyParam) ([]*InfectionAlert, error)
}
type ResolverRoot ¶
type ResolverRoot interface { Mutation() MutationResolver Query() QueryResolver }
Click to show internal directories.
Click to hide internal directories.