Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
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
func (BatchedClient) CreateTokenRequest ¶
func (c BatchedClient) CreateTokenRequest(tokenRequests []tokens.TokenRequestWithDetails) (*BatchedTokenRequest, error)
https://datatracker.ietf.org/doc/html/draft-ietf-privacypass-batched-tokens-03
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
Click to show internal directories.
Click to hide internal directories.