nrfasthttp

package module
v2.0.0-...-3f7d13d Latest Latest
Warning

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

Go to latest
Published: Jun 23, 2022 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

View Source
const NewRelicTransaction = "__newrelic_txn_fasthttp__"

NewRelicTransaction - key context transaction newrelic

Variables

This section is empty.

Functions

func FromContext

func FromContext(ctx *fasthttp.RequestCtx) *newrelic.Transaction

FromContext - newrelic from context

func Middleware

Middleware - middleware para fasthpp new relic

func NewDataStoreSegment

func NewDataStoreSegment(ctx *fasthttp.RequestCtx, tableName, operation string) *newrelic.DatastoreSegment

NewDataStoreSegment - Newrelic datasource

func NewExternalSegment

func NewExternalSegment(ctx *fasthttp.RequestCtx, req fasthttp.Request) *newrelic.ExternalSegment

NewExternalSegment - external segment

func NewSegment

func NewSegment(ctx *fasthttp.RequestCtx, name string) *newrelic.Segment

NewSegment - simple segment

Types

type Response

type Response struct {
	io.Writer
	// contains filtered or unexported fields
}

Response - object Response Http

func (*Response) Header

func (w *Response) Header() http.Header

Header - retorna informações do header http

func (*Response) String

func (w *Response) String() string

func (*Response) WriteHeader

func (w *Response) WriteHeader(h int)

WriteHeader - informa status code http

Jump to

Keyboard shortcuts

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