stack

package
v0.0.0-...-2745715 Latest Latest
Warning

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

Go to latest
Published: Oct 10, 2023 License: Apache-2.0 Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var File_stack_proto protoreflect.FileDescriptor

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"`
	// contains filtered or unexported fields
}

func (*Frame) Descriptor deprecated

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

Deprecated: Use Frame.ProtoReflect.Descriptor instead.

func (*Frame) GetFile

func (x *Frame) GetFile() string

func (*Frame) GetLine

func (x *Frame) GetLine() int32

func (*Frame) GetName

func (x *Frame) GetName() string

func (*Frame) ProtoMessage

func (*Frame) ProtoMessage()

func (*Frame) ProtoReflect

func (x *Frame) ProtoReflect() protoreflect.Message

func (*Frame) Reset

func (x *Frame) Reset()

func (*Frame) String

func (x *Frame) String() string

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"`
	// contains filtered or unexported fields
}

func Traces

func Traces(err error) []*Stack

func (*Stack) Descriptor deprecated

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

Deprecated: Use Stack.ProtoReflect.Descriptor instead.

func (*Stack) GetCmdline

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

func (*Stack) GetFrames

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

func (*Stack) GetPid

func (x *Stack) GetPid() int32

func (*Stack) GetRevision

func (x *Stack) GetRevision() string

func (*Stack) GetVersion

func (x *Stack) GetVersion() string

func (*Stack) ProtoMessage

func (*Stack) ProtoMessage()

func (*Stack) ProtoReflect

func (x *Stack) ProtoReflect() protoreflect.Message

func (*Stack) Reset

func (x *Stack) Reset()

func (*Stack) String

func (x *Stack) String() string

Jump to

Keyboard shortcuts

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