Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type EnclaveServer ¶
type EnclaveServer struct {
// contains filtered or unexported fields
}
func New ¶
func New(db *db.EncryptedDB, api http.HandlerFunc, onInit func(owner *x509.Certificate) error) *EnclaveServer
New creates a new EnclaveServer. api will be served at /api/. Optionally provide onInit, which will be called on /init.
func (*EnclaveServer) Run ¶
func (s *EnclaveServer) Run(port string)
Run runs the server on the given port.
Click to show internal directories.
Click to hide internal directories.