uaparser

package
v0.18.0-beta07 Latest Latest
Warning

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

Go to latest
Published: Nov 13, 2024 License: AGPL-3.0 Imports: 6 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 {
	BrowserFamily   string
	OperatingSystem string
	Device          string
	IsBot           bool
}

Client define client information derived from user agent.

func (Client) MarshalZerologObject added in v0.14.0

func (c Client) MarshalZerologObject(e *zerolog.Event)

MarshalZerologObject implements zerolog.LogObjectMarshaler.

type Service

type Service interface {
	ParseUserAgent(string) Client
}

Service define a user agent parser service.

func ProvideService

func ProvideService(
	logger zerolog.Logger,
	promRegistry *prometheus.Registry,
) Service

ProvideService is a wire provider for User Agent parser service.

Jump to

Keyboard shortcuts

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