Documentation
¶
Index ¶
- type Server
- func (s *Server) CreateNewDiscoveredAPIs(ctx context.Context, hosts []string, traceSource *models.TraceSource) error
- func (s *Server) DeleteAPIInventoryAPIIDSpecsProvidedSpec(params operations.DeleteAPIInventoryAPIIDSpecsProvidedSpecParams) middleware.Responder
- func (s *Server) DeleteAPIInventoryAPIIDSpecsReconstructedSpec(params operations.DeleteAPIInventoryAPIIDSpecsReconstructedSpecParams) middleware.Responder
- func (s *Server) DeleteControlTraceSourcesTraceSourceID(params operations.DeleteControlTraceSourcesTraceSourceIDParams) middleware.Responder
- func (s *Server) GetAPIEvent(params operations.GetAPIEventsEventIDParams) middleware.Responder
- func (s *Server) GetAPIEvents(params operations.GetAPIEventsParams) middleware.Responder
- func (s *Server) GetAPIEventsEventIDProvidedSpecDiff(params operations.GetAPIEventsEventIDProvidedSpecDiffParams) middleware.Responder
- func (s *Server) GetAPIEventsEventIDReconstructedSpecDiff(params operations.GetAPIEventsEventIDReconstructedSpecDiffParams) middleware.Responder
- func (s *Server) GetAPIInventory(params operations.GetAPIInventoryParams) middleware.Responder
- func (s *Server) GetAPIInventoryAPIIDAPIInfo(params operations.GetAPIInventoryAPIIDAPIInfoParams) middleware.Responder
- func (s *Server) GetAPIInventoryAPIIDFromHostAndPort(params operations.GetAPIInventoryAPIIDFromHostAndPortParams) middleware.Responder
- func (s *Server) GetAPIInventoryAPIIDFromHostAndPortAndTraceSourceID(params operations.GetAPIInventoryAPIIDFromHostAndPortAndTraceSourceIDParams) middleware.Responder
- func (s *Server) GetAPIInventoryAPIIDSpecs(params operations.GetAPIInventoryAPIIDSpecsParams) middleware.Responder
- func (s *Server) GetAPIInventoryAPIIDSuggestedReview(params operations.GetAPIInventoryAPIIDSuggestedReviewParams) middleware.Responder
- func (s *Server) GetAPIProvidedSwaggerJSON(params operations.GetAPIInventoryAPIIDProvidedSwaggerJSONParams) middleware.Responder
- func (s *Server) GetAPIReconstructedSwaggerJSON(params operations.GetAPIInventoryAPIIDReconstructedSwaggerJSONParams) middleware.Responder
- func (s *Server) GetAPIUsageHitCount(params operations.GetAPIUsageHitCountParams) middleware.Responder
- func (s *Server) GetControlTraceSources(params operations.GetControlTraceSourcesParams) middleware.Responder
- func (s *Server) GetControlTraceSourcesTraceSourceID(params operations.GetControlTraceSourcesTraceSourceIDParams) middleware.Responder
- func (s *Server) GetDashboardAPIUsage(params operations.GetDashboardAPIUsageParams) middleware.Responder
- func (s *Server) GetDashboardAPIUsageLatestDiffs(params operations.GetDashboardAPIUsageLatestDiffsParams) middleware.Responder
- func (s *Server) GetDashboardAPIUsageMostUsed(_ operations.GetDashboardAPIUsageMostUsedParams) middleware.Responder
- func (s *Server) GetFeatures(params operations.GetFeaturesParams) middleware.Responder
- func (s *Server) PostAPIInventory(params operations.PostAPIInventoryParams) middleware.Responder
- func (s *Server) PostAPIInventoryReviewIDApprovedReview(params operations.PostAPIInventoryReviewIDApprovedReviewParams) middleware.Responder
- func (s *Server) PostControlNewDiscoveredAPIs(params operations.PostControlNewDiscoveredAPIsParams) middleware.Responder
- func (s *Server) PostControlTraceSources(params operations.PostControlTraceSourcesParams) middleware.Responder
- func (s *Server) PutAPIInventoryAPIIDSpecsProvidedSpec(params operations.PutAPIInventoryAPIIDSpecsProvidedSpecParams) middleware.Responder
- func (s *Server) Start(errChan chan struct{})
- func (s *Server) Stop()
- type ServerConfig
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Server ¶
type Server struct {
// contains filtered or unexported fields
}
func CreateRESTServer ¶
func CreateRESTServer(config *ServerConfig) (*Server, error)
func (*Server) CreateNewDiscoveredAPIs ¶
func (*Server) DeleteAPIInventoryAPIIDSpecsProvidedSpec ¶
func (s *Server) DeleteAPIInventoryAPIIDSpecsProvidedSpec(params operations.DeleteAPIInventoryAPIIDSpecsProvidedSpecParams) middleware.Responder
func (*Server) DeleteAPIInventoryAPIIDSpecsReconstructedSpec ¶
func (s *Server) DeleteAPIInventoryAPIIDSpecsReconstructedSpec(params operations.DeleteAPIInventoryAPIIDSpecsReconstructedSpecParams) middleware.Responder
func (*Server) DeleteControlTraceSourcesTraceSourceID ¶
func (s *Server) DeleteControlTraceSourcesTraceSourceID(params operations.DeleteControlTraceSourcesTraceSourceIDParams) middleware.Responder
func (*Server) GetAPIEvent ¶
func (s *Server) GetAPIEvent(params operations.GetAPIEventsEventIDParams) middleware.Responder
func (*Server) GetAPIEvents ¶
func (s *Server) GetAPIEvents(params operations.GetAPIEventsParams) middleware.Responder
func (*Server) GetAPIEventsEventIDProvidedSpecDiff ¶
func (s *Server) GetAPIEventsEventIDProvidedSpecDiff(params operations.GetAPIEventsEventIDProvidedSpecDiffParams) middleware.Responder
func (*Server) GetAPIEventsEventIDReconstructedSpecDiff ¶
func (s *Server) GetAPIEventsEventIDReconstructedSpecDiff(params operations.GetAPIEventsEventIDReconstructedSpecDiffParams) middleware.Responder
func (*Server) GetAPIInventory ¶
func (s *Server) GetAPIInventory(params operations.GetAPIInventoryParams) middleware.Responder
func (*Server) GetAPIInventoryAPIIDAPIInfo ¶
func (s *Server) GetAPIInventoryAPIIDAPIInfo(params operations.GetAPIInventoryAPIIDAPIInfoParams) middleware.Responder
func (*Server) GetAPIInventoryAPIIDFromHostAndPort ¶
func (s *Server) GetAPIInventoryAPIIDFromHostAndPort(params operations.GetAPIInventoryAPIIDFromHostAndPortParams) middleware.Responder
func (*Server) GetAPIInventoryAPIIDFromHostAndPortAndTraceSourceID ¶
func (s *Server) GetAPIInventoryAPIIDFromHostAndPortAndTraceSourceID(params operations.GetAPIInventoryAPIIDFromHostAndPortAndTraceSourceIDParams) middleware.Responder
func (*Server) GetAPIInventoryAPIIDSpecs ¶
func (s *Server) GetAPIInventoryAPIIDSpecs(params operations.GetAPIInventoryAPIIDSpecsParams) middleware.Responder
func (*Server) GetAPIInventoryAPIIDSuggestedReview ¶
func (s *Server) GetAPIInventoryAPIIDSuggestedReview(params operations.GetAPIInventoryAPIIDSuggestedReviewParams) middleware.Responder
func (*Server) GetAPIProvidedSwaggerJSON ¶
func (s *Server) GetAPIProvidedSwaggerJSON(params operations.GetAPIInventoryAPIIDProvidedSwaggerJSONParams) middleware.Responder
func (*Server) GetAPIReconstructedSwaggerJSON ¶
func (s *Server) GetAPIReconstructedSwaggerJSON(params operations.GetAPIInventoryAPIIDReconstructedSwaggerJSONParams) middleware.Responder
func (*Server) GetAPIUsageHitCount ¶
func (s *Server) GetAPIUsageHitCount(params operations.GetAPIUsageHitCountParams) middleware.Responder
func (*Server) GetControlTraceSources ¶
func (s *Server) GetControlTraceSources(params operations.GetControlTraceSourcesParams) middleware.Responder
func (*Server) GetControlTraceSourcesTraceSourceID ¶
func (s *Server) GetControlTraceSourcesTraceSourceID(params operations.GetControlTraceSourcesTraceSourceIDParams) middleware.Responder
func (*Server) GetDashboardAPIUsage ¶
func (s *Server) GetDashboardAPIUsage(params operations.GetDashboardAPIUsageParams) middleware.Responder
func (*Server) GetDashboardAPIUsageLatestDiffs ¶
func (s *Server) GetDashboardAPIUsageLatestDiffs(params operations.GetDashboardAPIUsageLatestDiffsParams) middleware.Responder
func (*Server) GetDashboardAPIUsageMostUsed ¶
func (s *Server) GetDashboardAPIUsageMostUsed(_ operations.GetDashboardAPIUsageMostUsedParams) middleware.Responder
func (*Server) GetFeatures ¶
func (s *Server) GetFeatures(params operations.GetFeaturesParams) middleware.Responder
func (*Server) PostAPIInventory ¶
func (s *Server) PostAPIInventory(params operations.PostAPIInventoryParams) middleware.Responder
func (*Server) PostAPIInventoryReviewIDApprovedReview ¶
func (s *Server) PostAPIInventoryReviewIDApprovedReview(params operations.PostAPIInventoryReviewIDApprovedReviewParams) middleware.Responder
func (*Server) PostControlNewDiscoveredAPIs ¶
func (s *Server) PostControlNewDiscoveredAPIs(params operations.PostControlNewDiscoveredAPIsParams) middleware.Responder
func (*Server) PostControlTraceSources ¶
func (s *Server) PostControlTraceSources(params operations.PostControlTraceSourcesParams) middleware.Responder
func (*Server) PutAPIInventoryAPIIDSpecsProvidedSpec ¶
func (s *Server) PutAPIInventoryAPIIDSpecsProvidedSpec(params operations.PutAPIInventoryAPIIDSpecsProvidedSpecParams) middleware.Responder
type ServerConfig ¶
type ServerConfig struct { EnableTLS bool Port int TLSPort int TLSServerCertFilePath string TLSServerKeyFilePath string Speculators *speculators.Repository DBHandler *database.Handler ModulesManager modules.ModulesManager Features []modules.ModuleInfo NeedsTraceSourceAuth bool Notifier *_notifier.Notifier SamplingManager *sampling.TraceSamplingManager }
Source Files
¶
- apievents_controller.go
- apiinventory_controller.go
- apiinventory_delete_spec.go
- apiinventory_get_spec_json_controller.go
- apiinventory_specs_controller.go
- apiinventory_upload_spec.go
- control_controller.go
- control_tracesources_controller.go
- dashboard_controller.go
- features_controller.go
- hitcount_controller.go
- review_controller.go
- server.go
- testing.go
Click to show internal directories.
Click to hide internal directories.