access

package
v1.7.2 Latest Latest
Warning

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

Go to latest
Published: Jul 2, 2026 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var Scopes = []ScopeInfo{
	{Scope: "BASIC", Grants: "Account, IP lookup, batch IP lookup, and domain lookup."},
	{Scope: "PROXY_FEEDS", Grants: "proxies parquet snapshot list, metadata, and downloads."},
	{Scope: "PROXY_FIREHOSE", Grants: "proxies real-time NDJSON stream."},
	{Scope: "ANONYMIZERS_FEED", Grants: "anonymizers parquet snapshot list, metadata, and downloads."},
	{Scope: "ANONYMIZERS_STREAM", Grants: "anonymizers real-time NDJSON stream."},
	{Scope: "TORRENTS_FEED", Grants: "torrents parquet snapshot list, metadata, and downloads."},
	{Scope: "TORRENTS_STREAM", Grants: "torrents real-time NDJSON stream."},
	{Scope: "HONEYPOT_HTTP_FEED", Grants: "honeypot_http parquet snapshot list, metadata, and downloads."},
	{Scope: "HONEYPOT_HTTP_STREAM", Grants: "honeypot_http real-time NDJSON stream."},
	{Scope: "HONEYPOT_HTTPS_FEED", Grants: "honeypot_https parquet snapshot list, metadata, and downloads."},
	{Scope: "HONEYPOT_HTTPS_STREAM", Grants: "honeypot_https real-time NDJSON stream."},
	{Scope: "HONEYPOT_DNS_FEED", Grants: "honeypot_dns parquet snapshot list, metadata, and downloads."},
	{Scope: "HONEYPOT_DNS_STREAM", Grants: "honeypot_dns real-time NDJSON stream."},
	{Scope: "HONEYPOT_ADB_FEED", Grants: "honeypot_adb parquet snapshot list, metadata, and downloads."},
	{Scope: "HONEYPOT_ADB_STREAM", Grants: "honeypot_adb real-time NDJSON stream."},
}
View Source
var StreamScopes = map[string]FeedScopes{
	"proxies":        {Feed: "PROXY_FEEDS", Stream: "PROXY_FIREHOSE"},
	"anonymizers":    {Feed: "ANONYMIZERS_FEED", Stream: "ANONYMIZERS_STREAM"},
	"torrents":       {Feed: "TORRENTS_FEED", Stream: "TORRENTS_STREAM"},
	"honeypot_http":  {Feed: "HONEYPOT_HTTP_FEED", Stream: "HONEYPOT_HTTP_STREAM"},
	"honeypot_https": {Feed: "HONEYPOT_HTTPS_FEED", Stream: "HONEYPOT_HTTPS_STREAM"},
	"honeypot_dns":   {Feed: "HONEYPOT_DNS_FEED", Stream: "HONEYPOT_DNS_STREAM"},
	"honeypot_adb":   {Feed: "HONEYPOT_ADB_FEED", Stream: "HONEYPOT_ADB_STREAM"},
}

Functions

func Has

func Has(scopes []string, required string) bool

func Require

func Require(client synthient.Client, required string) error

func Required

func Required(stream feed.Stream, kind string) string

Types

type FeedScopes

type FeedScopes struct {
	Feed   string
	Stream string
}

type MissingScopeError

type MissingScopeError struct {
	Scope string
}

func (MissingScopeError) Error

func (e MissingScopeError) Error() string

type ScopeInfo

type ScopeInfo struct {
	Scope  string `json:"scope"`
	Grants string `json:"grants"`
}

Jump to

Keyboard shortcuts

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