Documentation
¶
Index ¶
Constants ¶
View Source
const ( TWITTER_DB_NAME = "twitter" TWITTER_COL_NAME = "tweets" )
Variables ¶
View Source
var (
Server = iris.New()
)
Functions ¶
func NewExecutableSchema ¶
func NewExecutableSchema(cfg Config) graphql.ExecutableSchema
NewExecutableSchema creates an ExecutableSchema from the ResolverRoot interface.
Types ¶
type ComplexityRoot ¶
type ComplexityRoot struct { Query struct { Tweets func(childComplexity int, page *Pagination, topic string, regexp string) int } Tweet struct { CreatedAt func(childComplexity int) int MongoID func(childComplexity int) int Text func(childComplexity int) int Topics func(childComplexity int) int TweetID func(childComplexity int) int User func(childComplexity int) int } TwitterUser struct { Description func(childComplexity int) int ID func(childComplexity int) int Name func(childComplexity int) int ScreenName func(childComplexity int) int } }
type Config ¶
type Config struct { Resolvers ResolverRoot Directives DirectiveRoot Complexity ComplexityRoot }
type DirectiveRoot ¶
type DirectiveRoot struct { }
type Pagination ¶
type QueryResolver ¶
type Resolver ¶
type Resolver struct{}
func (*Resolver) Query ¶
func (r *Resolver) Query() QueryResolver
func (*Resolver) Tweet ¶
func (r *Resolver) Tweet() TweetResolver
func (*Resolver) TwitterUser ¶
func (r *Resolver) TwitterUser() TwitterUserResolver
type ResolverRoot ¶
type ResolverRoot interface { Query() QueryResolver Tweet() TweetResolver TwitterUser() TwitterUserResolver }
type TweetResolver ¶
Click to show internal directories.
Click to hide internal directories.