loggables

package
v0.4.3 Latest Latest
Warning

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

Go to latest
Published: Sep 20, 2016 License: MIT Imports: 5 Imported by: 0

Documentation

Overview

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.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Error

func Error(e error) logging.Loggable

Error returns an eventlog.Metadata with an error

func NetConn

func NetConn(c net.Conn) logging.Loggable

NetConn returns an eventlog.Metadata with the conn addresses

func Uuid added in v0.4.2

func Uuid(key string) logging.Metadata

Types

type DeferredMap

type DeferredMap map[string]interface{}

DeferredMap is a Loggable which may contain deferred 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