http

package
v1.9.0 Latest Latest
Warning

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

Go to latest
Published: Dec 25, 2025 License: MIT Imports: 24 Imported by: 0

Documentation

Index

Constants

View Source
const INDEX_DOC = `` /* 844-byte string literal not displayed */
View Source
const (
	ISO8601 = "2006-01-02T15:04:05-0700"
)

Variables

This section is empty.

Functions

func Start

func Start(addr string, arc *archivist.Archivist, indexStore store.IndexInterface, dataStore store.StoreInterface, st *stats.Stats, cfg *config.ArchivistConfig) error

Types

type DownloadRequest

type DownloadRequest struct {
	response.ErrorEncoder

	Path struct {
		Address string
	} `example:"/download/1.2.3.4"`

	Query struct {
		From  *string `example:"2025-11-09T11:00:00+01:00"`
		To    *string `example:"2019-09-07T15:50:00+01:00"`
		Count *int
	}

	response.BytesEncoder
	Response []byte

	Index store.IndexInterface
	Store store.StoreInterface
	// contains filtered or unexported fields
}

func (*DownloadRequest) Handle

type GetStatsRequest

type GetStatsRequest struct {
	response.ErrorEncoder

	Path  struct{} `example:"/stats"`
	Query struct{}

	response.JsonEncoder
	Response stats.Stats

	IndexStore store.IndexInterface
	DataStore  store.DataInterface
	Stats      *stats.Stats
}

func (*GetStatsRequest) Handle

Jump to

Keyboard shortcuts

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