github.com/haalcala/mattermost-server-change-repo@v0.0.0-20210713015153-16753fbeee5f/services/docextractor/interface.go (about)

     1  // Copyright (c) 2015-present Mattermost, Inc. All Rights Reserved.
     2  // See LICENSE.txt for license information.
     3  
     4  package docextractor
     5  
     6  import (
     7  	"io"
     8  )
     9  
    10  // Extractors define the interface needed to extract file content
    11  type Extractor interface {
    12  	Match(filename string) bool
    13  	Extract(filename string, file io.Reader) (string, error)
    14  }