zcapld

package
v0.1.8 Latest Latest
Warning

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

Go to latest
Published: Mar 30, 2022 License: Apache-2.0 Imports: 16 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Service

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

Service to provide zcapld functionality

func New

func New(keyManager kms.KeyManager, crypto cryptoapi.Crypto, storeProv ariesstorage.Provider,
	jsonLDLoader ld.DocumentLoader, vdrResolver zcapld.VDRResolver) (*Service, error)

New return zcap service

func (*Service) Create

func (s *Service) Create(resourceID, verificationMethod string) ([]byte, error)

Create zcap payload

func (*Service) Handler

func (s *Service) Handler(resourceID string, req *http.Request, w http.ResponseWriter,
	next http.HandlerFunc) (http.HandlerFunc, error)

Handler will create auth handler

Jump to

Keyboard shortcuts

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