Documentation ¶
Index ¶
- func NewMessageHandler(state *state.State, ehr *ehr.Storage, eos *eos.Storage, log *logger.Log) *subscribe
- type Client
- func (c *Client) AddFrontendWS(conn *websocket.Conn)
- func (c *Client) CheckGrantedStatus(eosAccountName string) (accessGranted bool, keyAvailable bool, err error)
- func (c *Client) CloseWs()
- func (c *Client) ConnectWs() error
- func (c *Client) CreateAccount(key string) (string, error)
- func (c *Client) Download(owner, fileID string) error
- func (c *Client) GrantAccess(to string) error
- func (c *Client) Login() error
- func (c *Client) Ls(owner string) ([]map[string]string, error)
- func (c *Client) NewRequestKeyQr(customData string) string
- func (c *Client) Reencrypt(key []byte) error
- func (c *Client) RemoveConnection(eosAccountName string)
- func (c *Client) RemoveFrontendWS(conn *websocket.Conn) error
- func (c *Client) RequestAccess(to, customData string) error
- func (c *Client) RevokeAccess(to string) error
- func (c *Client) SaveAndUploadData(user string, data []byte) error
- func (c *Client) SaveAndUploadEhrData(user string, data interface{}) error
- func (c *Client) Update(owner string) error
- func (c *Client) Upload(owner, id string, reupload bool) error
- type MessageHandler
- type Ws
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Client ¶
type Client struct {
// contains filtered or unexported fields
}
func (*Client) AddFrontendWS ¶
func (*Client) CheckGrantedStatus ¶
func (c *Client) CheckGrantedStatus(eosAccountName string) (accessGranted bool, keyAvailable bool, err error)
CheckGrantedStatus checks if access is granted for given account and if the encryption key is available.
func (*Client) GrantAccess ¶
func (*Client) NewRequestKeyQr ¶
func (*Client) RemoveConnection ¶
func (*Client) RequestAccess ¶
func (*Client) RevokeAccess ¶
func (*Client) SaveAndUploadData ¶
func (*Client) SaveAndUploadEhrData ¶
type MessageHandler ¶
type MessageHandler interface { SetClient(client *Client) MessageHandler SetWs(ws *Ws) MessageHandler SetRequests(requests *requests.Requests) MessageHandler SetConnecter(connecter) MessageHandler ImportKey(r *requests.Request) RevokeKey(r *requests.Request) SubReencrypt(r *requests.Request) AccessWasGranted(r *requests.Request) NotifyKeyRequested(r *requests.Request) NewUpload(r *requests.Request) }
Click to show internal directories.
Click to hide internal directories.