aboutsummaryrefslogtreecommitdiffsponsor
path: root/internal/service/service.go
diff options
context:
space:
mode:
Diffstat (limited to 'internal/service/service.go')
-rw-r--r--internal/service/service.go21
1 files changed, 0 insertions, 21 deletions
diff --git a/internal/service/service.go b/internal/service/service.go
index c34bcd3..38cabf8 100644
--- a/internal/service/service.go
+++ b/internal/service/service.go
@@ -1,11 +1,9 @@
package service
import (
- "encoding/json"
"errors"
"fmt"
"math/rand"
- "net/url"
"os"
"strconv"
"strings"
@@ -15,25 +13,6 @@ import (
"git.server.ky/slackcoder/mirror/internal/github"
)
-type Mirror struct {
- Method string `json:"method"`
- From *url.URL `json:"-"`
- To *url.URL `json:"-"`
- Description string `json:"description,omitempty"`
-}
-
-func (m *Mirror) Equal(arg *Mirror) bool {
- return m.Method == arg.Method && m.From.String() == arg.From.String() && m.To.String() == arg.To.String()
-}
-
-func (m *Mirror) String() string {
- buf, err := json.Marshal(m)
- if err != nil {
- panic(err)
- }
- return string(buf)
-}
-
type Service struct {
cfg *Config