Documentation ¶
Index ¶
- func InitSchema(fname string, db *sql.DB) *graphql.Schema
- type Dataset
- type DatasetResolver
- type Resolver
- func (r *Resolver) AddDataset(ctx context.Context, args struct{ ... }) (*bool, error)
- func (r *Resolver) DeleteDataset(ctx context.Context, args struct{ ... }) (*bool, error)
- func (r *Resolver) GetDataset(ctx context.Context, args struct{ ... }) (*DatasetResolver, error)
- func (r *Resolver) UpdateDataset(ctx context.Context, args struct{ ... }) (*bool, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type DatasetResolver ¶
type DatasetResolver struct {
// contains filtered or unexported fields
}
DatasetResolver provides dataset resolver
type Resolver ¶
type Resolver struct {
// contains filtered or unexported fields
}
Resolver is the root resolver it can hold some attribute to resolve our requests, e.g. a database pointer which we can use to execute the queries
func (*Resolver) AddDataset ¶
AddDataset implements addDataset of graphql schema
func (*Resolver) DeleteDataset ¶
DeleteDataset implements deleteDataset of graphql schema
func (*Resolver) GetDataset ¶
func (r *Resolver) GetDataset(ctx context.Context, args struct{ Name string }) (*DatasetResolver, error)
GetDataset resolves the getDataset query
Click to show internal directories.
Click to hide internal directories.