Documentation ¶
Index ¶
- func NewUsers(users []*user.User) ([]string, []interface{})
- func NewVersionedPlugin(p *plugin.VersionedPlugin) (*PluginDocument, *PluginVersionDocument)
- type OrganizationDocument
- type PluginConsumer
- type PluginDocument
- type PluginLikeDocument
- type PluginVersionDocument
- type UserConsumer
- type UserDocument
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewVersionedPlugin ¶
func NewVersionedPlugin(p *plugin.VersionedPlugin) (*PluginDocument, *PluginVersionDocument)
Types ¶
type OrganizationDocument ¶
type OrganizationDocument struct { ID string `bson:"id"` Name string `bson:"name"` DisplayName string `bson:"displayName"` Description string `bson:"description"` Active bool `bson:"active"` }
func NewOrganization ¶
func NewOrganization(organization *user.Organization) *OrganizationDocument
func (*OrganizationDocument) Model ¶
func (d *OrganizationDocument) Model() (*user.Organization, error)
type PluginConsumer ¶
type PluginDocument ¶
type PluginDocument struct { ID string `bson:"id"` Type string `bson:"type"` CreatedAt time.Time `bson:"createdAt"` UpdatedAt time.Time `bson:"updatedAt"` Active bool `bson:"active"` Tags []string `bson:"tags"` Images []string `bson:"images"` PublisherID string `bson:"publisherId"` // materialized for search Name string `bson:"name"` Author string `bson:"author"` Description string `bson:"description"` Icon string `bson:"icon"` Repository string `bson:"repository"` // materialized for sort PublishedAt time.Time `bson:"publishedAt"` Downloads int64 `bson:"downloads"` // materialized for read Readme string `bson:"readme"` Like int64 `bson:"like"` LatestVersion string `bson:"latestVersion"` }
func NewPlugin ¶
func NewPlugin(p *plugin.Plugin) *PluginDocument
type PluginLikeDocument ¶
func NewPluginLike ¶
func NewPluginLike(userID id.UserID, pluginID id.PluginID) *PluginLikeDocument
type PluginVersionDocument ¶
type PluginVersionDocument struct { ID string `bson:"id"` PluginID string `bson:"pluginId"` Name string `bson:"name"` Version string `bson:"version"` Author string `bson:"author"` Repository string `bson:"repository"` Description string `bson:"description"` Readme string `bson:"readme"` Icon string `bson:"icon"` Downloads int64 `bson:"downloads"` Active bool `bson:"active"` CreatedAt time.Time `bson:"createdAt"` UpdatedAt time.Time `bson:"updatedAt"` PublishedAt time.Time `bson:"publishedAt"` Checksum string `bson:"checksum"` }
func NewVersion ¶
func NewVersion(v *plugin.Version) *PluginVersionDocument
type UserConsumer ¶
Click to show internal directories.
Click to hide internal directories.