|
|
@@ -6,6 +6,10 @@ import (
|
|
|
"crypto/tls"
|
|
|
"encoding/hex"
|
|
|
"fmt"
|
|
|
+ "gitote/gitote/models/errors"
|
|
|
+ "gitote/gitote/pkg/httplib"
|
|
|
+ "gitote/gitote/pkg/setting"
|
|
|
+ "gitote/gitote/pkg/sync"
|
|
|
"io/ioutil"
|
|
|
"strings"
|
|
|
"time"
|
|
|
@@ -13,14 +17,8 @@ import (
|
|
|
"github.com/go-xorm/xorm"
|
|
|
"github.com/json-iterator/go"
|
|
|
gouuid "github.com/satori/go.uuid"
|
|
|
- log "gopkg.in/clog.v1"
|
|
|
-
|
|
|
api "gitlab.com/gitote/go-gitote-client"
|
|
|
-
|
|
|
- "gitote/gitote/models/errors"
|
|
|
- "gitote/gitote/pkg/httplib"
|
|
|
- "gitote/gitote/pkg/setting"
|
|
|
- "gitote/gitote/pkg/sync"
|
|
|
+ log "gopkg.in/clog.v1"
|
|
|
)
|
|
|
|
|
|
var HookQueue = sync.NewUniqueQueue(setting.Webhook.QueueLength)
|