cmd

package
v0.3.0-beta Latest Latest
Warning

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

Go to latest
Published: Apr 16, 2018 License: MIT Imports: 34 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// クライアントから受信したアイテムのバッファサイズ。
	// 単位はメッセージの個数。
	DefaultReceiveBufferSize = 128
)

Variables

View Source
var RootCmd = &cobra.Command{
	Use:   "cmd",
	Short: "Function calls tracer for golang",

	SilenceErrors: true,
	SilenceUsage:  true,
}

RootCmd represents the base command when called without any subcommands

Functions

func Execute

func Execute() int

Types

type JsonLogWriter

type JsonLogWriter struct {
	// contains filtered or unexported fields
}

func NewJsonLogWriter

func NewJsonLogWriter(output io.Writer) *JsonLogWriter

func (*JsonLogWriter) SetGoFuncGetter

func (w *JsonLogWriter) SetGoFuncGetter(func(pc uintptr) types.GoFunc)

func (*JsonLogWriter) SetGoLineGetter

func (w *JsonLogWriter) SetGoLineGetter(func(pc uintptr) types.GoLine)

func (*JsonLogWriter) Write

func (w *JsonLogWriter) Write(evt types.FuncLog) error

func (*JsonLogWriter) WriteHeader

func (w *JsonLogWriter) WriteHeader() error

type LogWriter

type LogWriter interface {
	WriteHeader() error
	Write(evt types.FuncLog) error
	SetGoFuncGetter(func(pc uintptr) types.GoFunc)
	SetGoLineGetter(func(pc uintptr) types.GoLine)
}

func NewLogWriter

func NewLogWriter(format string, out io.Writer) (LogWriter, error)

type ServerHandlerMaker

type ServerHandlerMaker struct {
	Storage *storage.Storage
	SSStore *simulator.StateSimulatorStore
	// contains filtered or unexported fields
}

func (*ServerHandlerMaker) NewConnHandler

type TextLogWriter

type TextLogWriter struct {
	// contains filtered or unexported fields
}

func NewTextLogWriter

func NewTextLogWriter(output io.Writer) *TextLogWriter

func (*TextLogWriter) SetGoFuncGetter

func (w *TextLogWriter) SetGoFuncGetter(f func(pc uintptr) types.GoFunc)

func (*TextLogWriter) SetGoLineGetter

func (w *TextLogWriter) SetGoLineGetter(f func(pc uintptr) types.GoLine)

func (*TextLogWriter) Write

func (w *TextLogWriter) Write(evt types.FuncLog) error

func (*TextLogWriter) WriteHeader

func (w *TextLogWriter) WriteHeader() error

Jump to

Keyboard shortcuts

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