Documentation
¶
Overview ¶
Package core create your graphql server
This package has functions to mount the schema and server your application, authenticate, serve static file, etc.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func RegisterPrivateSchema ¶
func RegisterPrivateSchema(endpoint string, schema Schema, resolver graphql.PrivateResolver, opt ...graphql.SchemaOpt)
RegisterPrivateSchema register your private schema to a resolver in an endpoint
RegisterPrivateSchema only calls RegisterSchema, but you may to use it if you want to garantee that your resolver is a PrivateResolver and you have a closed Schema.
func RegisterSchema ¶
RegisterSchema register your schema to a resolver in an endpoint
Types ¶
type Project ¶
type Project struct {
AbsPath string `toml:"abs_path"`
ImportPath string `toml:"import_path"`
Name string
GoVersion string `toml:"go_version"`
AppMode string `toml:"app_mode"`
Config config `toml:"config"`
}
Project model
func (Project) ConfigPath ¶
ConfigPath is the path to package lib
func (Project) LoadDotEnv ¶
func (p Project) LoadDotEnv()
func (Project) ResolverPath ¶
ResolverPath is the path to package resolver
func (Project) ScalarPath ¶
ScalarPath is the path to package scalar
func (Project) SchemaPath ¶
SchemaPath is the path to package schema
Click to show internal directories.
Click to hide internal directories.