stack

package
v0.10.1 Latest Latest
Warning

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

Go to latest
Published: Apr 7, 2022 License: Apache-2.0 Imports: 11 Imported by: 33

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Enable

func Enable(err error) error

func Formatter

func Formatter(err error) fmt.Formatter

func Helper

func Helper()

func SetVersionInfo

func SetVersionInfo(v, r string)

func Wrap

func Wrap(err error, s Stack) error

Types

type Frame

type Frame struct {
	Name                 string   `protobuf:"bytes,1,opt,name=Name,proto3" json:"Name,omitempty"`
	File                 string   `protobuf:"bytes,2,opt,name=File,proto3" json:"File,omitempty"`
	Line                 int32    `protobuf:"varint,3,opt,name=Line,proto3" json:"Line,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

func (*Frame) Descriptor

func (*Frame) Descriptor() ([]byte, []int)

func (*Frame) GetFile

func (m *Frame) GetFile() string

func (*Frame) GetLine

func (m *Frame) GetLine() int32

func (*Frame) GetName

func (m *Frame) GetName() string

func (*Frame) ProtoMessage

func (*Frame) ProtoMessage()

func (*Frame) Reset

func (m *Frame) Reset()

func (*Frame) String

func (m *Frame) String() string

func (*Frame) XXX_DiscardUnknown

func (m *Frame) XXX_DiscardUnknown()

func (*Frame) XXX_Marshal

func (m *Frame) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*Frame) XXX_Merge

func (m *Frame) XXX_Merge(src proto.Message)

func (*Frame) XXX_Size

func (m *Frame) XXX_Size() int

func (*Frame) XXX_Unmarshal

func (m *Frame) XXX_Unmarshal(b []byte) error

type Stack

type Stack struct {
	Frames               []*Frame `protobuf:"bytes,1,rep,name=frames,proto3" json:"frames,omitempty"`
	Cmdline              []string `protobuf:"bytes,2,rep,name=cmdline,proto3" json:"cmdline,omitempty"`
	Pid                  int32    `protobuf:"varint,3,opt,name=pid,proto3" json:"pid,omitempty"`
	Version              string   `protobuf:"bytes,4,opt,name=version,proto3" json:"version,omitempty"`
	Revision             string   `protobuf:"bytes,5,opt,name=revision,proto3" json:"revision,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

func Traces

func Traces(err error) []*Stack

func (*Stack) Descriptor

func (*Stack) Descriptor() ([]byte, []int)

func (*Stack) GetCmdline

func (m *Stack) GetCmdline() []string

func (*Stack) GetFrames

func (m *Stack) GetFrames() []*Frame

func (*Stack) GetPid

func (m *Stack) GetPid() int32

func (*Stack) GetRevision

func (m *Stack) GetRevision() string

func (*Stack) GetVersion

func (m *Stack) GetVersion() string

func (*Stack) ProtoMessage

func (*Stack) ProtoMessage()

func (*Stack) Reset

func (m *Stack) Reset()

func (*Stack) String

func (m *Stack) String() string

func (*Stack) XXX_DiscardUnknown

func (m *Stack) XXX_DiscardUnknown()

func (*Stack) XXX_Marshal

func (m *Stack) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*Stack) XXX_Merge

func (m *Stack) XXX_Merge(src proto.Message)

func (*Stack) XXX_Size

func (m *Stack) XXX_Size() int

func (*Stack) XXX_Unmarshal

func (m *Stack) XXX_Unmarshal(b []byte) error

Jump to

Keyboard shortcuts

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