server

package
v0.0.0-...-a0d54a6 Latest Latest
Warning

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

Go to latest
Published: Jun 23, 2021 License: Apache-2.0 Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ArticlesResponse

type ArticlesResponse struct {
	Articles []db.Article `json:"articles"`
	AsOf     string       `json:"as_of"`
}

type Server

type Server struct {
	// contains filtered or unexported fields
}

Server is an http.Handler for a graphql server for this application.

func New

func New(conn *db.DB) *Server

New creates a new Server.

func (*Server) ServeHTTP

func (s *Server) ServeHTTP(w http.ResponseWriter, r *http.Request)

Jump to

Keyboard shortcuts

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