server

package
v0.0.0-...-4a4d21a Latest Latest
Warning

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

Go to latest
Published: Apr 16, 2020 License: Apache-2.0 Imports: 14 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AdminLogin

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

func ImageHandler

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

func Login

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

func NewHTTPServer

func NewHTTPServer(port string) (*http.Server, error)

NewHTTPServer - returns a new *http.Server instance bootstrapped with our own GraphQL server.

Types

type User

type User struct {
	Username string `json:"username"`
	Password string `json:"password"`
}

Jump to

Keyboard shortcuts

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