client

package
v0.0.0-...-32f009b Latest Latest
Warning

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

Go to latest
Published: Dec 7, 2018 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func UnmarshalFetchAllKeysPayload

func UnmarshalFetchAllKeysPayload(payload string, km *keyManager.KeyManager) (map[dr.Key]map[uint]dr.Key, error)

Types

type DRKeyStoreCountCall

type DRKeyStoreCountCall struct {
	IndexKey string `json:"index_key"`
}

func (*DRKeyStoreCountCall) Data

func (c *DRKeyStoreCountCall) Data() (string, error)

func (*DRKeyStoreCountCall) Type

func (c *DRKeyStoreCountCall) Type() string

func (*DRKeyStoreCountCall) Valid

func (c *DRKeyStoreCountCall) Valid() error

type DRKeyStoreDeleteIndexKey

type DRKeyStoreDeleteIndexKey struct {
	IndexKey string `json:"index_key"`
}

func (*DRKeyStoreDeleteIndexKey) Data

func (c *DRKeyStoreDeleteIndexKey) Data() (string, error)

func (*DRKeyStoreDeleteIndexKey) Type

func (c *DRKeyStoreDeleteIndexKey) Type() string

func (*DRKeyStoreDeleteIndexKey) Valid

func (c *DRKeyStoreDeleteIndexKey) Valid() error

type DRKeyStoreDeleteMK

type DRKeyStoreDeleteMK struct {
	IndexKey  string `json:"index_key"`
	MsgNumber uint   `json:"msg_num"`
}

func (*DRKeyStoreDeleteMK) Data

func (c *DRKeyStoreDeleteMK) Data() (string, error)

func (*DRKeyStoreDeleteMK) Type

func (c *DRKeyStoreDeleteMK) Type() string

func (*DRKeyStoreDeleteMK) Valid

func (c *DRKeyStoreDeleteMK) Valid() error

type DRKeyStoreFetchAllKeys

type DRKeyStoreFetchAllKeys struct{}

func (*DRKeyStoreFetchAllKeys) Data

func (c *DRKeyStoreFetchAllKeys) Data() (string, error)

func (*DRKeyStoreFetchAllKeys) Type

func (c *DRKeyStoreFetchAllKeys) Type() string

func (*DRKeyStoreFetchAllKeys) Valid

func (c *DRKeyStoreFetchAllKeys) Valid() error

type DRKeyStoreGetCall

type DRKeyStoreGetCall struct {
	Key    string `json:"key"`
	MsgNum uint   `json:"msg_num"`
}

func (*DRKeyStoreGetCall) Data

func (c *DRKeyStoreGetCall) Data() (string, error)

func (*DRKeyStoreGetCall) Type

func (c *DRKeyStoreGetCall) Type() string

func (*DRKeyStoreGetCall) Valid

func (c *DRKeyStoreGetCall) Valid() error

type DRKeyStoreGetResponse

type DRKeyStoreGetResponse struct {
	Key          dr.Key
	EncryptedKey string `json:"key"`
	Ok           bool
}

func UnmarshalDRKeyStoreGetResponse

func UnmarshalDRKeyStoreGetResponse(payload string, km *keyManager.KeyManager) (DRKeyStoreGetResponse, error)

type DRKeyStorePutCall

type DRKeyStorePutCall struct {
	IndexKey         string         `json:"index_key"`
	MsgNumber        uint           `json:"msg_number"`
	DoubleRatchetKey aes.CipherText `json:"msg_key"`
}

func (*DRKeyStorePutCall) Data

func (c *DRKeyStorePutCall) Data() (string, error)

func (*DRKeyStorePutCall) Type

func (c *DRKeyStorePutCall) Type() string

func (*DRKeyStorePutCall) Valid

func (c *DRKeyStorePutCall) Valid() error

Jump to

Keyboard shortcuts

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