refererparser

package module
v0.0.0-...-ee22d92 Latest Latest
Warning

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

Go to latest
Published: Sep 11, 2020 License: Apache-2.0 Imports: 5 Imported by: 0

README

referer-parser

This project provides method to parser source, term, medium from url from current url

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ParserDetails

type ParserDetails struct {
	Medium string
	Source string
	Term   string
	Known  bool
}

ParserDetails ...

type Reader

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

Reader ...

func New

func New(path string) (*Reader, error)

New ...

func (*Reader) LookupReferer

func (reader *Reader) LookupReferer(uri string, currentUrl string) (*ParserDetails, error)

func (*Reader) Parse

func (reader *Reader) Parse(url string, currentUrl string) (*ParserDetails, error)

Parser ...

Jump to

Keyboard shortcuts

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