Documentation ¶
Overview ¶
Package fs will implement change.Service using a virtual filesystem, once change.Service API is finalized. Until then, it uses hardcoded mock data to aid development and evaluation of change.Service API.
Index ¶
- type Service
- func (*Service) Count(ctx context.Context, repo string, opt change.ListOptions) (uint64, error)
- func (s *Service) EditComment(ctx context.Context, repo string, id uint64, cr change.CommentRequest) (change.Comment, error)
- func (*Service) Get(ctx context.Context, repo string, id uint64) (change.Change, error)
- func (*Service) GetDiff(ctx context.Context, repo string, id uint64, opt *change.GetDiffOptions) ([]byte, error)
- func (*Service) List(ctx context.Context, repo string, opt change.ListOptions) ([]change.Change, error)
- func (*Service) ListCommits(ctx context.Context, repo string, id uint64) ([]change.Commit, error)
- func (svc *Service) ListTimeline(ctx context.Context, repo string, id uint64, opt *change.ListTimelineOptions) ([]interface{}, error)
- func (*Service) ThreadType(ctx context.Context, repo string) (string, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Service ¶
type Service struct { // Reactions, if not nil, is temporarily used as a place to store reactions. Reactions reactions.Service }
func (*Service) EditComment ¶
func (*Service) GetDiff ¶
func (*Service) GetDiff(ctx context.Context, repo string, id uint64, opt *change.GetDiffOptions) ([]byte, error)
Get a change diff.
func (*Service) List ¶
func (*Service) List(ctx context.Context, repo string, opt change.ListOptions) ([]change.Change, error)
List changes.
func (*Service) ListCommits ¶
ListCommits lists change commits.
func (*Service) ListTimeline ¶
func (svc *Service) ListTimeline(ctx context.Context, repo string, id uint64, opt *change.ListTimelineOptions) ([]interface{}, error)
ListTimeline lists timeline items (change.Comment, change.Review, change.TimelineItem) for specified change id.
Click to show internal directories.
Click to hide internal directories.