code.gitea.io/gitea@v1.19.3/modules/structs/repo_watch.go (about)

     1  // Copyright 2017 The Gitea Authors. All rights reserved.
     2  // SPDX-License-Identifier: MIT
     3  
     4  package structs
     5  
     6  import (
     7  	"time"
     8  )
     9  
    10  // WatchInfo represents an API watch status of one repository
    11  type WatchInfo struct {
    12  	Subscribed    bool        `json:"subscribed"`
    13  	Ignored       bool        `json:"ignored"`
    14  	Reason        interface{} `json:"reason"`
    15  	CreatedAt     time.Time   `json:"created_at"`
    16  	URL           string      `json:"url"`
    17  	RepositoryURL string      `json:"repository_url"`
    18  }