paperless

package
v1.0.2 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jan 6, 2024 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

View Source
const API_DOCUMENT_SEARCH_PATH = "/api/documents/"
View Source
const API_DOCUMENT_UPLOAD_PATH = "/api/documents/post_document/"

Variables

This section is empty.

Functions

func ChecksumExists

func ChecksumExists(config *Config, checksum string) (bool, error)

func DumpTo

func DumpTo(auth *Config, document *DocumentInformation) error

Types

type Config

type Config struct {
	URL      string
	APIKey   string
	Username string
	Password string
}

func (*Config) GetAuthorizationHeader

func (config *Config) GetAuthorizationHeader() string

type DocumentInformation

type DocumentInformation struct {
	Title         string
	Created       string
	Correspondent string
	DocumentType  string
	FileName      string
	Tags          []string
	Data          io.Reader
}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL