code.gitea.io/gitea@v1.19.3/modules/structs/issue_stopwatch.go (about) 1 // Copyright 2019 The Gitea Authors. All rights reserved. 2 // SPDX-License-Identifier: MIT 3 4 package structs 5 6 import ( 7 "time" 8 ) 9 10 // StopWatch represent a running stopwatch 11 type StopWatch struct { 12 // swagger:strfmt date-time 13 Created time.Time `json:"created"` 14 Seconds int64 `json:"seconds"` 15 Duration string `json:"duration"` 16 IssueIndex int64 `json:"issue_index"` 17 IssueTitle string `json:"issue_title"` 18 RepoOwnerName string `json:"repo_owner_name"` 19 RepoName string `json:"repo_name"` 20 } 21 22 // StopWatches represent a list of stopwatches 23 type StopWatches []StopWatch