Documentation ¶
Overview ¶
Package model contains the type definitions that make up the Data Track disclosure model, with associated functions for creating new objects.
Index ¶
Constants ¶
const HashOutputLen = 32
HashOutputLen is the output length (in bytes) of Hash(...).
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ActionDisclose ¶
type ActionDisclose struct { Disclosure Disclosure Attribute []Attribute Sender Organization // if empty on first level = user disclosed it Recipient Organization Downstream []ActionDisclose }
ActionDisclose models one disclosure and its potential downstream disclosures that occurred as a consequence of the disclosure.
type Attribute ¶
Attribute is an attribute.
func MakeAttribute ¶
MakeAttribute creates an attribute.
type Coordinate ¶
type Coordinate struct { ID string Latitude string Longitude string DisclosureID string Timestamp string }
Coordinate is a coordinate and its associated disclosure ID.
func MakeCoordinate ¶
func MakeCoordinate(latitude, longitude, disclosureID, timestamp string) Coordinate
MakeCoordinate creates a Coordinate.
type Disclosure ¶
type Disclosure struct { ID string Sender string Recipient string Timestamp string PrivacyPolicyHuman string PrivacyPolicyMachine string DataLocation string API string }
Disclosure is a data disclosure.
type Downstream ¶
Downstream represents a relationship between an origin data disclosure and a resulting data disclosure.
type Insert ¶
type Insert struct { User User Disclosures []ActionDisclose }
Insert is an insert into the Data Track of new disclosures.