From 390b13c9ff69f3d42860b5f8109eb134459c40b1 Mon Sep 17 00:00:00 2001 From: Michael Muré Date: Tue, 14 Jan 2020 22:01:44 +0100 Subject: identity: rework mutation --- identity/version.go | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) (limited to 'identity/version.go') diff --git a/identity/version.go b/identity/version.go index 95530767..b5b8dae3 100644 --- a/identity/version.go +++ b/identity/version.go @@ -24,8 +24,8 @@ type Version struct { unixTime int64 name string - email string - login string + email string // TODO: remove ? keep and use metadata for bridges ? + login string // TODO: remove avatarURL string // The set of keys valid at that time, from this version onward, until they get removed @@ -60,6 +60,14 @@ type VersionJSON struct { Metadata map[string]string `json:"metadata,omitempty"` } +type VersionMutator struct { + Name string + Email string + Login string + AvatarUrl string + Keys []Key +} + func (v *Version) MarshalJSON() ([]byte, error) { return json.Marshal(VersionJSON{ FormatVersion: formatVersion, -- cgit