storage

package
v0.0.0-...-d304510 Latest Latest
Warning

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

Go to latest
Published: Aug 18, 2019 License: MIT Imports: 15 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func DIDByAddress

func DIDByAddress(address string) (string, error)

DIDByAddress returns an Ethereum address by its DID

func DIDByEmail

func DIDByEmail(email string) (string, error)

DIDByEmail returns an email address by its DID

func DatabaseInsert

func DatabaseInsert(inpytJWT string) (string, error)

DatabaseInsert inserts a record into user table

func DatabaseUpdate

func DatabaseUpdate(inputJWT string) (string, error)

DatabaseUpdate updates a record in user table

func Delete

func Delete(payload map[string]interface{}) error

Delete removes a record from user table

func Insert

func Insert(payload map[string]interface{}) error

Insert inserts a record into user table

func KYCClaimInsert

func KYCClaimInsert(claim, signature string) (string, error)

KYCClaimInsert inserts a claim into KYC table

func KYCClaimQuery

func KYCClaimQuery(decentralizedIdentifier string, queryType int) (string, error)

KYCClaimQuery returns claims of a DID queryType == 0, get content of claim queryType == 1, get claim information for ERC-725

func PictureUpdate

func PictureUpdate(decentralizedIdentifier string, picture []byte) (string, error)

PictureUpdate updates the image of user's application documents

func Query

func Query(fields []string, filters map[string]string) (map[string]string, error)

Query queries user table

func Update

func Update(payload map[string]interface{}) error

Update updates a record in user table

func UserInfo

func UserInfo(decentralizedIdentifier string) (string, error)

UserInfo returns user data by DID

Types

This section is empty.

Jump to

Keyboard shortcuts

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