25 lines
465 B
Go
25 lines
465 B
Go
package datastore
|
|
|
|
import (
|
|
"time"
|
|
)
|
|
|
|
type AgentID int64
|
|
|
|
type AgentStatus int
|
|
|
|
const (
|
|
AgentStatusPending AgentStatus = 0
|
|
AgentStatusAccepted AgentStatus = 1
|
|
AgentStatusRejected AgentStatus = 2
|
|
AgentStatusForgotten AgentStatus = 3
|
|
)
|
|
|
|
type Agent struct {
|
|
ID AgentID `json:"id"`
|
|
RemoteID string `json:"remoteId"`
|
|
Status AgentStatus `json:"status"`
|
|
CreatedAt time.Time `json:"createdAt"`
|
|
UpdatedAt time.Time `json:"updatedAt"`
|
|
}
|