diff --git a/api/params_test.go b/api/params_test.go deleted file mode 100644 index 778f64ec17cd4fd767e18d43231361d3aff70366..0000000000000000000000000000000000000000 --- a/api/params_test.go +++ /dev/null @@ -1 +0,0 @@ -package api diff --git a/auth/params.go b/auth/params.go index 946f4ea055ab0da656e5bf25647f24d2d4520f65..907fa4ad825c3c6ef068d9dc7e6cd8b92d70a773 100644 --- a/auth/params.go +++ b/auth/params.go @@ -7,8 +7,16 @@ import ( // Params is are the parameters for the auth package. type Params struct { - ReplayRequests bool + ReplayRequests bool + RequestTag string + ConfirmTag string + ResetRequestTag string + ResetConfirmTag string +} +// paramsDisk will be the marshal-able and umarshal-able object. +type paramsDisk struct { + ReplayRequests bool RequestTag string ConfirmTag string ResetRequestTag string @@ -48,15 +56,6 @@ func GetDefaultTemporaryParams() Params { return p } -// paramsDisk will be the marshal-able and umarshal-able object. -type paramsDisk struct { - ReplayRequests bool - RequestTag string - ConfirmTag string - ResetRequestTag string - ResetConfirmTag string -} - // MarshalJSON adheres to the json.Marshaler interface. func (p Params) MarshalJSON() ([]byte, error) { pDisk := paramsDisk{ diff --git a/cmix/params.go b/cmix/params.go index 23f8d7d6a33247ca489387060d8b272155aab34f..d8aa778b104dadbdfa0e28215e00f0a10f5b6761 100644 --- a/cmix/params.go +++ b/cmix/params.go @@ -282,6 +282,8 @@ func (p *CMIXParams) UnmarshalJSON(data []byte) error { return nil } +// NodeMap represents a map of nodes and whether they have been +// blacklisted. This is designed for use with CMIXParams.BlacklistedNodes type NodeMap map[id.ID]bool // MarshalJSON adheres to the json.Marshaler interface. diff --git a/cmix/pickup/params.go b/cmix/pickup/params.go index 9edf0f0297f63525b11c11cd029696f77a48e860..99ec4cb835557f411d3d88cdf07acc23e40dba14 100644 --- a/cmix/pickup/params.go +++ b/cmix/pickup/params.go @@ -54,6 +54,7 @@ type paramsDisk struct { ForceHistoricalRounds bool } +// GetDefaultParams returns a default set of Params. func GetDefaultParams() Params { return Params{ NumMessageRetrievalWorkers: 8, diff --git a/e2e/rekey/params_test.go b/e2e/rekey/params_test.go deleted file mode 100644 index b1749f6de2935ce044dcee8b5afdd55b385f8221..0000000000000000000000000000000000000000 --- a/e2e/rekey/params_test.go +++ /dev/null @@ -1 +0,0 @@ -package rekey