archivebox

package
v0.35.1 Latest Latest
Warning

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

Go to latest
Published: Sep 27, 2025 License: GPL-3.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

View Source
const (
	ID          = "archivebox"
	EndpointKey = "endpoint"
	TokenKey    = "token"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type ArchiveBox

type ArchiveBox struct {
	// contains filtered or unexported fields
}

func GetClient added in v0.28.11

func GetClient() *ArchiveBox

func NewArchiveBox

func NewArchiveBox(endpoint string, token string) *ArchiveBox

func (*ArchiveBox) Add added in v0.29.3

func (i *ArchiveBox) Add(data Data) (*Response, error)

type Data added in v0.29.3

type Data struct {
	Urls       []string `json:"urls"`
	Tag        string   `json:"tag"`
	Depth      int      `json:"depth"`
	Update     bool     `json:"update"`
	UpdateAll  bool     `json:"update_all"`
	IndexOnly  bool     `json:"index_only"`
	Overwrite  bool     `json:"overwrite"`
	Init       bool     `json:"init"`
	Extractors string   `json:"extractors"`
	Parser     string   `json:"parser"`
}

type Response added in v0.29.3

type Response struct {
	Success bool     `json:"success"`
	Errors  []string `json:"errors"`
	Result  []string `json:"result"`
	Stdout  string   `json:"stdout"`
	Stderr  string   `json:"stderr"`
}

Jump to

Keyboard shortcuts

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