aboutsummaryrefslogtreecommitdiff
path: root/pkg/service/git.go
diff options
context:
space:
mode:
Diffstat (limited to 'pkg/service/git.go')
-rw-r--r--pkg/service/git.go30
1 files changed, 30 insertions, 0 deletions
diff --git a/pkg/service/git.go b/pkg/service/git.go
new file mode 100644
index 0000000..0415cee
--- /dev/null
+++ b/pkg/service/git.go
@@ -0,0 +1,30 @@
+package service
+
+import "fmt"
+
+type (
+ GitService struct{}
+ Repository struct {
+ Name string
+ Title string
+ Description string
+ }
+)
+
+func NewGitService() *GitService {
+ return &GitService{}
+}
+
+func (g *GitService) ListRepositories() []*Repository {
+ repos := make([]*Repository, 10)
+
+ for i := range 10 {
+ repos[i] = &Repository{
+ Name: fmt.Sprintf("repository-%d", i),
+ Title: fmt.Sprintf("Repository %d", i),
+ Description: fmt.Sprintf("This is a description for repository %d", i),
+ }
+ }
+
+ return repos
+}