Documentation ¶
Index ¶
- Variables
- func NewIDFilter(userIDs []int64) models.Filter
- type CreateCmd
- type GetCmd
- type GetFilter
- type Service
- func (s *Service) Create(ctx context.Context, orgID int64, signedInUser *models.SignedInUser, ...) (*commentmodel.CommentDto, error)
- func (s *Service) Get(ctx context.Context, orgID int64, signedInUser *models.SignedInUser, ...) ([]*commentmodel.CommentDto, error)
- func (s *Service) Run(ctx context.Context) error
- type Storage
- type UserIDFilter
Constants ¶
This section is empty.
Variables ¶
View Source
var ErrPermissionDenied = errors.New("permission denied")
Functions ¶
func NewIDFilter ¶
Types ¶
type Service ¶
type Service struct {
// contains filtered or unexported fields
}
func ProvideService ¶
func ProvideService(cfg *setting.Cfg, store *sqlstore.SQLStore, live *live.GrafanaLive, features featuremgmt.FeatureToggles, accessControl accesscontrol.AccessControl) *Service
func (*Service) Create ¶
func (s *Service) Create(ctx context.Context, orgID int64, signedInUser *models.SignedInUser, cmd CreateCmd) (*commentmodel.CommentDto, error)
func (*Service) Get ¶
func (s *Service) Get(ctx context.Context, orgID int64, signedInUser *models.SignedInUser, cmd GetCmd) ([]*commentmodel.CommentDto, error)
type UserIDFilter ¶
type UserIDFilter struct {
// contains filtered or unexported fields
}
func (*UserIDFilter) InCondition ¶
func (a *UserIDFilter) InCondition() *models.InCondition
func (*UserIDFilter) JoinCondition ¶
func (a *UserIDFilter) JoinCondition() *models.JoinCondition
func (*UserIDFilter) WhereCondition ¶
func (a *UserIDFilter) WhereCondition() *models.WhereCondition
Click to show internal directories.
Click to hide internal directories.