constants

package
v1.6.2 Latest Latest
Warning

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

Go to latest
Published: Mar 12, 2024 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

View Source
const (
	ClientIdHeader                                  = "X-Client-Id"
	ClientSecretHeader                              = "X-Client-Secret"
	ApiUserTokenHeader                              = "X-Api-User-Token"
	ApiKeyHeader                                    = "Authorization"
	OneOffTokenHeader                               = "X-Token"
	ClientFUPLimitsHeader                           = "X-Client-FUP-Limits"
	UserFUPLimitsHeader                             = "X-User-FUP-Limits"
	RetryAfterHeader                                = "Retry-After"
	ScopeAccessibilityAccessible ScopeAccessibility = "true"
	ScopeAccessibilityForbidden  ScopeAccessibility = "false"
	ScopeAccessibilityOnBehalf   ScopeAccessibility = "on-behalf"
	ScopeAccessibilityUnlimited  ScopeAccessibility = "unlimited"
	DefaultTokenLength                              = 32
	OneOffTokenLength                               = 64
	PeriodMinutely               Period             = "minutely"
	PeriodHourly                 Period             = "hourly"
	PeriodDaily                  Period             = "daily"
	PeriodWeekly                 Period             = "weekly"
	PeriodMonthly                Period             = "monthly"
	FUPIPKey                                        = "per-ip"
	FUPCookieKey                                    = "per-cookie"

	ApiClient = "api-client"
	ApiUser   = "api-user"
)

Variables

Functions

This section is empty.

Types

type Period

type Period string

func (Period) GetFormatToCompare

func (p Period) GetFormatToCompare(t time.Time) string

func (Period) GetResetTime

func (p Period) GetResetTime() time.Time

type ScopeAccessibility

type ScopeAccessibility string

Jump to

Keyboard shortcuts

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