userid

package
v0.0.11 Latest Latest
Warning

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

Go to latest
Published: Jun 16, 2023 License: AGPL-3.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Open

func Open(ctx context.Context) context.Context

Types

type ID

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

func Get

func Get(ctx context.Context) *ID

func (*ID) Hash

func (i *ID) Hash(remoteIP, userAgent, domain, host string) uint64

func (*ID) HashPrevious

func (i *ID) HashPrevious(remoteIP, userAgent, domain, host string) uint64

func (*ID) Reset

func (i *ID) Reset()

func (*ID) Setup

func (i *ID) Setup() *ID

Jump to

Keyboard shortcuts

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