an app.bsky.* indexer

go fmt

Changed files
+8 -8
models
+8 -8
models/graph_list.go
···
// TODO: Avatar, DescriptionFacets
-
CreatedAt string
+
CreatedAt string
Description *string
-
Labels []GraphList_Label
-
Name string
-
Purpose *string
+
Labels []GraphList_Label
+
Name string
+
Purpose *string
AutoCreatedAt time.Time `gorm:"autoCreateTime"`
AutoUpdatedAt time.Time `gorm:"autoUpdateTime"`
···
type GraphList_Label struct {
GraphListID string
-
Value string
+
Value string
}
func NewGraphList(uri syntax.ATURI, rec []byte) *GraphList {
···
}
list := GraphList{
-
CreatedAt: out.CreatedAt,
+
CreatedAt: out.CreatedAt,
Description: out.Description,
-
Name: out.Name,
-
Purpose: out.Purpose,
+
Name: out.Name,
+
Purpose: out.Purpose,
}
if out.Labels != nil && out.Labels.LabelDefs_SelfLabels != nil && out.Labels.LabelDefs_SelfLabels.Values != nil {