Documentation
¶
Index ¶
- Constants
- type CredHandler
- func (r *CredHandler) IssueCredentialMsg(_ service.DIDCommAction, _ *icprotocol.IssueCredential)
- func (r *CredHandler) OfferCredentialMsg(_ service.DIDCommAction, _ *icprotocol.OfferCredential)
- func (r *CredHandler) ProposeCredentialMsg(e service.DIDCommAction, proposal *icprotocol.ProposeCredential)
- func (r *CredHandler) RequestCredentialMsg(e service.DIDCommAction, request *icprotocol.RequestCredential)
- type CredentialIssuer
- type CredentialProposalEvent
- type Provider
- type Server
- func (r *Server) APISpec() (http.HandlerFunc, error)
- func (r *Server) IssueCredential(_ context.Context, req *common.IssueCredentialRequest) (*common.IssueCredentialResponse, error)
- func (r *Server) RegisterGRPCGateway(_ *runtime.ServeMux, _ string, _ ...grpc.DialOption)
- func (r *Server) RegisterGRPCHandler(server *grpc.Server)
Constants ¶
View Source
const ( CredentialTopic = "credentials" ProposedEvent = "proposed" )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type CredHandler ¶
type CredHandler struct {
// contains filtered or unexported fields
}
func NewCredentialHandler ¶
func NewCredentialHandler(store datastore.Store, reg engine.CredentialRegistry) *CredHandler
func (*CredHandler) IssueCredentialMsg ¶
func (r *CredHandler) IssueCredentialMsg(_ service.DIDCommAction, _ *icprotocol.IssueCredential)
func (*CredHandler) OfferCredentialMsg ¶
func (r *CredHandler) OfferCredentialMsg(_ service.DIDCommAction, _ *icprotocol.OfferCredential)
func (*CredHandler) ProposeCredentialMsg ¶
func (r *CredHandler) ProposeCredentialMsg(e service.DIDCommAction, proposal *icprotocol.ProposeCredential)
func (*CredHandler) RequestCredentialMsg ¶
func (r *CredHandler) RequestCredentialMsg(e service.DIDCommAction, request *icprotocol.RequestCredential)
type CredentialIssuer ¶
type CredentialIssuer interface {
SendOffer(offer *issuecredential.OfferCredential, myDID, theirDID string) (string, error)
}
type CredentialProposalEvent ¶
type CredentialProposalEvent struct { AgentID string `json:"agent_id"` MyDID string `json:"my_did"` TheirDID string `json:"their_did"` ExternalID string `json:"external_id"` Schema *datastore.Schema `json:"schema"` Proposal issuecredential.PreviewCredential `json:"proposal"` }
type Provider ¶
type Provider interface { Store() datastore.Store GetCredentialIssuer() (CredentialIssuer, error) GetCredentialEngineRegistry() (engine.CredentialRegistry, error) }
type Server ¶
type Server struct {
// contains filtered or unexported fields
}
func (*Server) IssueCredential ¶
func (r *Server) IssueCredential(_ context.Context, req *common.IssueCredentialRequest) (*common.IssueCredentialResponse, error)
func (*Server) RegisterGRPCGateway ¶
func (*Server) RegisterGRPCHandler ¶
Click to show internal directories.
Click to hide internal directories.