server

package module
v0.0.0-...-d4aa875 Latest Latest
Warning

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

Go to latest
Published: May 28, 2024 License: Apache-2.0 Imports: 18 Imported by: 0

Documentation

Index

Constants

View Source
const (
	DefaultEnvPrefix          = "VMCLARITY_UIBACKEND"
	DefaultListenAddress      = "0.0.0.0:8890"
	DefaultHealthCheckAddress = "0.0.0.0:8083"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type Config

type Config struct {
	ListenAddress      string `json:"listen-address,omitempty" mapstructure:"listen_address"`
	APIServerAddress   string `json:"apiserver-address,omitempty" mapstructure:"apiserver_address"`
	HealthCheckAddress string `json:"healthcheck-address,omitempty" mapstructure:"healthcheck_address"`
}

func NewConfig

func NewConfig() (*Config, error)

type ServerImpl

type ServerImpl struct {
	Client *client.Client
	// contains filtered or unexported fields
}

func CreateServer

func CreateServer(client *client.Client) *ServerImpl

func (*ServerImpl) GetDashboardFindingsImpact

func (s *ServerImpl) GetDashboardFindingsImpact(ctx echo.Context) error

func (*ServerImpl) GetDashboardFindingsTrends

func (s *ServerImpl) GetDashboardFindingsTrends(ctx echo.Context, params types.GetDashboardFindingsTrendsParams) error

func (*ServerImpl) GetDashboardRiskiestAssets

func (s *ServerImpl) GetDashboardRiskiestAssets(ctx echo.Context) error

func (*ServerImpl) GetDashboardRiskiestRegions

func (s *ServerImpl) GetDashboardRiskiestRegions(ctx echo.Context) error

func (*ServerImpl) StartBackgroundProcessing

func (s *ServerImpl) StartBackgroundProcessing(ctx context.Context)

Directories

Path Synopsis
internal
server
Package server provides primitives to interact with the openapi HTTP API.
Package server provides primitives to interact with the openapi HTTP API.

Jump to

Keyboard shortcuts

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