templates

package
v0.0.1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jun 30, 2019 License: MIT Imports: 0 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var Database = `` /* 1328-byte string literal not displayed */
View Source
var Dockerfile = `` /* 626-byte string literal not displayed */
View Source
var Filters = `` /* 2096-byte string literal not displayed */
View Source
var GQLGen = `` /* 706-byte string literal not displayed */
View Source
var Keys = `package gen

import (
)

type key int

const (
	KeyPrincipalID key = iota
)
`
View Source
var Model = `package gen

import (
	"time"
	"github.com/maiguangyang/graphql/resolvers"
)


{{range $object := .Model.Objects}}

type {{.Name}}ResultType struct {
	resolvers.EntityResultType
}

type {{.Name}} struct {
{{range $col := $object.Columns}}
	{{$col.MethodName}} {{$col.GoType}} ` + "`" + `{{$col.ModelTags}}` + "`" + `{{end}}

{{range $rel := $object.Relationships}}
{{$rel.MethodName}} {{$rel.GoType}} ` + "`" + `{{$rel.ModelTags}}` + "`" + `
{{end}}
}

{{end}}
`
View Source
var QueryFilters = `` /* 1957-byte string literal not displayed */
View Source
var Resolver = `` /* 5069-byte string literal not displayed */

Functions

This section is empty.

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL