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 ¶
func (r *DownloadRequest) Handle(ctx context.Context, w http.ResponseWriter) error
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 ¶
func (r *GetStatsRequest) Handle(ctx context.Context, w http.ResponseWriter) error
Click to show internal directories.
Click to hide internal directories.