mole

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

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

Go to latest
Published: Sep 18, 2015 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func DatabaseMiddleware

func DatabaseMiddleware(addr, db string) gin.HandlerFunc

func ReportHandler

func ReportHandler(c *gin.Context)

func RetrieveHandler

func RetrieveHandler(c *gin.Context)

func SingleLogHandler

func SingleLogHandler(c *gin.Context)

Types

type ActionStateHistory

type ActionStateHistory struct {
	Action interface{} `json:"action"`
	State  interface{} `json:"state"`
}

type Error

type Error struct {
	Message    string            `json:"message"`
	Stacktrace []StracktraceLine `json:"stacktrace"`
}

type Location

type Location struct {
	Host     string `json:"host"`
	Href     string `json:"href"`
	Hash     string `json:"hash"`
	Pathname string `json:"pathname"`
	Port     string `json:"port"`
	Protocol string `json:"protocol"`
	Search   string `json:"search"`
}

type Log

type Log struct {
	Id                 bson.ObjectId        `bson:"_id" json:"id"`
	Timestamp          string               `json:"timestamp" binding:"required"`
	CreatedAt          time.Time            `bson:"created_at" json:"-"`
	Location           Location             `json:"location" binding:"required"`
	Error              Error                `json:"error" binding:"required"`
	ActionStateHistory []ActionStateHistory `json:"action_state_history"`
}

type StracktraceLine

type StracktraceLine struct {
	Function string `json:"function"`
	File     string `json:"file"`
	Line     int    `json:"line"`
	Column   int    `json:"column"`
}

Jump to

Keyboard shortcuts

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