Documentation ¶
Overview ¶
Copyright © 2017 Erno Rigo <erno@rigo.info>
This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version.
This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.
You should have received a copy of the GNU General Public License along with this program. If not, see <http://www.gnu.org/licenses/>.
Copyright © 2017 Erno Rigo <erno@rigo.info>
This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version.
This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.
You should have received a copy of the GNU General Public License along with this program. If not, see <http://www.gnu.org/licenses/>.
Copyright © 2017 Erno Rigo <erno@rigo.info>
This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version.
This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.
You should have received a copy of the GNU General Public License along with this program. If not, see <http://www.gnu.org/licenses/>.
Index ¶
- func FindRoot(path string) (root string)
- type FileContentLoader
- type Filewalker
- type Hasher
- type IncEx
- type Pipeline
- type Session
- type SessionItem
- func (item *SessionItem) GetAttr(key string) interface{}
- func (item *SessionItem) GetAttrString(key string) string
- func (item *SessionItem) GetAttrUint64(key string) uint64
- func (item *SessionItem) HasAttr(key string) bool
- func (item *SessionItem) SetAttr(key string, value interface{})
- func (item *SessionItem) SetAttrMap(attrs map[string]interface{})
- func (item *SessionItem) String() string
- type SessionMeta
- type Stater
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type FileContentLoader ¶
type FileContentLoader struct {
// contains filtered or unexported fields
}
func NewFileContentLoader ¶
func NewFileContentLoader() *FileContentLoader
func (*FileContentLoader) Concurrency ¶
func (loader *FileContentLoader) Concurrency() int
func (*FileContentLoader) Name ¶
func (loader *FileContentLoader) Name() string
func (*FileContentLoader) Process ¶
func (loader *FileContentLoader) Process(item interface{})
type Filewalker ¶
type Filewalker struct {
// contains filtered or unexported fields
}
func NewFilewalker ¶
func NewFilewalker() *Filewalker
collect (local) file list into current session based on configuration
func (*Filewalker) Abort ¶
func (fw *Filewalker) Abort()
func (*Filewalker) Name ¶
func (fw *Filewalker) Name() string
func (*Filewalker) Next ¶
func (fw *Filewalker) Next() interface{}
type IncEx ¶
type IncEx struct {
// contains filtered or unexported fields
}
type Session ¶
type Session struct { Meta SessionMeta `json:"meta"` Items []*SessionItem `json:"items"` }
func NewSession ¶
func NewSession() *Session
func (*Session) AddItem ¶
func (sess *Session) AddItem(item *SessionItem)
func (*Session) Concurrency ¶
type SessionItem ¶
func NewSessionItem ¶
func NewSessionItem(id url.URL) *SessionItem
func NewSessionItemMap ¶
func NewSessionItemMap(id url.URL, attrs map[string]interface{}) *SessionItem
func (*SessionItem) GetAttr ¶
func (item *SessionItem) GetAttr(key string) interface{}
func (*SessionItem) GetAttrString ¶
func (item *SessionItem) GetAttrString(key string) string
func (*SessionItem) GetAttrUint64 ¶
func (item *SessionItem) GetAttrUint64(key string) uint64
func (*SessionItem) HasAttr ¶
func (item *SessionItem) HasAttr(key string) bool
func (*SessionItem) SetAttr ¶
func (item *SessionItem) SetAttr(key string, value interface{})
func (*SessionItem) SetAttrMap ¶
func (item *SessionItem) SetAttrMap(attrs map[string]interface{})
func (*SessionItem) String ¶
func (item *SessionItem) String() string