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>
42 lines
881 B
Go
42 lines
881 B
Go
package settings
|
|
|
|
import (
|
|
"fmt"
|
|
|
|
"github.com/mattermost/mattermost/server/public/model"
|
|
)
|
|
|
|
type emptySetting struct {
|
|
baseSetting
|
|
}
|
|
|
|
// NewEmptySetting creates a new panel value with no setting attached
|
|
func NewEmptySetting(id, title, description string) Setting {
|
|
return &emptySetting{
|
|
baseSetting: baseSetting{
|
|
id: id,
|
|
title: title,
|
|
description: description,
|
|
},
|
|
}
|
|
}
|
|
|
|
func (s *emptySetting) GetSlackAttachments(userID, settingHandler string, disabled bool) (*model.SlackAttachment, error) {
|
|
title := fmt.Sprintf("Setting: %s", s.title)
|
|
sa := model.SlackAttachment{
|
|
Title: title,
|
|
Text: s.description,
|
|
Fallback: fmt.Sprintf("%s: %s", title, s.description),
|
|
}
|
|
|
|
return &sa, nil
|
|
}
|
|
|
|
func (s *emptySetting) Get(userID string) (any, error) {
|
|
return nil, nil
|
|
}
|
|
|
|
func (s *emptySetting) Set(userID string, value any) error {
|
|
return nil
|
|
}
|