Full Mattermost server source with integrated Community Enterprise features. Includes vendor directory for offline/air-gapped builds. Structure: - enterprise-impl/: Enterprise feature implementations - enterprise-community/: Init files that register implementations - enterprise/: Bridge imports (community_imports.go) - vendor/: All dependencies for offline builds Build (online): go build ./cmd/mattermost Build (offline/air-gapped): go build -mod=vendor ./cmd/mattermost 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
37 lines
1.1 KiB
Go
37 lines
1.1 KiB
Go
// Copyright (c) 2015-present Mattermost, Inc. All Rights Reserved.
|
|
// See LICENSE.enterprise for license information.
|
|
|
|
package shared
|
|
|
|
import (
|
|
"github.com/mattermost/mattermost/server/public/model"
|
|
"github.com/mattermost/mattermost/server/v8/channels/store"
|
|
)
|
|
|
|
type MessageExportStore interface {
|
|
Post() store.PostStore
|
|
ChannelMemberHistory() store.ChannelMemberHistoryStore
|
|
Channel() store.ChannelStore
|
|
Compliance() store.ComplianceStore
|
|
FileInfo() MEFileInfoStore
|
|
}
|
|
|
|
type MEFileInfoStore interface {
|
|
GetForPost(postID string, readFromMaster, includeDeleted, allowFromCache bool) ([]*model.FileInfo, error)
|
|
}
|
|
|
|
type messageExportStore struct {
|
|
store.Store
|
|
}
|
|
|
|
// NewMessageExportStore returns a wrapped store.Store. Why? Because the CLI tool needs to "override" the GetForPost
|
|
// method in FileStore. Non-CLI code only needs to use the store.Store's methods. This can be removed when we deprecate
|
|
// the CLI tool. Tracked at MM-61139.
|
|
func NewMessageExportStore(s store.Store) messageExportStore {
|
|
return messageExportStore{s}
|
|
}
|
|
|
|
func (ss messageExportStore) FileInfo() MEFileInfoStore {
|
|
return ss.Store.FileInfo()
|
|
}
|