mirror of
https://github.com/status-im/status-go.git
synced 2026-08-31 09:01:16 +00:00
Part of the Go project layout migration, item 31. Pure move plus import-path rewrite across 687 files. No API or behaviour change. The services keep their grouping under pkg/services/<name> rather than being promoted to pkg/<name>: 27 top-level directories in pkg/ would read worse than what we have, and the grouping is what makes "an RPC service" identifiable at a glance. Paths that follow the move: the logosstorage test target and generate step, the two wallet token-list tools, the migration-order check (and the pre-rebase hook symlinked to it), and the storage env helper. refs #7067
31 lines
993 B
Go
31 lines
993 B
Go
package pairing
|
|
|
|
// PayloadMounterReceiver represents a struct that can:
|
|
// - mount payload data from a PayloadRepository or a PayloadLoader into memory (PayloadMounter.Mount)
|
|
// - prepare data to be sent encrypted (PayloadMounter.ToSend) via some transport
|
|
// - receive and prepare encrypted transport data (PayloadReceiver.Receive) to be stored
|
|
// - prepare the received (PayloadReceiver.Received) data to be stored to a PayloadRepository or a PayloadStorer
|
|
type PayloadMounterReceiver interface {
|
|
PayloadMounter
|
|
PayloadReceiver
|
|
}
|
|
|
|
// PayloadRepository represents a struct that can both load and store data to an internally managed data store
|
|
type PayloadRepository interface {
|
|
PayloadLoader
|
|
PayloadStorer
|
|
}
|
|
|
|
type PayloadLocker interface {
|
|
// LockPayload prevents future excess to outbound safe and received data
|
|
LockPayload()
|
|
}
|
|
|
|
type ProtobufMarshaller interface {
|
|
MarshalProtobuf() ([]byte, error)
|
|
}
|
|
|
|
type ProtobufUnmarshaller interface {
|
|
UnmarshalProtobuf([]byte) error
|
|
}
|