Discover Packages
github.com/jbenet/go-ipfs
thirdparty
loggables
package
Version:
v0.4.3-dev
Opens a new window with list of versions in this module.
Published: Jul 3, 2016
License: MIT
Opens a new window with license information.
Imports: 5
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
Documentation Source Files Overview Index Constants Variables Functions Types Error(e) NetConn(c) Uuid(key) type DeferredMap Dial(sys, lid, rid, laddr, raddr) (m) Loggable()
Documentation
¶
Package loggables includes a bunch of translator 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 pollute it.
func Error (e error ) logging.Loggable
Error returns an eventlog.Metadata with an error
func NetConn (c net.Conn) logging.Loggable
NetConn returns an eventlog.Metadata with the conn addresses
func Uuid (key string ) logging.Metadata
type DeferredMap map [string ]interface {}
DeferredMap is a Loggable which may contain deferred values.
func Dial (sys string , lid, rid peer.ID, laddr, raddr ma.Multiaddr) DeferredMap
Dial metadata is metadata for dial events
func (m DeferredMap) Loggable() map [string ]interface {}
Loggable describes objects that can be marshalled into Metadata for logging
Source Files
¶
Click to show internal directories.
Click to hide internal directories.