github.com/masterhung0112/hk_server/v5@v5.0.0-20220302090640-ec71aef15e1c/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.ReadSeeker) (string, error) 14 }