dmitri.shuralyov.com/service/change

Rename package changes to change.
dmitshur committed 6 years ago commit 852ae6208008be4cc1eb4ec6c688ab250e31cd3d
Showing partial commit. Full Commit
Collapse all
changes.go → change.go
@@ -1,7 +1,7 @@
// Package changes provides a changes service definition.
package changes
// Package change provides a change service definition.
package change

import (
	"context"
	"time"

@@ -17,11 +17,11 @@ type Service interface {
	Count(ctx context.Context, repo string, opt ListOptions) (uint64, error)

	// Get a change.
	Get(ctx context.Context, repo string, id uint64) (Change, error)

	// ListTimeline lists timeline items (changes.Comment, changes.Review, changes.TimelineItem) for specified change id.
	// ListTimeline lists timeline items (change.Comment, change.Review, change.TimelineItem) for specified change id.
	ListTimeline(ctx context.Context, repo string, id uint64, opt *ListTimelineOptions) ([]interface{}, error)
	// ListCommits lists change commits.
	ListCommits(ctx context.Context, repo string, id uint64) ([]Commit, error)
	// Get a change diff.
	GetDiff(ctx context.Context, repo string, id uint64, opt *GetDiffOptions) ([]byte, error)
timeline.go
@@ -1,6 +1,6 @@
package changes
package change

import (
	"time"

	"github.com/shurcooL/issues"