package
0.0.0-20210118082621-7f33b96c2c55
Repository: https://github.com/mirisbowring/primboard.git
Documentation: pkg.go.dev

# Packages

No description provided by the author
No description provided by the author

# Functions

BulkAddMediaEvent bulk operates an add events to many media ids.
BulkAddMediaGroup bulk operates an adds groups to many media ids.
BulkAddTagEvent bulk operates a tag slice to many media ids.
BulkAddTagMedia bulk operates an add Tags to many media ids.
BulkDeleteMedia deletes multiple media by ids 0 -> ok 1 -> no permission was specified 2 -> no IDs specified to delete 3 -> could not execute BulkDeleteMedia.
BulkRemoveMediaGroup bulk operates an pulls groups from many media ids.
GetAllEvents selects all Events from the mongodb.
GetAllMedia selects all Media from the mongodb.
GetAllNodes selects all Nodes from the mongodb.
GetEventsByIDs selects multiple Media Documents for the passed ids.
GetEventsByKeyword returns the topmost events that are starting with the keyword.
GetMediaByIDs selects multiple Media Documents for the passed ids.
GetMediaPage returns the requested page after a specific id.
GetTagsByKeyword returns the topmost tags that are starting with the keyword.
GetUserGroups returns all groups the user is part of.
GetUserGroupsByIDs returns a slice of usergroups, that are matching the given id slice.
GetUserGroupsByKeyword returns the topmost groups that are starting with the keyword.
VerifyTag creates the tag if not in the db already and returns the name in the db.
VerifyTags iterates over an array of tags and creates the tags if not in db already.

# Variables

EventProject is a bson representation of the event object.
IPFSNodeProject is a bson representation of the ipfs-node setting object.
MediaCollection is the name of the mongo collection.
MediaListProject is a bson representaion of the $project aggregation for mongodb.
MediaProject is a bson representation of the $project aggregation for mongodb.
MediaProjectInternal is a bson representation of the $project aggregation for mongodb.
NodeCollection is the name of the mongo collection.
NodeProject is a bson representation of the ipfs-node setting object.
No description provided by the author
NodeProjectInternal is a bson representation of the ipfs-node setting object.
NodeProjectSecret is bson representation of the node to retrieve the secret.
No description provided by the author
SettingsProject is a bson representation of the settings object.
TagCollection is the name of the mongo collection.
UserGroupCollection is the name of the mongo collection.
UserGroupProject is a bson representation of a user group.

# Structs

Comment type that is beeing referenced by multiple other types.
Event holds comments, media and the information about the the event.
Invite represents the database entry for the tokens.
IPFSNode stores all relevant information about an additional node for uploads.
Media holds all information about the item.
MediaEventMap is used to map an array of events to an array of media.
MediaGroupMap is used to map an array of groups to an array of media.
MediaQuery holds query options for the media api.
Node holts the users and the information about the group.
Settings stores all user related configurations.
Tag has a name and an ID for the reference.
TagEventMap ist used to map an array of tags to an array of media.
TagMediaMap ist used to map an array of tags to an array of media.
UserGroup holts the users and the information about the group.