devlog

package module
v0.2.1 Latest Latest
Warning

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

Go to latest
Published: Jan 6, 2020 License: MIT Imports: 13 Imported by: 0

README

devlog

Simple development logging

Documentation

Index

Constants

This section is empty.

Variables

View Source
var DataMap sync.Map

DataMap is the primary map where we store the data

Functions

func AddData

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

AddData will take a post request and add it to the data set

func GetData

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

GetData will get the current data set and return it back

func GetHTML

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

GetHTML will get the index html file

func Server

func Server(portNum string)

Server is the function that starts an http server

Types

type Data

type Data struct {
	ID        string      `json:"id"`
	Level     string      `json:"level"`
	Data      interface{} `json:"data"`
	CreatedAt int64       `json:"created_at"`
}

Data is the primary struct that contains the main information

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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