api

package
v0.0.1 Latest Latest
Warning

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

Go to latest
Published: Dec 28, 2018 License: MIT Imports: 8 Imported by: 0

Documentation

Index

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)

Jump to

Keyboard shortcuts

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