Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func WriteJSON ¶
func WriteJSON(w http.ResponseWriter, body interface{})
Types ¶
type Entity ¶
type Entity struct { User string EntityList openpgp.EntityList }
func (*Entity) GetIdentity ¶
type EntityStorage ¶
type EntityStorage struct {
// contains filtered or unexported fields
}
func NewEntityStorage ¶
func NewEntityStorage(path string) (*EntityStorage, error)
func (*EntityStorage) EntityForIdentity ¶
func (es *EntityStorage) EntityForIdentity(identity string) *Entity
type PromptFunction ¶
type Request ¶
type Request struct { UserName string IdentityName string EntityList openpgp.EntityList EncryptedBody []byte *http.Request }
func AuthenticatedRequest ¶
func AuthenticatedRequest(r *http.Request, es *EntityStorage) (*Request, error)
func (*Request) CheckSignature ¶
func (*Request) SignatureMessage ¶
Click to show internal directories.
Click to hide internal directories.