Documentation ¶
Index ¶
Constants ¶
View Source
const ( StorageKeyIsDoctor = "IS_DOCTOR" StorageKeyEosPrivate = "EOS_PRIVATE" StorageKeyEosAccount = "EOS_ACCOUNT" StorageKeyPersonalData = "PERSONAL_DATA" StorageKeyEncryptionKeys = "ENCRYPTION_KEYS" StorageKeyRSAKey = "RSA_KEY" StorageKeyConnections = "CONNECTIONS" StorageKeyDirectory = "DIRECTORY" )
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Connections ¶
type Connections struct { WithKey []string // Access is written on the blockchain and we have the key WithoutKey []string // Access has been written on the blockchain, but we do not have the key GrantedTo []string // We have granted the access to our data to these users. Its on them to make key request Requested map[string]Request // They are not connected to us, but request for key has been made }
type State ¶
type State struct { Token string Connected bool Subscribed bool IsDoctor bool EosPrivate string `env:"EOS_PRIVATE"` EosAccount string `env:"EOS_ACCOUNT"` PersonalData *openEHR.PersonalData EncryptionKeys map[string][]byte RSAKey *rsa.PrivateKey Connections Connections Directory map[string]string // contains filtered or unexported fields }
func (*State) GetEosPublicKey ¶
Click to show internal directories.
Click to hide internal directories.