Documentation ¶
Index ¶
- func NewExecutableSchema(cfg Config) graphql.ExecutableSchema
- type CommentResolver
- type ComplexityRoot
- type Config
- type DirectiveRoot
- type EventResolver
- type EventStatus
- type GroupResolver
- type MemberResolver
- type QueryResolver
- type Resolver
- func (r *Resolver) Comment() CommentResolver
- func (r *Resolver) Event() EventResolver
- func (r *Resolver) Group() GroupResolver
- func (r *Resolver) Member() MemberResolver
- func (r *Resolver) Query() QueryResolver
- func (r *Resolver) Rsvp() RsvpResolver
- func (r *Resolver) Subscription() SubscriptionResolver
- type ResolverRoot
- type RsvpResolver
- type RsvpResponse
- 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 CommentResolver ¶
type ComplexityRoot ¶
type ComplexityRoot struct { Comment struct { Id func(childComplexity int) int Comment func(childComplexity int) int Created func(childComplexity int) int Likes func(childComplexity int) int Member func(childComplexity int) int } Event struct { Id func(childComplexity int) int Name func(childComplexity int) int Description func(childComplexity int) int Created func(childComplexity int) int Duration func(childComplexity int) int RsvpLimit func(childComplexity int) int Status func(childComplexity int) int Time func(childComplexity int) int WaitlistCount func(childComplexity int) int YesRsvpcount func(childComplexity int) int Venue func(childComplexity int) int Link func(childComplexity int) int Rsvp func(childComplexity int, response *RsvpResponse) int } Group struct { Id func(childComplexity int) int Name func(childComplexity int) int Who func(childComplexity int) int Events func(childComplexity int, status *EventStatus) int } Member struct { Id func(childComplexity int) int Name func(childComplexity int) int IsHost func(childComplexity int) int } Query struct { Group func(childComplexity int, name string) int } Rsvp struct { Created func(childComplexity int) int Updated func(childComplexity int) int Response func(childComplexity int) int Guests func(childComplexity int) int Member func(childComplexity int) int } Subscription struct { CommentPosted func(childComplexity int, groupName string, eventID string) int } Venue struct { Id func(childComplexity int) int Name func(childComplexity int) int Address func(childComplexity int) int City func(childComplexity int) int Country func(childComplexity int) int } }
type Config ¶
type Config struct { Resolvers ResolverRoot Directives DirectiveRoot Complexity ComplexityRoot }
type DirectiveRoot ¶
type DirectiveRoot struct { }
type EventResolver ¶
type EventResolver interface { Created(ctx context.Context, obj *meetup.Event) (string, error) Status(ctx context.Context, obj *meetup.Event) (EventStatus, error) Time(ctx context.Context, obj *meetup.Event) (string, error) Rsvp(ctx context.Context, obj *meetup.Event, response *RsvpResponse) ([]*meetup.RSVP, error) }
type EventStatus ¶
type EventStatus string
const ( EventStatusCancelled EventStatus = "cancelled" EventStatusDraft EventStatus = "draft" EventStatusPast EventStatus = "past" EventStatusProposed EventStatus = "proposed" EventStatusSuggested EventStatus = "suggested" EventStatusUpcoming EventStatus = "upcoming" )
func (EventStatus) IsValid ¶
func (e EventStatus) IsValid() bool
func (EventStatus) MarshalGQL ¶
func (e EventStatus) MarshalGQL(w io.Writer)
func (EventStatus) String ¶
func (e EventStatus) String() string
func (*EventStatus) UnmarshalGQL ¶
func (e *EventStatus) UnmarshalGQL(v interface{}) error
type GroupResolver ¶
type MemberResolver ¶
type QueryResolver ¶
type Resolver ¶
Resolver is the root GraphQL Resolver.
func (*Resolver) Comment ¶
func (r *Resolver) Comment() CommentResolver
Comment returns a CommentResolver.
func (*Resolver) Member ¶
func (r *Resolver) Member() MemberResolver
Member returns a MemberResolver
func (*Resolver) Subscription ¶
func (r *Resolver) Subscription() SubscriptionResolver
Subscription returns a SubscriptionResolver
type ResolverRoot ¶
type ResolverRoot interface { Comment() CommentResolver Event() EventResolver Group() GroupResolver Member() MemberResolver Query() QueryResolver Rsvp() RsvpResolver Subscription() SubscriptionResolver }
type RsvpResolver ¶
type RsvpResponse ¶
type RsvpResponse string
const ( RsvpResponseYes RsvpResponse = "yes" RsvpResponseNo RsvpResponse = "no" )
func (RsvpResponse) IsValid ¶
func (e RsvpResponse) IsValid() bool
func (RsvpResponse) MarshalGQL ¶
func (e RsvpResponse) MarshalGQL(w io.Writer)
func (RsvpResponse) String ¶
func (e RsvpResponse) String() string
func (*RsvpResponse) UnmarshalGQL ¶
func (e *RsvpResponse) UnmarshalGQL(v interface{}) error
Click to show internal directories.
Click to hide internal directories.