Documentation
¶
Index ¶
- type APIHandler
- func (h *APIHandler) HandleCipher(w http.ResponseWriter, req *http.Request)
- func (h *APIHandler) HandleCipherUpdate(w http.ResponseWriter, req *http.Request)
- func (h *APIHandler) HandleCollections(w http.ResponseWriter, req *http.Request)
- func (h *APIHandler) HandleFolder(w http.ResponseWriter, req *http.Request)
- func (h *APIHandler) HandleFolderUpdate(w http.ResponseWriter, req *http.Request)
- func (h *APIHandler) HandleImport(w http.ResponseWriter, req *http.Request)
- func (h *APIHandler) HandleKeysUpdate(w http.ResponseWriter, req *http.Request)
- func (h *APIHandler) HandleProfile(w http.ResponseWriter, req *http.Request)
- func (h *APIHandler) HandleSync(w http.ResponseWriter, req *http.Request)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type APIHandler ¶
type APIHandler struct {
// contains filtered or unexported fields
}
func New ¶
func New(db database) APIHandler
func (*APIHandler) HandleCipher ¶
func (h *APIHandler) HandleCipher(w http.ResponseWriter, req *http.Request)
func (*APIHandler) HandleCipherUpdate ¶
func (h *APIHandler) HandleCipherUpdate(w http.ResponseWriter, req *http.Request)
This function handles updates and deleteing
func (*APIHandler) HandleCollections ¶
func (h *APIHandler) HandleCollections(w http.ResponseWriter, req *http.Request)
func (*APIHandler) HandleFolder ¶
func (h *APIHandler) HandleFolder(w http.ResponseWriter, req *http.Request)
func (*APIHandler) HandleFolderUpdate ¶
func (h *APIHandler) HandleFolderUpdate(w http.ResponseWriter, req *http.Request)
func (*APIHandler) HandleImport ¶
func (h *APIHandler) HandleImport(w http.ResponseWriter, req *http.Request)
Only handles ciphers TODO: handle folders and folderRelationships
func (*APIHandler) HandleKeysUpdate ¶
func (h *APIHandler) HandleKeysUpdate(w http.ResponseWriter, req *http.Request)
func (*APIHandler) HandleProfile ¶
func (h *APIHandler) HandleProfile(w http.ResponseWriter, req *http.Request)
func (*APIHandler) HandleSync ¶
func (h *APIHandler) HandleSync(w http.ResponseWriter, req *http.Request)
Click to show internal directories.
Click to hide internal directories.