pprof

package
v0.0.0-...-037b315 Latest Latest
Warning

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

Go to latest
Published: Aug 19, 2024 License: MIT Imports: 17 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetOnlineURL

func GetOnlineURL(baseURL string) string

func HandleFunc

func HandleFunc() http.Handler

Types

type IRouter

type IRouter interface {
	HandleFuncPrefix(prefix string, h http.HandlerFunc)
}

type Option

type Option func(*Transporter)

func WithParam

func WithParam(key, val string) Option

func WithRouter

func WithRouter(r IRouter) Option

type Param

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

func NewParam

func NewParam(r *http.Request) *Param

func (*Param) Get

func (p *Param) Get(key string) string

func (*Param) GetBool

func (p *Param) GetBool(key string) bool

type Transporter

type Transporter struct {
	sync.RWMutex
	// contains filtered or unexported fields
}

func NewTransporter

func NewTransporter(dstAddr, baseURL string, opts ...Option) *Transporter

func (*Transporter) Transport

func (trans *Transporter) Transport(w http.ResponseWriter, r *http.Request, opts ...Option)

func (*Transporter) UI

func (trans *Transporter) UI(w http.ResponseWriter, r *http.Request)

Jump to

Keyboard shortcuts

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