mirror of
https://github.com/onsonr/sonr.git
synced 2025-03-11 13:29:12 +00:00
21 lines
518 B
Go
21 lines
518 B
Go
|
package producer
|
||
|
|
||
|
import (
|
||
|
"github.com/labstack/echo/v4"
|
||
|
"github.com/onsonr/sonr/crypto/ucan"
|
||
|
"github.com/onsonr/sonr/crypto/ucan/store"
|
||
|
"github.com/onsonr/sonr/pkg/common/ipfs"
|
||
|
)
|
||
|
|
||
|
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 store.IPFSTokenStore
|
||
|
|
||
|
// IPFSClient is the IPFS client used to resolve the UCAN
|
||
|
IPFSClient ipfs.Client
|
||
|
}
|