subsist

package module
v0.0.1 Latest Latest
Warning

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

Go to latest
Published: Jan 8, 2024 License: LGPL-3.0 Imports: 7 Imported by: 0

README

subsist

Minimalist querying. Work in progress.

to do

  • error handling: add to error field in return
  • write docs
  • write specification

Documentation

Overview

A package for providing a minimalist API querying

Index

Constants

View Source
const (
	ContextVariables = "b1aaf7cd-86a4-4918-9082-9793317f31e2" // Input variables for the query
	ContextParent    = "3f493a59-bb42-4422-9f21-ad40d67db70d" // Resolver parent value
)

Constants for accessing special values from the context

Variables

This section is empty.

Functions

func MakeQuery

func MakeQuery(w io.Writer, r io.ReadCloser, g interface{}) error

Make a query using a default context

func MakeQueryWithContext

func MakeQueryWithContext(ctx context.Context, w io.Writer, r io.ReadCloser, g interface{}) error

Make a query passing in a context

Types

type Query

type Query struct {
	Query     map[string]interface{} `json:"query"`
	Variables interface{}            `json:"variables"`
}

A Query represents an input query to subsist

Directories

Path Synopsis
cmd

Jump to

Keyboard shortcuts

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