Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AggregationResult ¶
type AggregationResult struct { Data []Permission `bson:"data" json:"data"` TotalCount int64 `bson:"total_count" json:"total_count"` }
func (*AggregationResult) GetData ¶
func (r *AggregationResult) GetData() interface{}
func (*AggregationResult) GetTotal ¶
func (r *AggregationResult) GetTotal() int64
type ListRequest ¶
type ListRequest struct { pagination.FilteredQuery SortBy string `form:"sort_by" binding:"oneoforempty=name description"` }
type Permission ¶
type Permission struct { ID string `bson:"_id" json:"_id"` Name string `bson:"name" json:"name"` Description string `bson:"description" json:"description"` Type string `bson:"type" json:"type"` // View is used only for view permissions. View *View `bson:"view" json:"view,omitempty"` // ViewGroup is used only for view permissions. ViewGroup *ViewGroup `bson:"view_group" json:"view_group,omitempty"` // Playlist is used only for playlist permissions. Playlist *Playlist `bson:"playlist" json:"playlist,omitempty"` }
type Store ¶
type Store interface {
Find(ctx context.Context, request ListRequest) (*AggregationResult, error)
}
Click to show internal directories.
Click to hide internal directories.