Этот коммит содержится в:
Christopher Speller
2017-09-06 23:05:10 -07:00
родитель d8bd57901e
Коммит 29fca51821
326 изменённых файлов: 734 добавлений и 735 удалений

Просмотреть файл

@@ -14,11 +14,11 @@ import (
"net/http"
l4g "github.com/alecthomas/log4go"
"github.com/mattermost/platform/einterfaces"
"github.com/mattermost/platform/jobs"
"github.com/mattermost/platform/model"
"github.com/mattermost/platform/store"
"github.com/mattermost/platform/utils"
"github.com/mattermost/mattermost-server/einterfaces"
"github.com/mattermost/mattermost-server/jobs"
"github.com/mattermost/mattermost-server/model"
"github.com/mattermost/mattermost-server/store"
"github.com/mattermost/mattermost-server/utils"
)
func GetLogs(page, perPage int) ([]string, *model.AppError) {

Просмотреть файл

@@ -5,10 +5,10 @@ package app
import (
l4g "github.com/alecthomas/log4go"
"github.com/mattermost/platform/einterfaces"
"github.com/mattermost/platform/model"
"github.com/mattermost/platform/store"
"github.com/mattermost/platform/utils"
"github.com/mattermost/mattermost-server/einterfaces"
"github.com/mattermost/mattermost-server/model"
"github.com/mattermost/mattermost-server/store"
"github.com/mattermost/mattermost-server/utils"
)
const (

Просмотреть файл

@@ -6,8 +6,8 @@ package app
import (
"time"
"github.com/mattermost/platform/model"
"github.com/mattermost/platform/utils"
"github.com/mattermost/mattermost-server/model"
"github.com/mattermost/mattermost-server/utils"
l4g "github.com/alecthomas/log4go"
)

Просмотреть файл

@@ -4,7 +4,7 @@
package app
import (
"github.com/mattermost/platform/model"
"github.com/mattermost/mattermost-server/model"
)
func (a *App) GetAudits(userId string, limit int) (model.Audits, *model.AppError) {

Просмотреть файл

@@ -7,9 +7,9 @@ import (
"net/http"
"strings"
"github.com/mattermost/platform/einterfaces"
"github.com/mattermost/platform/model"
"github.com/mattermost/platform/utils"
"github.com/mattermost/mattermost-server/einterfaces"
"github.com/mattermost/mattermost-server/model"
"github.com/mattermost/mattermost-server/utils"
)
func (a *App) CheckPasswordAndAllCriteria(user *model.User, password string, mfaToken string) *model.AppError {

Просмотреть файл

@@ -7,7 +7,7 @@ import (
"strings"
l4g "github.com/alecthomas/log4go"
"github.com/mattermost/platform/model"
"github.com/mattermost/mattermost-server/model"
)
func SessionHasPermissionTo(session model.Session, permission *model.Permission) bool {

Просмотреть файл

@@ -6,7 +6,7 @@ package app
import (
"testing"
"github.com/mattermost/platform/model"
"github.com/mattermost/mattermost-server/model"
)
func TestCheckIfRolesGrantPermission(t *testing.T) {

Просмотреть файл

@@ -4,8 +4,8 @@
package app
import (
"github.com/mattermost/platform/model"
"github.com/mattermost/platform/utils"
"github.com/mattermost/mattermost-server/model"
"github.com/mattermost/mattermost-server/utils"
)
type AutoChannelCreator struct {

Просмотреть файл

@@ -4,8 +4,8 @@
package app
import (
"github.com/mattermost/platform/model"
"github.com/mattermost/platform/utils"
"github.com/mattermost/mattermost-server/model"
"github.com/mattermost/mattermost-server/utils"
)
const (

Просмотреть файл

@@ -7,8 +7,8 @@ import (
"math/rand"
"time"
"github.com/mattermost/platform/model"
"github.com/mattermost/platform/utils"
"github.com/mattermost/mattermost-server/model"
"github.com/mattermost/mattermost-server/utils"
)
type TestEnvironment struct {

Просмотреть файл

@@ -8,8 +8,8 @@ import (
"io"
"os"
"github.com/mattermost/platform/model"
"github.com/mattermost/platform/utils"
"github.com/mattermost/mattermost-server/model"
"github.com/mattermost/mattermost-server/utils"
)
type AutoPostCreator struct {

Просмотреть файл

@@ -4,8 +4,8 @@
package app
import (
"github.com/mattermost/platform/model"
"github.com/mattermost/platform/utils"
"github.com/mattermost/mattermost-server/model"
"github.com/mattermost/mattermost-server/utils"
)
type TeamEnvironment struct {

Просмотреть файл

@@ -4,9 +4,9 @@
package app
import (
"github.com/mattermost/platform/model"
"github.com/mattermost/platform/store"
"github.com/mattermost/platform/utils"
"github.com/mattermost/mattermost-server/model"
"github.com/mattermost/mattermost-server/store"
"github.com/mattermost/mattermost-server/utils"
l4g "github.com/alecthomas/log4go"
)

Просмотреть файл

@@ -7,9 +7,9 @@ import (
"mime/multipart"
"net/http"
"github.com/mattermost/platform/einterfaces"
"github.com/mattermost/platform/model"
"github.com/mattermost/platform/utils"
"github.com/mattermost/mattermost-server/einterfaces"
"github.com/mattermost/mattermost-server/model"
"github.com/mattermost/mattermost-server/utils"
)
func SaveBrandImage(imageData *multipart.FileHeader) *model.AppError {

Просмотреть файл

@@ -10,9 +10,9 @@ import (
"time"
l4g "github.com/alecthomas/log4go"
"github.com/mattermost/platform/model"
"github.com/mattermost/platform/store"
"github.com/mattermost/platform/utils"
"github.com/mattermost/mattermost-server/model"
"github.com/mattermost/mattermost-server/store"
"github.com/mattermost/mattermost-server/utils"
)
func (a *App) CreateDefaultChannels(teamId string) ([]*model.Channel, *model.AppError) {

Просмотреть файл

@@ -3,8 +3,8 @@ package app
import (
"testing"
"github.com/mattermost/platform/model"
"github.com/mattermost/platform/utils"
"github.com/mattermost/mattermost-server/model"
"github.com/mattermost/mattermost-server/utils"
)
func TestPermanentDeleteChannel(t *testing.T) {

Просмотреть файл

@@ -8,7 +8,7 @@ import (
"time"
l4g "github.com/alecthomas/log4go"
"github.com/mattermost/platform/model"
"github.com/mattermost/mattermost-server/model"
)
const (

Просмотреть файл

@@ -8,7 +8,7 @@ import (
"time"
"github.com/mattermost/platform/model"
"github.com/mattermost/mattermost-server/model"
)
func TestClusterDiscoveryService(t *testing.T) {

Просмотреть файл

@@ -6,8 +6,8 @@ package app
import (
"strings"
"github.com/mattermost/platform/einterfaces"
"github.com/mattermost/platform/model"
"github.com/mattermost/mattermost-server/einterfaces"
"github.com/mattermost/mattermost-server/model"
)
func (a *App) RegisterAllClusterMessageHandlers() {

Просмотреть файл

@@ -11,8 +11,8 @@ import (
"strings"
l4g "github.com/alecthomas/log4go"
"github.com/mattermost/platform/model"
"github.com/mattermost/platform/utils"
"github.com/mattermost/mattermost-server/model"
"github.com/mattermost/mattermost-server/utils"
goi18n "github.com/nicksnyder/go-i18n/i18n"
)

Просмотреть файл

@@ -4,7 +4,7 @@
package app
import (
"github.com/mattermost/platform/model"
"github.com/mattermost/mattermost-server/model"
goi18n "github.com/nicksnyder/go-i18n/i18n"
)

Просмотреть файл

@@ -4,7 +4,7 @@
package app
import (
"github.com/mattermost/platform/model"
"github.com/mattermost/mattermost-server/model"
goi18n "github.com/nicksnyder/go-i18n/i18n"
)

Просмотреть файл

@@ -4,7 +4,7 @@
package app
import (
"github.com/mattermost/platform/model"
"github.com/mattermost/mattermost-server/model"
goi18n "github.com/nicksnyder/go-i18n/i18n"
)

Просмотреть файл

@@ -4,7 +4,7 @@
package app
import (
"github.com/mattermost/platform/model"
"github.com/mattermost/mattermost-server/model"
goi18n "github.com/nicksnyder/go-i18n/i18n"
)

Просмотреть файл

@@ -3,7 +3,7 @@ package app
import (
"testing"
"github.com/mattermost/platform/model"
"github.com/mattermost/mattermost-server/model"
"github.com/stretchr/testify/assert"
)

Просмотреть файл

@@ -6,7 +6,7 @@ package app
import (
"strings"
"github.com/mattermost/platform/model"
"github.com/mattermost/mattermost-server/model"
goi18n "github.com/nicksnyder/go-i18n/i18n"
)

Просмотреть файл

@@ -3,7 +3,7 @@ package app
import (
"testing"
"github.com/mattermost/platform/model"
"github.com/mattermost/mattermost-server/model"
)
func TestCodeProviderDoCommand(t *testing.T) {

Просмотреть файл

@@ -9,7 +9,7 @@ import (
"time"
l4g "github.com/alecthomas/log4go"
"github.com/mattermost/platform/model"
"github.com/mattermost/mattermost-server/model"
goi18n "github.com/nicksnyder/go-i18n/i18n"
)

Просмотреть файл

@@ -6,7 +6,7 @@ package app
import (
"strconv"
"github.com/mattermost/platform/model"
"github.com/mattermost/mattermost-server/model"
goi18n "github.com/nicksnyder/go-i18n/i18n"
)

Просмотреть файл

@@ -4,8 +4,8 @@
package app
import (
"github.com/mattermost/platform/model"
"github.com/mattermost/platform/utils"
"github.com/mattermost/mattermost-server/model"
"github.com/mattermost/mattermost-server/utils"
goi18n "github.com/nicksnyder/go-i18n/i18n"
)

Просмотреть файл

@@ -7,8 +7,8 @@ import (
"strings"
l4g "github.com/alecthomas/log4go"
"github.com/mattermost/platform/model"
"github.com/mattermost/platform/utils"
"github.com/mattermost/mattermost-server/model"
"github.com/mattermost/mattermost-server/utils"
goi18n "github.com/nicksnyder/go-i18n/i18n"
)

Просмотреть файл

@@ -4,7 +4,7 @@
package app
import (
"github.com/mattermost/platform/model"
"github.com/mattermost/mattermost-server/model"
goi18n "github.com/nicksnyder/go-i18n/i18n"
)

Просмотреть файл

@@ -4,7 +4,7 @@
package app
import (
"github.com/mattermost/platform/model"
"github.com/mattermost/mattermost-server/model"
goi18n "github.com/nicksnyder/go-i18n/i18n"
)

Просмотреть файл

@@ -11,8 +11,8 @@ import (
"strings"
l4g "github.com/alecthomas/log4go"
"github.com/mattermost/platform/model"
"github.com/mattermost/platform/utils"
"github.com/mattermost/mattermost-server/model"
"github.com/mattermost/mattermost-server/utils"
goi18n "github.com/nicksnyder/go-i18n/i18n"
)
@@ -323,7 +323,7 @@ func (me *LoadTestProvider) UrlCommand(args *model.CommandArgs, message string)
// provide a shortcut to easily access tests stored in doc/developer/tests
if !strings.HasPrefix(url, "http") {
url = "https://raw.githubusercontent.com/mattermost/platform/master/tests/" + url
url = "https://raw.githubusercontent.com/mattermost/mattermost-server/master/tests/" + url
if path.Ext(url) == "" {
url += ".md"
@@ -373,7 +373,7 @@ func (me *LoadTestProvider) JsonCommand(args *model.CommandArgs, message string)
// provide a shortcut to easily access tests stored in doc/developer/tests
if !strings.HasPrefix(url, "http") {
url = "https://raw.githubusercontent.com/mattermost/platform/master/tests/" + url
url = "https://raw.githubusercontent.com/mattermost/mattermost-server/master/tests/" + url
if path.Ext(url) == "" {
url += ".json"

Просмотреть файл

@@ -4,7 +4,7 @@
package app
import (
"github.com/mattermost/platform/model"
"github.com/mattermost/mattermost-server/model"
goi18n "github.com/nicksnyder/go-i18n/i18n"
)

Просмотреть файл

@@ -4,7 +4,7 @@
package app
import (
"github.com/mattermost/platform/model"
"github.com/mattermost/mattermost-server/model"
goi18n "github.com/nicksnyder/go-i18n/i18n"
)

Просмотреть файл

@@ -7,7 +7,7 @@ import (
"strings"
l4g "github.com/alecthomas/log4go"
"github.com/mattermost/platform/model"
"github.com/mattermost/mattermost-server/model"
goi18n "github.com/nicksnyder/go-i18n/i18n"
)

Просмотреть файл

@@ -4,7 +4,7 @@
package app
import (
"github.com/mattermost/platform/model"
"github.com/mattermost/mattermost-server/model"
goi18n "github.com/nicksnyder/go-i18n/i18n"
)

Просмотреть файл

@@ -4,7 +4,7 @@
package app
import (
"github.com/mattermost/platform/model"
"github.com/mattermost/mattermost-server/model"
goi18n "github.com/nicksnyder/go-i18n/i18n"
)

Просмотреть файл

@@ -4,7 +4,7 @@
package app
import (
"github.com/mattermost/platform/model"
"github.com/mattermost/mattermost-server/model"
goi18n "github.com/nicksnyder/go-i18n/i18n"
)

Просмотреть файл

@@ -4,7 +4,7 @@
package app
import (
"github.com/mattermost/platform/model"
"github.com/mattermost/mattermost-server/model"
goi18n "github.com/nicksnyder/go-i18n/i18n"
)

Просмотреть файл

@@ -4,7 +4,7 @@
package app
import (
"github.com/mattermost/platform/model"
"github.com/mattermost/mattermost-server/model"
goi18n "github.com/nicksnyder/go-i18n/i18n"
)

Просмотреть файл

@@ -4,7 +4,7 @@
package app
import (
"github.com/mattermost/platform/model"
"github.com/mattermost/mattermost-server/model"
goi18n "github.com/nicksnyder/go-i18n/i18n"
)

Просмотреть файл

@@ -4,7 +4,7 @@
package app
import (
"github.com/mattermost/platform/model"
"github.com/mattermost/mattermost-server/model"
goi18n "github.com/nicksnyder/go-i18n/i18n"
)

Просмотреть файл

@@ -8,9 +8,9 @@ import (
"net/http"
"github.com/mattermost/platform/einterfaces"
"github.com/mattermost/platform/model"
"github.com/mattermost/platform/utils"
"github.com/mattermost/mattermost-server/einterfaces"
"github.com/mattermost/mattermost-server/model"
"github.com/mattermost/mattermost-server/utils"
)
func (a *App) GetComplianceReports(page, perPage int) (model.Compliances, *model.AppError) {

Просмотреть файл

@@ -9,8 +9,8 @@ import (
"os"
"runtime"
"github.com/mattermost/platform/model"
"github.com/mattermost/platform/utils"
"github.com/mattermost/mattermost-server/model"
"github.com/mattermost/mattermost-server/utils"
"github.com/segmentio/analytics-go"
)

Просмотреть файл

@@ -12,7 +12,7 @@ import (
"testing"
"time"
"github.com/mattermost/platform/utils"
"github.com/mattermost/mattermost-server/utils"
)
func newTestServer() (chan string, *httptest.Server) {

Просмотреть файл

@@ -6,9 +6,9 @@ package app
import (
"net/http"
"github.com/mattermost/platform/einterfaces"
"github.com/mattermost/platform/model"
"github.com/mattermost/platform/utils"
"github.com/mattermost/mattermost-server/einterfaces"
"github.com/mattermost/mattermost-server/model"
"github.com/mattermost/mattermost-server/utils"
)
func TestElasticsearch(cfg *model.Config) *model.AppError {

Просмотреть файл

@@ -10,8 +10,8 @@ import (
"net/http"
l4g "github.com/alecthomas/log4go"
"github.com/mattermost/platform/model"
"github.com/mattermost/platform/utils"
"github.com/mattermost/mattermost-server/model"
"github.com/mattermost/mattermost-server/utils"
)
func SendChangeUsernameEmail(oldUsername, newUsername, email, locale, siteURL string) *model.AppError {

Просмотреть файл

@@ -9,8 +9,8 @@ import (
"strconv"
"time"
"github.com/mattermost/platform/model"
"github.com/mattermost/platform/utils"
"github.com/mattermost/mattermost-server/model"
"github.com/mattermost/mattermost-server/utils"
"net/http"

Просмотреть файл

@@ -8,8 +8,8 @@ import (
"testing"
"time"
"github.com/mattermost/platform/model"
"github.com/mattermost/platform/store"
"github.com/mattermost/mattermost-server/model"
"github.com/mattermost/mattermost-server/store"
)
func TestHandleNewNotifications(t *testing.T) {

Просмотреть файл

@@ -19,8 +19,8 @@ import (
"image/color/palette"
"github.com/disintegration/imaging"
"github.com/mattermost/platform/model"
"github.com/mattermost/platform/utils"
"github.com/mattermost/mattermost-server/model"
"github.com/mattermost/mattermost-server/utils"
)
const (

Просмотреть файл

@@ -27,8 +27,8 @@ import (
"github.com/rwcarlsen/goexif/exif"
_ "golang.org/x/image/bmp"
"github.com/mattermost/platform/model"
"github.com/mattermost/platform/utils"
"github.com/mattermost/mattermost-server/model"
"github.com/mattermost/mattermost-server/utils"
)
const (

Просмотреть файл

@@ -8,8 +8,8 @@ import (
"testing"
"time"
"github.com/mattermost/platform/model"
"github.com/mattermost/platform/utils"
"github.com/mattermost/mattermost-server/model"
"github.com/mattermost/mattermost-server/utils"
)
func TestGeneratePublicLinkHash(t *testing.T) {

Просмотреть файл

@@ -17,9 +17,9 @@ import (
l4g "github.com/alecthomas/log4go"
"github.com/mattermost/platform/model"
"github.com/mattermost/platform/store"
"github.com/mattermost/platform/utils"
"github.com/mattermost/mattermost-server/model"
"github.com/mattermost/mattermost-server/store"
"github.com/mattermost/mattermost-server/utils"
)
// Import Data Models

Просмотреть файл

@@ -8,9 +8,9 @@ import (
"strings"
"testing"
"github.com/mattermost/platform/model"
"github.com/mattermost/platform/store"
"github.com/mattermost/platform/utils"
"github.com/mattermost/mattermost-server/model"
"github.com/mattermost/mattermost-server/store"
"github.com/mattermost/mattermost-server/utils"
)
func ptrStr(s string) *string {

Просмотреть файл

@@ -4,8 +4,8 @@
package app
import (
"github.com/mattermost/platform/jobs"
"github.com/mattermost/platform/model"
"github.com/mattermost/mattermost-server/jobs"
"github.com/mattermost/mattermost-server/model"
)
func (a *App) GetJob(id string) (*model.Job, *model.AppError) {

Просмотреть файл

@@ -6,8 +6,8 @@ package app
import (
"testing"
"github.com/mattermost/platform/model"
"github.com/mattermost/platform/store"
"github.com/mattermost/mattermost-server/model"
"github.com/mattermost/mattermost-server/store"
)
func TestGetJob(t *testing.T) {

Просмотреть файл

@@ -7,9 +7,9 @@ import (
"net/http"
l4g "github.com/alecthomas/log4go"
"github.com/mattermost/platform/einterfaces"
"github.com/mattermost/platform/model"
"github.com/mattermost/platform/utils"
"github.com/mattermost/mattermost-server/einterfaces"
"github.com/mattermost/mattermost-server/model"
"github.com/mattermost/mattermost-server/utils"
)
func SyncLdap() {

Просмотреть файл

@@ -8,8 +8,8 @@ import (
"strings"
l4g "github.com/alecthomas/log4go"
"github.com/mattermost/platform/model"
"github.com/mattermost/platform/utils"
"github.com/mattermost/mattermost-server/model"
"github.com/mattermost/mattermost-server/utils"
)
func (a *App) LoadLicense() {

Просмотреть файл

@@ -4,10 +4,10 @@
package app
import (
//"github.com/mattermost/platform/model"
//"github.com/mattermost/mattermost-server/model"
"testing"
"github.com/mattermost/platform/utils"
"github.com/mattermost/mattermost-server/utils"
)
func TestLoadLicense(t *testing.T) {

Просмотреть файл

@@ -9,9 +9,9 @@ import (
"strings"
"time"
"github.com/mattermost/platform/einterfaces"
"github.com/mattermost/platform/model"
"github.com/mattermost/platform/utils"
"github.com/mattermost/mattermost-server/einterfaces"
"github.com/mattermost/mattermost-server/model"
"github.com/mattermost/mattermost-server/utils"
"github.com/mssola/user_agent"
)

Просмотреть файл

@@ -18,10 +18,10 @@ import (
"unicode"
l4g "github.com/alecthomas/log4go"
"github.com/mattermost/platform/einterfaces"
"github.com/mattermost/platform/model"
"github.com/mattermost/platform/store"
"github.com/mattermost/platform/utils"
"github.com/mattermost/mattermost-server/einterfaces"
"github.com/mattermost/mattermost-server/model"
"github.com/mattermost/mattermost-server/store"
"github.com/mattermost/mattermost-server/utils"
"github.com/nicksnyder/go-i18n/i18n"
)

Просмотреть файл

@@ -7,8 +7,8 @@ import (
"strings"
"testing"
"github.com/mattermost/platform/model"
"github.com/mattermost/platform/utils"
"github.com/mattermost/mattermost-server/model"
"github.com/mattermost/mattermost-server/utils"
)
func TestSendNotifications(t *testing.T) {

Просмотреть файл

@@ -15,10 +15,10 @@ import (
"time"
l4g "github.com/alecthomas/log4go"
"github.com/mattermost/platform/einterfaces"
"github.com/mattermost/platform/model"
"github.com/mattermost/platform/store"
"github.com/mattermost/platform/utils"
"github.com/mattermost/mattermost-server/einterfaces"
"github.com/mattermost/mattermost-server/model"
"github.com/mattermost/mattermost-server/store"
"github.com/mattermost/mattermost-server/utils"
)
const (

Просмотреть файл

@@ -6,8 +6,8 @@ package app
import (
"testing"
"github.com/mattermost/platform/model"
"github.com/mattermost/platform/utils"
"github.com/mattermost/mattermost-server/model"
"github.com/mattermost/mattermost-server/utils"
)
func TestOAuthRevokeAccessToken(t *testing.T) {

Просмотреть файл

@@ -7,7 +7,7 @@ import (
"net/http"
"github.com/gorilla/mux"
"github.com/mattermost/platform/model"
"github.com/mattermost/mattermost-server/model"
)
type API interface {

Просмотреть файл

@@ -10,8 +10,8 @@ import (
"sync/atomic"
l4g "github.com/alecthomas/log4go"
"github.com/mattermost/platform/app/plugin"
"github.com/mattermost/platform/model"
"github.com/mattermost/mattermost-server/app/plugin"
"github.com/mattermost/mattermost-server/model"
)
type Plugin struct {

Просмотреть файл

@@ -9,7 +9,7 @@ import (
"strings"
"text/template"
"github.com/mattermost/platform/model"
"github.com/mattermost/mattermost-server/model"
)
type Webhook struct {

Просмотреть файл

@@ -11,9 +11,9 @@ import (
l4g "github.com/alecthomas/log4go"
"github.com/gorilla/mux"
"github.com/mattermost/platform/app/plugin"
"github.com/mattermost/platform/model"
"github.com/mattermost/platform/utils"
"github.com/mattermost/mattermost-server/app/plugin"
"github.com/mattermost/mattermost-server/model"
"github.com/mattermost/mattermost-server/utils"
)
type Plugin struct {

Просмотреть файл

@@ -15,13 +15,13 @@ import (
l4g "github.com/alecthomas/log4go"
"github.com/gorilla/mux"
"github.com/mattermost/platform/einterfaces"
"github.com/mattermost/platform/model"
"github.com/mattermost/platform/utils"
"github.com/mattermost/mattermost-server/einterfaces"
"github.com/mattermost/mattermost-server/model"
"github.com/mattermost/mattermost-server/utils"
"github.com/mattermost/platform/app/plugin"
"github.com/mattermost/platform/app/plugin/jira"
"github.com/mattermost/platform/app/plugin/ldapextras"
"github.com/mattermost/mattermost-server/app/plugin"
"github.com/mattermost/mattermost-server/app/plugin/jira"
"github.com/mattermost/mattermost-server/app/plugin/ldapextras"
)
type PluginAPI struct {

Просмотреть файл

@@ -12,10 +12,10 @@ import (
l4g "github.com/alecthomas/log4go"
"github.com/dyatlov/go-opengraph/opengraph"
"github.com/mattermost/platform/einterfaces"
"github.com/mattermost/platform/model"
"github.com/mattermost/platform/store"
"github.com/mattermost/platform/utils"
"github.com/mattermost/mattermost-server/einterfaces"
"github.com/mattermost/mattermost-server/model"
"github.com/mattermost/mattermost-server/store"
"github.com/mattermost/mattermost-server/utils"
)
var linkWithTextRegex = regexp.MustCompile(`<([^<\|]+)\|([^>]+)>`)

Просмотреть файл

@@ -14,8 +14,8 @@ import (
"github.com/stretchr/testify/assert"
"github.com/stretchr/testify/require"
"github.com/mattermost/platform/model"
"github.com/mattermost/platform/utils"
"github.com/mattermost/mattermost-server/model"
"github.com/mattermost/mattermost-server/utils"
)
func TestUpdatePostEditAt(t *testing.T) {

Просмотреть файл

@@ -6,7 +6,7 @@ package app
import (
"net/http"
"github.com/mattermost/platform/model"
"github.com/mattermost/mattermost-server/model"
)
func (a *App) GetPreferencesForUser(userId string) (model.Preferences, *model.AppError) {

Просмотреть файл

@@ -4,7 +4,7 @@
package app
import (
"github.com/mattermost/platform/model"
"github.com/mattermost/mattermost-server/model"
)
func (a *App) SaveReactionForPost(reaction *model.Reaction) (*model.Reaction, *model.AppError) {

Просмотреть файл

@@ -11,9 +11,9 @@ import (
"path/filepath"
"github.com/mattermost/platform/einterfaces"
"github.com/mattermost/platform/model"
"github.com/mattermost/platform/utils"
"github.com/mattermost/mattermost-server/einterfaces"
"github.com/mattermost/mattermost-server/model"
"github.com/mattermost/mattermost-server/utils"
)
func GetSamlMetadata() (string, *model.AppError) {

Просмотреть файл

@@ -11,8 +11,8 @@ import (
"strconv"
l4g "github.com/alecthomas/log4go"
"github.com/mattermost/platform/model"
"github.com/mattermost/platform/utils"
"github.com/mattermost/mattermost-server/model"
"github.com/mattermost/mattermost-server/utils"
)
const (

Просмотреть файл

@@ -19,10 +19,10 @@ import (
"gopkg.in/throttled/throttled.v2"
"gopkg.in/throttled/throttled.v2/store/memstore"
"github.com/mattermost/platform/model"
"github.com/mattermost/platform/plugin/pluginenv"
"github.com/mattermost/platform/store"
"github.com/mattermost/platform/utils"
"github.com/mattermost/mattermost-server/model"
"github.com/mattermost/mattermost-server/plugin/pluginenv"
"github.com/mattermost/mattermost-server/store"
"github.com/mattermost/mattermost-server/utils"
)
type Server struct {

Просмотреть файл

@@ -6,9 +6,9 @@ package app
import (
"net/http"
"github.com/mattermost/platform/einterfaces"
"github.com/mattermost/platform/model"
"github.com/mattermost/platform/utils"
"github.com/mattermost/mattermost-server/einterfaces"
"github.com/mattermost/mattermost-server/model"
"github.com/mattermost/mattermost-server/utils"
l4g "github.com/alecthomas/log4go"
)

Просмотреть файл

@@ -6,7 +6,7 @@ package app
import (
"testing"
"github.com/mattermost/platform/model"
"github.com/mattermost/mattermost-server/model"
)
func TestCache(t *testing.T) {

Просмотреть файл

@@ -18,8 +18,8 @@ import (
"net/http"
l4g "github.com/alecthomas/log4go"
"github.com/mattermost/platform/model"
"github.com/mattermost/platform/utils"
"github.com/mattermost/mattermost-server/model"
"github.com/mattermost/mattermost-server/utils"
)
type SlackChannel struct {

Просмотреть файл

@@ -11,7 +11,7 @@ import (
"github.com/stretchr/testify/assert"
"github.com/stretchr/testify/require"
"github.com/mattermost/platform/model"
"github.com/mattermost/mattermost-server/model"
)
func TestSlackConvertTimeStamp(t *testing.T) {

Просмотреть файл

@@ -6,10 +6,10 @@ package app
import (
l4g "github.com/alecthomas/log4go"
"github.com/mattermost/platform/einterfaces"
"github.com/mattermost/platform/model"
"github.com/mattermost/platform/store"
"github.com/mattermost/platform/utils"
"github.com/mattermost/mattermost-server/einterfaces"
"github.com/mattermost/mattermost-server/model"
"github.com/mattermost/mattermost-server/store"
"github.com/mattermost/mattermost-server/utils"
)
var statusCache *utils.Cache = utils.NewLru(model.STATUS_CACHE_SIZE)

Просмотреть файл

@@ -12,8 +12,8 @@ import (
l4g "github.com/alecthomas/log4go"
"github.com/mattermost/platform/model"
"github.com/mattermost/platform/utils"
"github.com/mattermost/mattermost-server/model"
"github.com/mattermost/mattermost-server/utils"
)
func (a *App) CreateTeam(team *model.Team) (*model.Team, *model.AppError) {

Просмотреть файл

@@ -7,7 +7,7 @@ import (
"strings"
"testing"
"github.com/mattermost/platform/model"
"github.com/mattermost/mattermost-server/model"
)
func TestCreateTeam(t *testing.T) {

Просмотреть файл

@@ -24,10 +24,10 @@ import (
l4g "github.com/alecthomas/log4go"
"github.com/disintegration/imaging"
"github.com/golang/freetype"
"github.com/mattermost/platform/einterfaces"
"github.com/mattermost/platform/model"
"github.com/mattermost/platform/store"
"github.com/mattermost/platform/utils"
"github.com/mattermost/mattermost-server/einterfaces"
"github.com/mattermost/mattermost-server/model"
"github.com/mattermost/mattermost-server/store"
"github.com/mattermost/mattermost-server/utils"
)
const (

Просмотреть файл

@@ -13,10 +13,10 @@ import (
"testing"
"time"
"github.com/mattermost/platform/einterfaces"
"github.com/mattermost/platform/model"
"github.com/mattermost/platform/model/gitlab"
"github.com/mattermost/platform/utils"
"github.com/mattermost/mattermost-server/einterfaces"
"github.com/mattermost/mattermost-server/model"
"github.com/mattermost/mattermost-server/model/gitlab"
"github.com/mattermost/mattermost-server/utils"
)
func TestIsUsernameTaken(t *testing.T) {

Просмотреть файл

@@ -8,9 +8,9 @@ import (
"sync/atomic"
"time"
"github.com/mattermost/platform/einterfaces"
"github.com/mattermost/platform/model"
"github.com/mattermost/platform/utils"
"github.com/mattermost/mattermost-server/einterfaces"
"github.com/mattermost/mattermost-server/model"
"github.com/mattermost/mattermost-server/utils"
l4g "github.com/alecthomas/log4go"
"github.com/gorilla/websocket"

Просмотреть файл

@@ -15,9 +15,9 @@ import (
l4g "github.com/alecthomas/log4go"
"github.com/mattermost/platform/einterfaces"
"github.com/mattermost/platform/model"
"github.com/mattermost/platform/utils"
"github.com/mattermost/mattermost-server/einterfaces"
"github.com/mattermost/mattermost-server/model"
"github.com/mattermost/mattermost-server/utils"
)
const (
@@ -28,7 +28,7 @@ const (
type Hub struct {
// connectionCount should be kept first.
// See https://github.com/mattermost/platform/pull/7281
// See https://github.com/mattermost/mattermost-server/pull/7281
connectionCount int64
connections []*WebConn
connectionIndex int

Просмотреть файл

@@ -11,10 +11,10 @@ import (
"unicode/utf8"
l4g "github.com/alecthomas/log4go"
"github.com/mattermost/platform/einterfaces"
"github.com/mattermost/platform/model"
"github.com/mattermost/platform/store"
"github.com/mattermost/platform/utils"
"github.com/mattermost/mattermost-server/einterfaces"
"github.com/mattermost/mattermost-server/model"
"github.com/mattermost/mattermost-server/store"
"github.com/mattermost/mattermost-server/utils"
)
const (

Просмотреть файл

@@ -6,8 +6,8 @@ package app
import (
"testing"
"github.com/mattermost/platform/model"
"github.com/mattermost/platform/utils"
"github.com/mattermost/mattermost-server/model"
"github.com/mattermost/mattermost-server/utils"
)
func TestCreateWebhookPost(t *testing.T) {

Просмотреть файл

@@ -12,8 +12,8 @@ import (
"strings"
"time"
"github.com/mattermost/platform/model"
"github.com/mattermost/platform/utils"
"github.com/mattermost/mattermost-server/model"
"github.com/mattermost/mattermost-server/utils"
)
func GetWebrtcInfoForSession(sessionId string) (*model.WebrtcInfoResponse, *model.AppError) {

Просмотреть файл

@@ -8,8 +8,8 @@ import (
"net/http"
"github.com/mattermost/platform/model"
"github.com/mattermost/platform/utils"
"github.com/mattermost/mattermost-server/model"
"github.com/mattermost/mattermost-server/utils"
)
type webSocketHandler interface {