Documentation ¶
Overview ¶
Package rest exposed the intel API using HTTP REST.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type API ¶
type API struct {
// contains filtered or unexported fields
}
API exposes the Security Graph intel API as an HTTP REST endpoint.
func (API) BlastRadius ¶
func (api API) BlastRadius(w http.ResponseWriter, r *http.Request, ps httprouter.Params)
BlastRadius handles the endpoint that returns the blast radius given a specific asset.
type IntelAPI ¶
type IntelAPI interface { // BlastRadius returns the blast radius of a given asset. BlastRadius(typ, identifier string) (intel.BlastRadiusResult, error) }
IntelAPI includes the method set of intel.API. We do not expect to have multiple implementations, but depending on an interface makes easier to test this package.
Click to show internal directories.
Click to hide internal directories.