Versions in this module Expand all Collapse all v0 v0.25.0 Feb 13, 2025 v0.24.0 May 3, 2024 Changes in this version + const CreateVaultAction + const GetAppStateAction + const GetLoginItem + const GetTLDPlusOneAction + const ListItemsVaultAction + const ListVaultAction + const UnlockVaultAction + var ErrInvalidMessageLenght = errors.New("invalid message lenght") + func NewPawMux(h ...Handler) *mux + type ActionHandlerMismatchError struct + HandlerAction uint32 + ReqAction uint32 + func (e *ActionHandlerMismatchError) Error() string + type ActionNotRegisteredError struct + Action uint32 + func (e *ActionNotRegisteredError) Error() string + type CreateVaultHandler struct + Storage paw.Storage + func (h *CreateVaultHandler) Action() uint32 + func (h *CreateVaultHandler) Serve(res *Response, req *Request) + type CreateVaultHandlerRequestPayload struct + Secret string + Vault string + type CreateVaultHandlerResponsePayload struct + SessionID string + type GetAppStateHandler struct + Storage paw.Storage + func (h *GetAppStateHandler) Action() uint32 + func (h *GetAppStateHandler) Serve(res *Response, req *Request) + type GetAppStateHandlerRequestPayload struct + Modified time.Time + type GetAppStateHandlerResponsePayload struct + AppStatate *paw.AppState + type GetLoginItemHandler struct + Storage paw.Storage + func (h *GetLoginItemHandler) Action() uint32 + func (h *GetLoginItemHandler) Serve(res *Response, req *Request) + type GetLoginItemHandlerRequestPayload struct + Name string + SessionID string + Type int + Vault string + type GetLoginItemHandlerResponsePayload struct + Password string + Username string + type GetTLDPlusOneHandler struct + func (h *GetTLDPlusOneHandler) Action() uint32 + func (h *GetTLDPlusOneHandler) Serve(res *Response, req *Request) + type GetTLDPlusOneHandlerRequestPayload struct + Hostname string + Type int + type GetTLDPlusOneHandlerResponsePayload struct + TldPlusOne string + type Handler interface + Action func() uint32 + Serve func(res *Response, req *Request) + type InvalidRequestPayloadError struct + Expected any + Got any + func (e *InvalidRequestPayloadError) Error() string + type ListItemsVaultHandler struct + Storage paw.Storage + func (h *ListItemsVaultHandler) Action() uint32 + func (h *ListItemsVaultHandler) Serve(res *Response, req *Request) + type ListItemsVaultHandlerRequestPayload struct + FilterName string + FilterType int + SessionID string + Vault string + type ListItemsVaultHandlerResponsePayload struct + Items any + type ListVaultHandler struct + Storage paw.Storage + func (h *ListVaultHandler) Action() uint32 + func (h *ListVaultHandler) Serve(res *Response, req *Request) + type ListVaultHandlerResponsePayload struct + Vaults []string + type Request struct + Action uint32 + Payload json.RawMessage + func (req *Request) IsPayloadEmpty() bool + type Response struct + Action uint32 + Error error + Payload any + func (p *Response) MarshalJSON() ([]byte, error) + type UnlockVaultHandler struct + Storage paw.Storage + func (h *UnlockVaultHandler) Action() uint32 + func (h *UnlockVaultHandler) Serve(res *Response, req *Request) + type UnlockVaultHandlerRequestPayload struct + Secret string + Vault string + type UnlockVaultHandlerResponsePayload struct + SessionID string