Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Reader ¶
type Reader struct {
// contains filtered or unexported fields
}
Reader implements a REST handler to read the "allowed origins".
func NewReader ¶
func NewReader(mgr allowedOriginsMgr) *Reader
NewReader returns a new REST handler to read a service's "allowed origins".
func (*Reader) Handler ¶
func (h *Reader) Handler() common.HTTPRequestHandler
Handler returns the handler that should be invoked when an HTTP POST is requested to the target endpoint. This handler must be registered with an HTTP server.
type Writer ¶
type Writer struct {
// contains filtered or unexported fields
}
Writer implements a REST handler to update the "allowed origins".
func NewWriter ¶
func NewWriter(mgr allowedOriginsMgr) *Writer
NewWriter returns a new REST handler to update the "allowed origins".
func (*Writer) Handler ¶
func (h *Writer) Handler() common.HTTPRequestHandler
Handler returns the handler that should be invoked when an HTTP POST is requested to the target endpoint. This handler must be registered with an HTTP server.
Click to show internal directories.
Click to hide internal directories.