log

package
v0.0.0-...-10c04df Latest Latest
Warning

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

Go to latest
Published: Jan 13, 2016 License: MIT Imports: 4 Imported by: 0

Documentation

Overview

Package log will log last 1000 items in a datstore file an the system log. New records will push old records out of the datastore, but they will remain in the system log for the users system to manage

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func New

func New(entry, Type string)

New inserts a new log entry

Types

type Log

type Log struct {
	When string `json:"when"`
	Type string `json:"type"`
	Log  string `json:"log"`
}

Log is a log entry

func Get

func Get(Type string, page int) ([]*Log, error)

Get retrieves the logs for a given type / page if type is "" then return all logs of all types

Jump to

Keyboard shortcuts

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