Documentation
¶
Index ¶
- Variables
- type Client
- func (c *Client) AllFiles() (records.FileIterator, error)
- func (c *Client) AllTags() (records.TagIterator, error)
- func (c *Client) CreateFile(filename string, documentDate time.Time) (uuid.UUID, error)
- func (c *Client) CreateTags(names []string) ([]*records.Tag, error)
- func (c *Client) FileByHandle(handleID uuid.UUID) (records.OpenFile, error)
- func (c *Client) FindFilesWithDate(documentDate time.Time) ([]*records.File, error)
- func (c *Client) FindFilesWithIdPrefix(idPrefix string) ([]*records.File, error)
- func (c *Client) FindFilesWithTags(tagNames []string) ([]*records.File, error)
- func (c *Client) FindTagByName(name string) (*records.Tag, error)
- func (c *Client) GetFile(id string) (*records.File, error)
- func (c *Client) GetFileDays(year int, month int) ([]int, error)
- func (c *Client) GetFileMonths(year int) ([]int, error)
- func (c *Client) GetFileWithDate(filename string, date time.Time) (*records.File, error)
- func (c *Client) GetFileYears() ([]int, error)
- func (c *Client) GetTags(names []string) ([]*records.Tag, error)
- func (c *Client) GetTagsForFile(id string) (records.TagIterator, error)
- func (c *Client) OpenFile(fileID uuid.UUID, mode records.FileMode) (records.OpenFile, error)
- func (c *Client) ReadFile(id string) (io.ReadCloser, error)
- func (c *Client) ReadFileFromOffset(id string, offset uint64) (io.ReadCloser, error)
- func (c *Client) RemoveFile(id string) error
- func (c *Client) UpdateFileDate(id uuid.UUID, newFilename string, newDate time.Time) error
- func (c *Client) UpdateFileTags(id uuid.UUID, addedTags []string, removedTags []string) error
- type Config
- type Initializer
Constants ¶
This section is empty.
Variables ¶
View Source
var ( ErrNotFound = errors.New("not found") ErrHashCollision = errors.New("hash collision") )
View Source
var ConfigToken = &configToken{}
Functions ¶
This section is empty.
Types ¶
type Client ¶
type Client struct {
// contains filtered or unexported fields
}
func (*Client) CreateFile ¶
func (*Client) FileByHandle ¶
func (*Client) FindFilesWithDate ¶
func (*Client) FindFilesWithIdPrefix ¶
func (*Client) FindFilesWithTags ¶
func (*Client) GetFileWithDate ¶
func (*Client) GetFileYears ¶
func (*Client) GetTagsForFile ¶
func (c *Client) GetTagsForFile(id string) (records.TagIterator, error)
func (*Client) ReadFileFromOffset ¶
func (*Client) RemoveFile ¶
func (*Client) UpdateFileDate ¶
type Initializer ¶
type Initializer struct { Container nacelle.ServiceContainer `service:"container"` Logger nacelle.Logger `service:"logger"` }
func NewInitializer ¶
func NewInitializer() *Initializer
Click to show internal directories.
Click to hide internal directories.