server

package
v0.0.0-...-25be970 Latest Latest
Warning

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

Go to latest
Published: Sep 8, 2024 License: MIT Imports: 18 Imported by: 0

Documentation

Overview

Package server contains the server part of CISIN

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Opts

type Opts struct {
	ConnectionMessagingRepo messagingrepository.Messaging[cisinapi.Connection, *cisinapi.Connection]
	SBOMMessagingRepo       messagingrepository.Messaging[cisinapi.Sbom, *cisinapi.Sbom]
	TracingRepo             tracing.Tracing
	WpSize                  int
	WpMaxQueueSize          int
	ConnectionSubject       string
	SBOMSubject             string
	ConnectionQueue         string
	SBOMQueue               string
	K8sRepo                 k8srepository.K8s
	ExcludeWorkloads        []string
}

Opts contains options.

type Server

type Server interface {
	// Start starts the server
	Start(ctx context.Context) error
}

Server is the interface for a server.

func NewServer

func NewServer(opts Opts) Server

NewServer creates a new Server.

Jump to

Keyboard shortcuts

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