uadb

package
v0.0.0-...-2cbbd22 Latest Latest
Warning

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

Go to latest
Published: Oct 1, 2025 License: MIT Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type UADB

type UADB struct {
	Version  string               `json:"version"`
	Agents   [][8]string          `json:"agents"`   // [ match_expr, ua_family, ua_company, ua_type, device_type, os_family, os_name, os_company ]
	Devices  [][2]string          `json:"devices"`  // [ match_expr, device_type ]
	Systems  [][4]string          `json:"systems"`  // [ match_expr, os_family, os_name, os_company ]
	Crawlers map[string][5]string `json:"crawlers"` // user-agent -> [ ua_family, ua_name, ua_company, ua_version, ua_type ]
	// contains filtered or unexported fields
}

func New

func New(size ...int) *UADB

func (*UADB) Load

func (db *UADB) Load(path string) error

func (*UADB) Lookup

func (db *UADB) Lookup(ua string, out map[string]string, withcode ...bool)

Directories

Path Synopsis
cmd
uadb command

Jump to

Keyboard shortcuts

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