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

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

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

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

@@ -3,7 +3,7 @@
package store
import "github.com/mattermost/platform/model"
import "github.com/mattermost/mattermost-server/model"
import "context"
type ResultHandler func(*StoreResult)

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

@@ -6,9 +6,9 @@ package store
import (
"context"
"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 (

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

@@ -6,7 +6,7 @@ package store
import (
"context"
"github.com/mattermost/platform/model"
"github.com/mattermost/mattermost-server/model"
)
func (s *LocalCacheSupplier) handleClusterInvalidateReaction(msg *model.ClusterMessage) {

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

@@ -12,7 +12,7 @@ import (
l4g "github.com/alecthomas/log4go"
"github.com/go-redis/redis"
"github.com/mattermost/platform/model"
"github.com/mattermost/mattermost-server/model"
)
const REDIS_EXPIRY_TIME = 30 * time.Minute

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

@@ -4,7 +4,7 @@
package store
import (
"github.com/mattermost/platform/model"
"github.com/mattermost/mattermost-server/model"
)
type SqlAuditStore struct {

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

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

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

@@ -12,9 +12,9 @@ import (
l4g "github.com/alecthomas/log4go"
"github.com/mattermost/gorp"
"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 (

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

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

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

@@ -4,7 +4,7 @@
package store
import (
"github.com/mattermost/platform/model"
"github.com/mattermost/mattermost-server/model"
)
type sqlClusterDiscoveryStore struct {

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

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

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

@@ -4,7 +4,7 @@
package store
import (
"github.com/mattermost/platform/model"
"github.com/mattermost/mattermost-server/model"
)
type SqlCommandStore struct {

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

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

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

@@ -10,7 +10,7 @@ import (
l4g "github.com/alecthomas/log4go"
"github.com/mattermost/platform/model"
"github.com/mattermost/mattermost-server/model"
)
type SqlCommandWebhookStore struct {

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

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

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

@@ -7,7 +7,7 @@ import (
"strconv"
"strings"
"github.com/mattermost/platform/model"
"github.com/mattermost/mattermost-server/model"
)
type SqlComplianceStore struct {

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

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

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

@@ -6,9 +6,9 @@ package store
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"
)
const (

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

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

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

@@ -6,9 +6,9 @@ import (
"database/sql"
"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"
)
type SqlFileInfoStore struct {

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

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

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

@@ -8,7 +8,7 @@ import (
"net/http"
"github.com/mattermost/gorp"
"github.com/mattermost/platform/model"
"github.com/mattermost/mattermost-server/model"
)
type SqlJobStore struct {

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

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

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

@@ -4,7 +4,7 @@
package store
import (
"github.com/mattermost/platform/model"
"github.com/mattermost/mattermost-server/model"
)
type SqlLicenseStore struct {

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

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

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

@@ -8,8 +8,8 @@ import (
"strings"
"github.com/mattermost/gorp"
"github.com/mattermost/platform/model"
"github.com/mattermost/platform/utils"
"github.com/mattermost/mattermost-server/model"
"github.com/mattermost/mattermost-server/utils"
)
type SqlOAuthStore struct {

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

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

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

@@ -11,9 +11,9 @@ import (
"strings"
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"
)
type SqlPostStore struct {

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

@@ -9,8 +9,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 TestPostStoreSave(t *testing.T) {

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

@@ -6,8 +6,8 @@ package store
import (
l4g "github.com/alecthomas/log4go"
"github.com/mattermost/gorp"
"github.com/mattermost/platform/model"
"github.com/mattermost/platform/utils"
"github.com/mattermost/mattermost-server/model"
"github.com/mattermost/mattermost-server/utils"
)
type SqlPreferenceStore struct {

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

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

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

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

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

@@ -5,8 +5,8 @@ package store
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"
)
type SqlSessionStore struct {

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

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

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

@@ -8,7 +8,7 @@ import (
"strconv"
"strings"
"github.com/mattermost/platform/model"
"github.com/mattermost/mattermost-server/model"
)
const (

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

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

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

@@ -3,7 +3,7 @@
package store
import "github.com/mattermost/platform/utils"
import "github.com/mattermost/mattermost-server/utils"
var store Store

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

@@ -19,8 +19,8 @@ import (
"github.com/go-sql-driver/mysql"
"github.com/lib/pq"
"github.com/mattermost/gorp"
"github.com/mattermost/platform/model"
"github.com/mattermost/platform/utils"
"github.com/mattermost/mattermost-server/model"
"github.com/mattermost/mattermost-server/utils"
)
const (
@@ -86,7 +86,7 @@ type SqlSupplierOldStores struct {
type SqlSupplier struct {
// rrCounter and srCounter should be kept first.
// See https://github.com/mattermost/platform/pull/7281
// See https://github.com/mattermost/mattermost-server/pull/7281
rrCounter int64
srCounter int64
next LayeredStoreSupplier

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

@@ -8,8 +8,8 @@ import (
l4g "github.com/alecthomas/log4go"
"github.com/mattermost/gorp"
"github.com/mattermost/platform/model"
"github.com/mattermost/platform/utils"
"github.com/mattermost/mattermost-server/model"
"github.com/mattermost/mattermost-server/utils"
)
func initSqlSupplierReactions(sqlStore SqlStore) {

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

@@ -4,7 +4,7 @@
package store
import (
"github.com/mattermost/platform/model"
"github.com/mattermost/mattermost-server/model"
)
type SqlSystemStore struct {

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

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

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

@@ -8,8 +8,8 @@ import (
"net/http"
"strconv"
"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 (
"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 TestTeamStoreSave(t *testing.T) {

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

@@ -9,7 +9,7 @@ import (
l4g "github.com/alecthomas/log4go"
"github.com/mattermost/platform/model"
"github.com/mattermost/mattermost-server/model"
)
type SqlTokenStore struct {

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

@@ -10,8 +10,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"
)
const (

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

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

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

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

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

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

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

@@ -10,9 +10,9 @@ import (
"strconv"
"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"
)
const (

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

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

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

@@ -8,9 +8,9 @@ import (
"database/sql"
"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"
)
type SqlWebhookStore struct {

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

@@ -9,7 +9,7 @@ import (
"net/http"
"github.com/mattermost/platform/model"
"github.com/mattermost/mattermost-server/model"
)
func TestWebhookStoreSaveIncoming(t *testing.T) {

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

@@ -7,7 +7,7 @@ import (
"time"
l4g "github.com/alecthomas/log4go"
"github.com/mattermost/platform/model"
"github.com/mattermost/mattermost-server/model"
)
type StoreResult struct {