* Move ImageProxy inside Channels ```release-note NONE ``` * Move back httpService ```release-note NONE ``` Co-authored-by: Mattermod <mattermod@users.noreply.github.com>
37 строки
697 B
Go
37 строки
697 B
Go
// Copyright (c) 2015-present Mattermost, Inc. All Rights Reserved.
|
|
// See LICENSE.txt for license information.
|
|
|
|
package app
|
|
|
|
import (
|
|
"github.com/mattermost/mattermost-server/v6/services/imageproxy"
|
|
)
|
|
|
|
// Channels contains all channels related state.
|
|
type Channels struct {
|
|
srv *Server
|
|
|
|
imageProxy *imageproxy.ImageProxy
|
|
}
|
|
|
|
func init() {
|
|
RegisterProduct("channels", func(s *Server) (Product, error) {
|
|
return NewChannels(s)
|
|
})
|
|
}
|
|
|
|
func NewChannels(s *Server) (*Channels, error) {
|
|
return &Channels{
|
|
srv: s,
|
|
imageProxy: imageproxy.MakeImageProxy(s, s.httpService, s.Log),
|
|
}, nil
|
|
}
|
|
|
|
func (c *Channels) Start() error {
|
|
return nil
|
|
}
|
|
|
|
func (c *Channels) Stop() error {
|
|
return nil
|
|
}
|