utils

package
v0.1.5 Latest Latest
Warning

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

Go to latest
Published: Sep 27, 2022 License: MIT Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Client added in v0.1.0

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

Client struct

func NewClient added in v0.1.0

func NewClient() *Client

NewClient creates a Client instance

func (*Client) LockExists added in v0.1.0

func (c *Client) LockExists(lockName string) LockRespnse

LockExists checks if lock exists

func (*Client) Sent added in v0.1.0

func (c *Client) Sent(requestPayload interface{}) (*http.Response, error)

Sent sents the give payload to Ray

func (*Client) SetHost added in v0.1.0

func (c *Client) SetHost(host string) string

SetHost Sets the host

func (*Client) SetPort added in v0.1.0

func (c *Client) SetPort(port int) int

SetPort Sets the port

type Frame added in v0.1.0

type Frame struct {
	Function    string                 `json:"function,omitempty"`
	Symbol      string                 `json:"symbol,omitempty"`
	Module      string                 `json:"module,omitempty"`
	Package     string                 `json:"package,omitempty"`
	Filename    string                 `json:"filename,omitempty"`
	AbsPath     string                 `json:"abs_path,omitempty"`
	Lineno      int                    `json:"lineno,omitempty"`
	Colno       int                    `json:"colno,omitempty"`
	PreContext  []string               `json:"pre_context,omitempty"`
	ContextLine string                 `json:"context_line,omitempty"`
	PostContext []string               `json:"post_context,omitempty"`
	InApp       bool                   `json:"in_app,omitempty"`
	Vars        map[string]interface{} `json:"vars,omitempty"`
}

Frame represents a function call and it's metadata. Frames are associated with a Stacktrace.

func NewFrame added in v0.1.0

func NewFrame(f runtime.Frame) Frame

NewFrame assembles a stacktrace frame out of runtime.Frame.

type LockRespnse added in v0.1.0

type LockRespnse struct {
	Name          string `json:"name"`
	Active        bool   `json:"active"`
	StopExecution bool   `json:"stop_execution"`
	GroupUuid     string `json:"displayed_on_group_uuid"`
}

LockRespnse struct

type Stacktrace added in v0.1.0

type Stacktrace struct {
	Frames        []Frame `json:"frames,omitempty"`
	FramesOmitted []uint  `json:"frames_omitted,omitempty"`
}

Stacktrace holds information about the frames of the stack.

func ExtractStacktrace added in v0.1.0

func ExtractStacktrace(err error) *Stacktrace

ExtractStacktrace creates a new Stacktrace based on the given error.

func NewStacktrace added in v0.1.0

func NewStacktrace() *Stacktrace

NewStacktrace creates a stacktrace using runtime.Callers.

Jump to

Keyboard shortcuts

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