Documentation ¶
Index ¶
Constants ¶
View Source
const ( DatabaseName string = "dashboard" DatabaseCollection string = "dashboard" )
Variables ¶
View Source
var (
ErrFailedUpdatingDashboard error = errors.New("failed updating dashboard")
)
Functions ¶
func DeletebyID ¶
func DeletebyID(ID string) (*mongo.DeleteResult, error)
func SetCollationIndexes ¶
func SetCollationIndexes() error
Types ¶
type Dashboard ¶
type Dashboard struct { ID primitive.ObjectID `json:"_id,omitempty" bson:"_id,omitempty"` Name string `json:"name,omitempty" bson:"name,omitempty"` Description string `json:"description,omitempty" bson:"description,omitempty"` Owner string `json:"owner,omitempty" bson:"owner,omitempty"` Projects []Project `json:"projects,omitempty" bson:"projects,omitempty"` }
func SearchbyID ¶
Click to show internal directories.
Click to hide internal directories.