25 lines
368 B
Go
25 lines
368 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
|
||
|
RemoteID string
|
||
|
Status AgentStatus
|
||
|
CreatedAt time.Time
|
||
|
UpdatedAt time.Time
|
||
|
}
|