rest

package
v0.0.0-...-37aa375 Latest Latest
Warning

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

Go to latest
Published: Aug 23, 2024 License: Apache-2.0 Imports: 31 Imported by: 0

Documentation

Index

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 (s *Server) CreateNewDiscoveredAPIs(ctx context.Context, hosts []string, traceSource *models.TraceSource) error

func (*Server) DeleteAPIInventoryAPIIDSpecsProvidedSpec

func (s *Server) DeleteAPIInventoryAPIIDSpecsProvidedSpec(params operations.DeleteAPIInventoryAPIIDSpecsProvidedSpecParams) middleware.Responder

func (*Server) DeleteControlTraceSourcesTraceSourceID

func (s *Server) DeleteControlTraceSourcesTraceSourceID(params operations.DeleteControlTraceSourcesTraceSourceIDParams) middleware.Responder

func (*Server) GetAPIEvent

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) GetAPIInventoryAPIIDSpecs

func (s *Server) GetAPIInventoryAPIIDSpecs(params operations.GetAPIInventoryAPIIDSpecsParams) middleware.Responder

func (*Server) GetAPIInventoryAPIIDSuggestedReview

func (s *Server) GetAPIInventoryAPIIDSuggestedReview(params operations.GetAPIInventoryAPIIDSuggestedReviewParams) 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) 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

func (*Server) Start

func (s *Server) Start(errChan chan struct{})

func (*Server) Stop

func (s *Server) Stop()

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
}

Jump to

Keyboard shortcuts

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