graphql

package
v0.0.0-...-35ac193 Latest Latest
Warning

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

Go to latest
Published: Nov 10, 2019 License: GPL-3.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	ErrInvalidAuth        = errors.New("invalid authentication token")
	ErrMissingPermissions = errors.New("missing permissions for operation")
	ErrInternalServer     = errors.New("internal server error")
	ErrNotFound           = errors.New("not found")
	ErrMaxAttemptsReached = errors.New("max attempts reached")
	ErrDuplicate          = errors.New("duplicate submission")
	ErrTimedOut           = errors.New("timed out")
)
View Source
var Handler *handler.Handler

Handler is the thing that handles the gql endpoint

Functions

func Handle

func Handle(w http.ResponseWriter, r *http.Request)

Handle a gql connection with authorization

Types

type Challenge

type Challenge struct {
	ID          string    `json:"id"`
	Name        string    `json:"name"`
	Description string    `json:"description"`
	MaxAttempts int       `json:"max_attempts"`
	PublishDate time.Time `json:"publish_date"`
	ResultsDate time.Time `json:"results_date"`
}

Jump to

Keyboard shortcuts

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