webserver

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Oct 29, 2019 License: Apache-2.0 Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetPort

func GetPort() string

func GetS3Files

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

Takes JSON input "Bucket" & "Filepaths"

func InterfaceMethod

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

func PrintMoviesInCinema

func PrintMoviesInCinema(cinema Cinema) string

func Simple

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

func Start

func Start()

func StartMining

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

Types

type Cinema

type Cinema interface {
	// contains filtered or unexported methods
}

type Event

type Event struct {
	Type      string `json:"type"`
	Timestamp string `json:"timestamp"`
	Content   string `json:"content"`
}

Define our message object

type Input

type Input struct {
	Bucket    string   `json:"bucket"`
	Filepaths []string `json:"filepaths"`
}

type MineShipment

type MineShipment struct {
	Items []string
}

type Movie

type Movie struct {
	Title  string `json:"title"`
	Rating string `json:"rating"`
	Year   int    `json:"year"`
}

Jump to

Keyboard shortcuts

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