hunk.code_window: 	"github.com/mattermost/mattermost-server/model"
   )
   type FileBackend interface {
   	TestConnection() *model.AppError
  
hunk.labels: keep keep add keep keep keep
hunk.after_edit: type ReadCloseSeeker interface {
   	io.ReadCloser
   	io.Seeker
   }
  
hunk.file_path: services/filesstore/filesstore.go
hunk.type: add
file: // Copyright (c) 2017-present Mattermost, Inc. All Rights Reserved.
  // See License.txt for license information.
  
  package model
  
  import (
  	"encoding/json"
  	"io"
  )
  
  type MfaSecret struct {
  	Secret string `json:"secret"`
  	QRCode string `json:"qr_code"`
  }
  
  func (me *MfaSecret) ToJson() string {
  	b, _ := json.Marshal(me)
  	return string(b)
  }
  
  func MfaSecretFromJson(data io.Reader) *MfaSecret {
  	var me *MfaSecret
  	json.NewDecoder(data).Decode(&me)
  	return me
  }
  