checker

package
v0.0.11 Latest Latest
Warning

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

Go to latest
Published: Dec 18, 2024 License: Apache-2.0 Imports: 13 Imported by: 0

Documentation

Index

Constants

View Source
const HASH_TYPE_DEVICEIDS = "deviceids"
View Source
const HASH_TYPE_MD5 = "md5"
View Source
const HASH_TYPE_SHA256 = "sha256"

Variables

This section is empty.

Functions

This section is empty.

Types

type Auth

type Auth interface {
	ExchangeUserToken(userid string) (token auth.Token, err error)
}

type Checker

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

func New

func New(config configuration.Config, auth Auth) (*Checker, error)

func (*Checker) Check

func (this *Checker) Check(userId string, request model.HttpRequest, hashType string, lastHash string) (changed bool, newHash string, err error)

Jump to

Keyboard shortcuts

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