Files
sonr/pkg/didauth/producer/context.go
T

20 lines
475 B
Go
Raw Normal View History

2024-12-05 20:36:58 -05:00
package producer
import (
"github.com/labstack/echo/v4"
"github.com/onsonr/sonr/crypto/ucan"
"github.com/onsonr/sonr/pkg/ipfsapi"
2024-12-05 20:36:58 -05:00
)
type ProducerContext struct {
echo.Context
// TokenParser is the attentuations assigned to the producer service
TokenParser *ucan.TokenParser
// TokenStore is the token store used to store and retrieve tokens
TokenStore ipfsapi.IPFSTokenStore
2024-12-05 20:36:58 -05:00
// IPFSClient is the IPFS client used to resolve the UCAN
IPFSClient ipfsapi.Client
2024-12-05 20:36:58 -05:00
}