trace

package
v0.0.0-...-fd2add7 Latest Latest
Warning

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

Go to latest
Published: Nov 21, 2016 License: Apache-2.0, Apache-2.0 Imports: 7 Imported by: 0

Documentation

Overview

Package trace implements an ad-hoc tracing system

Index

Constants

View Source
const (
	READ = Op(iota)
	WRITE
)

Variables

This section is empty.

Functions

func DeferPrintOp

func DeferPrintOp(frame Frame, err *error, proto string, op Op, msg fmt.Stringer)

func PrintOp

func PrintOp(err error, proto string, op Op, msg fmt.Stringer) string

func TakeTicket

func TakeTicket() string

Types

type Frame

type Frame interface {
	Refine(sub ...string) Frame
	Bind(interface{})

	Println(v ...interface{})
	Print(v ...interface{})
	Printf(format string, v ...interface{})
	String() string
	Chain() []string
}

Frame …

func NewFrame

func NewFrame(s ...string) Frame

type Framed

type Framed interface {
	Frame() Frame
}

Framed is an object that has a Frame

type Op

type Op int

Jump to

Keyboard shortcuts

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