Documentation ¶
Index ¶
- Constants
- type DWNClient
- func (client *DWNClient) CallDWNHTTP(messages ...*model.Message) (model.ResponseObject, error)
- func (client *DWNClient) GetData(schemaUrl string, recordId string, requestorIdentity *Identity) (*model.Message, []byte, string, error)
- func (client *DWNClient) SaveData(schemaUrl string, data []byte, dataFormat string, dataAuthor *Identity, ...) (string, error)
- func (client *DWNClient) SaveHookForRecord(schemaUri string, dataRecordId string, callbackUri string, requestor *Identity) (string, error)
- func (client *DWNClient) SaveHookForSchemaAndProtocol(schemaUri string, protocol string, protocolVersion string, callbackUri string, ...) (string, error)
- func (client *DWNClient) UpdateData(schemaUrl string, logicalRecordId string, data []byte, dataFormat string, ...) error
- type Identity
- type Keypair
Constants ¶
View Source
const ( HEADER_CONTENT_TYPE_KEY = "Content-Type" HEADER_CONTENT_TYPE_APPLICATION_JSON = "application/json" )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type DWNClient ¶
func CreateDWNClient ¶
func (*DWNClient) CallDWNHTTP ¶
func (*DWNClient) SaveHookForRecord ¶
func (*DWNClient) SaveHookForSchemaAndProtocol ¶
type Identity ¶
func FromKeypair ¶
type Keypair ¶
type Keypair struct { KeyType tbdcrypto.KeyType PrivateKey crypto.PrivateKey PublicKey crypto.PublicKey }
func FromEd25519PrivateKey ¶
func FromEd25519PrivateKey(privateKey ed25519.PrivateKey) Keypair
func NewKeypair ¶
func NewKeypair() Keypair
Click to show internal directories.
Click to hide internal directories.