Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type BlockedOptions ¶
type DisclosureControl ¶
type DisclosureControl struct {
Status string `bson:"status" json:"status"`
Dimension string `bson:"dimension" json:"dimension"`
BlockedOptions BlockedOptions `bson:"blocked_options" json:"blocked_options"`
}
type FileInfo ¶
type FileInfo struct {
HREF string `bson:"href" json:"href"`
Size string `bson:"size" json:"size"`
Public string `bson:"public" json:"public"`
Private string `bson:"private" json:"private"`
Skipped bool `bson:"skipped" json:"skipped"`
}
func (*FileInfo) IsNotFullyPopulated ¶
type Filter ¶
type Filter struct {
ID string `bson:"filter_id" json:"filter_id"`
Links Links `bson:"links" json:"links"`
FilterOutput *FilterOutput `bson:"filter_output,omitempty" json:"filter_output,omitempty"`
Events []Event `bson:"events" json:"events"`
UniqueTimestamp primitive.Timestamp `bson:"unique_timestamp" json:"-"`
LastUpdated time.Time `bson:"last_updated" json:"-"`
ETag string `bson:"etag" json:"-"`
InstanceID string `bson:"instance_id" json:"instance_id"`
Dimensions []Dimension `bson:"dimensions" json:"dimensions"`
Dataset Dataset `bson:"dataset" json:"dataset"`
Published bool `bson:"published" json:"published"`
DisclosureControl *DisclosureControl `bson:"disclosure_control,omitempty" json:"disclosure_control,omitempty"`
Type string `bson:"type" json:"type"`
PopulationType string `bson:"population_type" json:"population_type"`
}
Filter holds details for a user filter journey
func (*Filter) Hash ¶
Hash generates a SHA-1 hash of the filter struct. SHA-1 is not cryptographically safe, but it has been selected for performance as we are only interested in uniqueness. ETag field value is ignored when generating a hash. An optional byte array can be provided to append to the hash. This can be used, for example, to calculate a hash of this instance and an update applied to it.
type FilterOutput ¶
type FilterOutputLinks ¶
Click to show internal directories.
Click to hide internal directories.