Documentation
¶
Overview ¶
Package comment provides comment storage via ent.
Plane: shared
Index ¶
- type Service
- func (s *Service) Add(ctx context.Context, target, author, body, team string) (*ent.Comment, error)
- func (s *Service) CurrentRound(ctx context.Context, target, team string) (int, error)
- func (s *Service) GetByRound(ctx context.Context, target, team string, round int) ([]*ent.Comment, error)
- func (s *Service) List(ctx context.Context, target, team string) ([]*ent.Comment, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Service ¶
type Service struct {
// contains filtered or unexported fields
}
Service wraps the ent client for comment persistence.
func NewService ¶
NewService creates a new comment Service.
func (*Service) CurrentRound ¶
CurrentRound returns the latest round number for target+team (0 if none).
Click to show internal directories.
Click to hide internal directories.