| 765 | } |
| 766 | |
| 767 | type adminHandler struct { |
| 768 | mux *http.ServeMux |
| 769 | |
| 770 | // security for local/plaintext endpoint |
| 771 | enforceOrigin bool |
| 772 | enforceHost bool |
| 773 | allowedOrigins []*url.URL |
| 774 | |
| 775 | // security for remote/encrypted endpoint |
| 776 | remoteControl *RemoteAdmin |
| 777 | } |
| 778 | |
| 779 | // ServeHTTP is the external entry point for API requests. |
| 780 | // It will only be called once per request. |
nothing calls this directly
no outgoing calls
no test coverage detected