Documentation ¶
Index ¶
Constants ¶
View Source
const INDEX_DOC = `` /* 844-byte string literal not displayed */
Variables ¶
This section is empty.
Functions ¶
Types ¶
type DownloadRequest ¶
type DownloadRequest struct { Path struct { Address string } `example:"/download/1.2.3.4"` Query struct { } Response []byte Index store.IndexInterface Store store.StoreInterface }
func (*DownloadRequest) Handle ¶
func (r *DownloadRequest) Handle(ctx context.Context, w http.ResponseWriter)
type GetKeysRequest ¶
type GetKeysRequest struct { Path struct{} `example:"/keys"` Query struct { WithData bool `description:"include data keys" example:"false"` } Response KeysList IndexStore store.IndexInterface DataStore store.DataInterface }
func (*GetKeysRequest) Handle ¶
func (r *GetKeysRequest) Handle(ctx context.Context, w http.ResponseWriter)
type GetStatsRequest ¶
type GetStatsRequest struct { Path struct{} `example:"/stats"` Query struct{} 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)
Click to show internal directories.
Click to hide internal directories.