acid

package
v0.0.0-...-b72ebd3 Latest Latest
Warning

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

Go to latest
Published: May 3, 2020 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Overview

Package acid implements a built-in API that exposes debugging, profiling, monitoring, and other worker facilities

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Acid

type Acid struct{}

func New

func New() *Acid

func (*Acid) CPUProfile

func (s *Acid) CPUProfile(duration time.Duration) ([]byte, error)

func (*Acid) OnBehalfCallStringer

func (s *Acid) OnBehalfCallStringer(service, proc string) (r string)

func (*Acid) Ping

func (s *Acid) Ping()

Ping is a nop. Its intended use is as a basic check whether a worker is still alive.

func (*Acid) RuntimeProfile

func (s *Acid) RuntimeProfile(name string, debug int) ([]byte, error)

RuntimeProfile exposes the Go runtime profiling framework of this worker

func (*Acid) Stat

func (s *Acid) Stat() *Stat

type Stat

type Stat struct {
	runtime.MemStats
}

type Stringer

type Stringer interface {
	String() string
}

Jump to

Keyboard shortcuts

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