summaryrefslogtreecommitdiffstats
path: root/vendor/github.com/mattermost/platform/einterfaces/brand.go
blob: 7c15659bbc1bb3336b7087c9a4fff5c172f1b42f (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
// Copyright (c) 2016 Mattermost, Inc. All Rights Reserved.
// See License.txt for license information.

package einterfaces

import (
	"github.com/mattermost/platform/model"
	"mime/multipart"
)

type BrandInterface interface {
	SaveBrandImage(*multipart.FileHeader) *model.AppError
	GetBrandImage() ([]byte, *model.AppError)
}

var theBrandInterface BrandInterface

func RegisterBrandInterface(newInterface BrandInterface) {
	theBrandInterface = newInterface
}

func GetBrandInterface() BrandInterface {
	return theBrandInterface
}