batched

package
v0.0.0-...-7c8509e Latest Latest
Warning

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

Go to latest
Published: Dec 12, 2024 License: BSD-3-Clause Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func UnmarshalBatchedTokenResponses

func UnmarshalBatchedTokenResponses(data []byte) ([][]byte, error)

Types

type BasicBatchedIssuer

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

func NewBasicBatchedIssuer

func NewBasicBatchedIssuer(issuersArgs ...Issuer) *BasicBatchedIssuer

func (BasicBatchedIssuer) EvaluateBatch

func (i BasicBatchedIssuer) EvaluateBatch(req *BatchedTokenRequest) ([]byte, error)

type BatchedClient

type BatchedClient struct {
}

func NewBasicClient

func NewBasicClient() BatchedClient

type BatchedIssuer

type BatchedIssuer interface {
	EvaluateBatch(req *BatchedTokenRequest) ([]byte, error)
}

type BatchedTokenRequest

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

func (BatchedTokenRequest) Marshal

func (r BatchedTokenRequest) Marshal() []byte

func (*BatchedTokenRequest) Unmarshal

func (r *BatchedTokenRequest) Unmarshal(data []byte) bool

type Issuer

type Issuer interface {
	Evaluate(req tokens.TokenRequest) ([]byte, error)
	TokenKeyID() []byte
	Type() uint16
}

Jump to

Keyboard shortcuts

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