nativeAuth

package
v1.1.3 Latest Latest
Warning

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

Go to latest
Published: Nov 18, 2026 License: MIT Imports: 9 Imported by: ? modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

Constants

This section is empty.

Variables

View Source
var ErrInvalidValue = errors.New("invalid value")

ErrInvalidValue signals that an invalid value has been provided

View Source
var ErrNilAuthServer = errors.New("nil auth server")

ErrNilAuthServer signals that a nil auth server has been provided

Functions

func NewMaxTTLAuthServer

func NewMaxTTLAuthServer(args ArgsMaxTTLAuthServer) (*maxTTLAuthServer, error)

NewMaxTTLAuthServer returns an auth server which caps the tokens' ttl to the configured max ttl

Types

type ArgsMaxTTLAuthServer

type ArgsMaxTTLAuthServer struct {
	AuthServer        authentication.AuthServer
	HttpClientWrapper authentication.HttpClientWrapper
	TimestampsCacher  TimestampsCacher
	MaxTTLInSec       int64
}

ArgsMaxTTLAuthServer is the DTO used to create a new instance of maxTTLAuthServer

type TimestampsCacher

type TimestampsCacher interface {
	Get(key []byte) (value interface{}, ok bool)
	Put(key []byte, value interface{}, sizeInBytes int) (evicted bool)
	IsInterfaceNil() bool
}

TimestampsCacher defines the behaviour of the block timestamps cacher

Jump to

Keyboard shortcuts

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