loggables

package
v0.3.5 Latest Latest
Warning

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

Go to latest
Published: Jun 12, 2015 License: MIT Imports: 4 Imported by: 0

Documentation

Overview

Package loggables includes a bunch of transaltor functions for commonplace/stdlib objects. This is boilerplate code that shouldn't change much, and not sprinkled all over the place (i.e. gather it here).

Note: it may make sense to put all stdlib Loggable functions in the eventlog package. Putting it here for now in case we don't want to polute it.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Error

func Error(e error) log.Loggable

Error returns an eventlog.Metadata with an error

func NetConn

func NetConn(c net.Conn) log.Loggable

NetConn returns an eventlog.Metadata with the conn addresses

Types

type DeferredMap

type DeferredMap map[string]interface{}

DeferredMap is a Loggable which may contained deffered values.

func Dial

func Dial(sys string, lid, rid peer.ID, laddr, raddr ma.Multiaddr) DeferredMap

Dial metadata is metadata for dial events

func (DeferredMap) Loggable

func (m DeferredMap) Loggable() map[string]interface{}

Loggable describes objects that can be marshalled into Metadata for logging

Jump to

Keyboard shortcuts

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