server

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Mar 13, 2024 License: MPL-2.0 Imports: 20 Imported by: 1

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.

Jump to

Keyboard shortcuts

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