uaparser

package
v0.14.0-beta1 Latest Latest
Warning

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

Go to latest
Published: Mar 8, 2024 License: AGPL-3.0 Imports: 2 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
}

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) 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