isodos

package module
v0.0.0-...-b4c2936 Latest Latest
Warning

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

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

README

isodos-go

Go module to interact with Internet Archive's Isodos API

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Client

type Client struct {
	S3Key     string
	S3Secret  string
	Project   string
	IsodosURL string
}

Client store the Isodos credentials and parameters

func Init

func Init(S3Key, S3Secret, project string) (client *Client)

Init initialize the Isodos Client and return it

func (*Client) Send

func (c *Client) Send(seeds []string) (resp *Response, err error)

Send proceed to send a slice of URLs to Isodos

type Response

type Response struct {
	Digest    string `json:"digest"`
	Submitter string `json:"submitter"`
	UUID      string `json:"uuid"`
}

Response contains the response data of a request to Isodos

type URL

type URL struct {
	URL string `json:"url"`
}

URL is a single JSON object that compose the NDJSON payload for the batch endpoint

Jump to

Keyboard shortcuts

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