Documentation
¶
Overview ¶
Package mount hands a path prefix to another program on this machine, and tells that program who the reader is.
Index ¶
Constants ¶
const ( NotifyPath = "/pw-api/mounts/notify" MountHeader = "X-Pwikit-Mount" SignatureHeader = "X-Pwikit-Signature" )
const UserHeader = "X-Pwikit-User"
UserHeader carries the signed reader. Whatever the client sent under this name, or under any other X-Pwikit- header, is dropped before forwarding.
Variables ¶
This section is empty.
Functions ¶
func NotifyHandler ¶
NotifyHandler lets a mounted program tell readers something through the wiki's own notices. A program proves which mount it is with that mount's key, so it can only ever speak as itself.