Documentation ¶
Index ¶
Constants ¶
View Source
const ( FieldTypeString FieldType = "String" FieldTypeInt = "Int" FieldTypeFloat = "Float" FieldTypeBoolean = "Boolean" )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Column ¶
type Column struct { Type ColumnType Name string Alias string }
type ColumnType ¶
type ColumnType string
const ( Int ColumnType = "Int" Float ColumnType = "Float" String ColumnType = "String" )
type DefaultSqlHelper ¶
type DefaultSqlHelper struct {
// contains filtered or unexported fields
}
func NewDefaultSqlHelper ¶
func NewDefaultSqlHelper(tableName string, columns []*Column) *DefaultSqlHelper
func (*DefaultSqlHelper) Resolve ¶
func (d *DefaultSqlHelper) Resolve() graphql.FieldResolveFn
type Field ¶
type Field struct {
// contains filtered or unexported fields
}
func NewItemField ¶
func (*Field) Resolver ¶
func (f *Field) Resolver() graphql.FieldResolveFn
func (*Field) SetResolver ¶
func (f *Field) SetResolver(resolver graphql.FieldResolveFn)
type ItemHub ¶
type ItemHub struct {
// contains filtered or unexported fields
}
TODO HubSet 框架支持多个数据源
type SqlHelper ¶
type SqlHelper interface {
Resolve() graphql.FieldResolveFn
}
Click to show internal directories.
Click to hide internal directories.