request

package
v0.0.0-...-5c487ac Latest Latest
Warning

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

Go to latest
Published: Aug 21, 2023 License: MIT Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Client

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

Client retrieves user device info.

func NewClient

func NewClient(network network.Network, geo geo.Geo) Client

NewClient creates user device info retriever.

func (Client) GetLocation

func (c Client) GetLocation(request *http.Request) (geo.Location, error)

GetLocation extracts user's geo location from the HTTP request.

type InstrumentationFactory

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

InstrumentationFactory initializes instrumentation code.

func NewInstrumentationFactory

func NewInstrumentationFactory(
	logger logger.Logger,
	timer timer.Timer,
	metrics metrics.Metrics,
	analytics analytics.Analytics,
	keyGen keygen.KeyGenerator,
	client Client,
) InstrumentationFactory

NewInstrumentationFactory creates Instrumentation factory.

func (InstrumentationFactory) NewHTTP

NewHTTP creates and initializes Instrumentation tied to the given HTTP request.

func (InstrumentationFactory) NewRequest

NewRequest creates and initializes Instrumentation for a given user request.

Jump to

Keyboard shortcuts

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