2014-08-13 20:28:28 +04:00
|
|
|
// This Source Code Form is subject to the terms of the Mozilla Public
|
|
|
|
// License, v. 2.0. If a copy of the MPL was not distributed with this
|
|
|
|
// file, You can obtain one at http://mozilla.org/MPL/2.0/.
|
|
|
|
//
|
|
|
|
// Contributor: Julien Vehent jvehent@mozilla.com [:ulfr]
|
2015-08-26 21:15:40 +03:00
|
|
|
package mig /* import "mig.ninja/mig" */
|
2013-08-08 05:45:27 +04:00
|
|
|
|
2014-11-01 23:34:27 +03:00
|
|
|
import (
|
|
|
|
"time"
|
|
|
|
)
|
|
|
|
|
2014-05-08 02:07:21 +04:00
|
|
|
type Investigator struct {
|
2014-11-01 23:34:27 +03:00
|
|
|
ID float64 `json:"id,omitempty"`
|
|
|
|
Name string `json:"name"`
|
|
|
|
PGPFingerprint string `json:"pgpfingerprint"`
|
|
|
|
PublicKey []byte `json:"publickey,omitempty"`
|
|
|
|
PrivateKey []byte `json:"privatekey,omitempty"`
|
|
|
|
Status string `json:"status"`
|
|
|
|
CreatedAt time.Time `json:"createdat"`
|
|
|
|
LastModified time.Time `json:"lastmodified"`
|
2013-08-13 22:00:35 +04:00
|
|
|
}
|
2014-11-02 21:25:17 +03:00
|
|
|
|
|
|
|
const (
|
|
|
|
StatusActiveInvestigator string = "active"
|
|
|
|
StatusDisabledInvestigator string = "disabled"
|
|
|
|
)
|