Documentation ¶
Index ¶
- Constants
- Variables
- func AppendAPIService(mux *http.ServeMux)
- func AttachAPI(log *roggy.LogPrinter, router *mux.Router)
- func AttachStore(store_ *servicestore.MainManagedStorage)
- func Authenticate(w http.ResponseWriter, r *http.Request)
- func HTTPFlushAll(w http.ResponseWriter, r *http.Request)
- func HTTPInfo(w http.ResponseWriter, r *http.Request)
- func HTTPListing(w http.ResponseWriter, r *http.Request)
- func HTTPListingSearch(w http.ResponseWriter, r *http.Request)
- func HTTPMedia(w http.ResponseWriter, r *http.Request)
- func HTTPPeerAdd(w http.ResponseWriter, r *http.Request)
- func HTTPPeerGet(w http.ResponseWriter, r *http.Request)
- func HTTPPeerGetListings(w http.ResponseWriter, r *http.Request)
- func HTTPPeerSearch(w http.ResponseWriter, r *http.Request)
- func HTTPPeers(w http.ResponseWriter, r *http.Request)
- type APIListResult
- type AuthPayload
- type KimitzuInfoP
Constants ¶
View Source
const (
TIMEOUT = time.Second * 30
)
Variables ¶
View Source
var ServiceConfig configs.Daemon
Functions ¶
func AppendAPIService ¶
func AttachStore ¶
func AttachStore(store_ *servicestore.MainManagedStorage)
func Authenticate ¶
func Authenticate(w http.ResponseWriter, r *http.Request)
func HTTPFlushAll ¶
func HTTPFlushAll(w http.ResponseWriter, r *http.Request)
func HTTPListing ¶
func HTTPListing(w http.ResponseWriter, r *http.Request)
func HTTPListingSearch ¶
func HTTPListingSearch(w http.ResponseWriter, r *http.Request)
Kazaam Specs https://github.com/qntfy/kazaam * * { * "query": "comics", * "filters": [ * "contains(doc.slug, \"golden\")" // Gval expression * ], * "limit": 5, * "transforms": [{ // Kazaam Spec * "operation": "shift", * "spec": { * "title": "title", * "owner": "parentPeer", * "price": "price.amount", * "thumb": "thumbnail.tiny" * } * }] * }
func HTTPPeerAdd ¶
func HTTPPeerAdd(w http.ResponseWriter, r *http.Request)
func HTTPPeerGet ¶
func HTTPPeerGet(w http.ResponseWriter, r *http.Request)
func HTTPPeerGetListings ¶
func HTTPPeerGetListings(w http.ResponseWriter, r *http.Request)
func HTTPPeerSearch ¶
func HTTPPeerSearch(w http.ResponseWriter, r *http.Request)
Types ¶
type APIListResult ¶
type AuthPayload ¶
type KimitzuInfoP ¶
type KimitzuInfoP struct { Repo string `json:"repoPath"` Cookie string `json:"cookie"` Username string `json:"username"` Password string `json:"password"` Authenticated bool `json:"authenticated"` OBVersion string `json:"obVersion"` KimitzuServiceVersion string `json:"kimitzuVersion"` }
func GetInfo ¶
func GetInfo() (KimitzuInfoP, error)
Click to show internal directories.
Click to hide internal directories.