log

package
v0.0.0-...-c683906 Latest Latest
Warning

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

Go to latest
Published: Oct 16, 2018 License: MIT Imports: 6 Imported by: 2

README

Log API Documentation

/*
Relative API Path:
  api/log/read
Request:
  {
    "name": string
  }
Response(200, 404, 405):
  [log contents]
*/
func Read(res http.ResponseWriter, req *http.Request) bool {}

/*
Relative API Path:
  api/log/delete
Request:
  {
    "name": string
  }
Response(204, 404, 405):
  N/A
*/
func Delete(res http.ResponseWriter, req *http.Request) bool {}

Documentation

Overview

Package log is a child of package api to handle api calls concerning log files

Package log is a child of package api to handle api calls concerning log files

Package log is a child of package api to handle api calls concerning log files

Index

Constants

View Source
const (
	LOG_PUBLIC_ERRORS  = "public_errors.log"
	LOG_ACCOUNT_ERRORS = "account_errors.log"
	LOG_SERVER_ERRORS  = "server/logs/server_errors.log"
	LOG_PUBLIC_LOAD    = "public_load_time.log"
)

Variables

This section is empty.

Functions

func Read

func Read(res http.ResponseWriter, req *http.Request, logger *log.Logger, dir string) bool

Read function is accessed from api/logs/read and will attempt to read a given log based off of the request data.

func Truncate

func Truncate(res http.ResponseWriter, req *http.Request, logger *log.Logger, dir string) bool

Delete function is accessed from api/logs/delete and will attempt to delete a given log based off of request data.

Types

This section is empty.

Jump to

Keyboard shortcuts

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