handlers

package
v0.9.1-beta Latest Latest
Warning

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

Go to latest
Published: Sep 24, 2020 License: GPL-3.0 Imports: 16 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Context

type Context struct {
}

Context structure is used to ensure all handlers have a standardized set of fields

type ContextInterface

type ContextInterface interface {
}

ContextInterface is used for embedded structures and subtyping

type HTTPContext

type HTTPContext struct {
	Context
	PSK       string       // The pre-shared key password used prior to Password Authenticated Key Exchange (PAKE)
	JWTKey    []byte       // The password used by the server to create JWTs
	OpaqueKey kyber.Scalar // OPAQUE server's keys
}

HTTPContext contains contextual information about a handler such as secrets for encrypt/decrypt

func (*HTTPContext) AgentHTTP

func (ctx *HTTPContext) AgentHTTP(w http.ResponseWriter, r *http.Request)

AgentHTTP function is responsible for all Merlin agent traffic

Jump to

Keyboard shortcuts

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