Clean up yaml output
This commit is contained in:
parent
b6c20e57f9
commit
d5c85c16b9
11
resource.go
11
resource.go
@ -32,14 +32,15 @@ func (ds ResourceStatus) String() string {
|
|||||||
// uniquely identified by a URL.
|
// uniquely identified by a URL.
|
||||||
type Resource struct {
|
type Resource struct {
|
||||||
URL URL
|
URL URL
|
||||||
Status ResourceStatus
|
Status ResourceStatus `yaml:"-"`
|
||||||
Pinned bool
|
Pinned bool `yaml:"-"`
|
||||||
LastChecked time.Time
|
LastChecked time.Time `yaml:"last_checked"`
|
||||||
|
|
||||||
// only set if Status == ResourceStatusError
|
// only set if Status == ResourceStatusError
|
||||||
ErrorString string
|
ErrorString string `yaml:"error"`
|
||||||
|
|
||||||
// Indicate the URLs of resources which link to/are linked from this
|
// Indicate the URLs of resources which link to/are linked from this
|
||||||
// resource.
|
// resource.
|
||||||
IncomingLinkURLs, OutgoingLinkURLs []URL
|
IncomingLinkURLs []URL `yaml:"incoming_links"`
|
||||||
|
OutgoingLinkURLs []URL `yaml:"outgoing_links"`
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user