startcmd

package
v0.0.0-...-a2079b4 Latest Latest
Warning

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

Go to latest
Published: Apr 19, 2024 License: Apache-2.0 Imports: 133 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetStartCmd

func GetStartCmd(opts ...StartOpts) *cobra.Command

GetStartCmd returns the Cobra start command.

func NewMetrics

func NewMetrics(parameters *startupParameters, e *echo.Echo, options startOpts) (metricsProvider.Metrics, error)

func NewMetricsProvider

func NewMetricsProvider(
	parameters *startupParameters,
	internalEchoServer *echo.Echo,
) (metricsProvider.Provider, error)

func OApiSkipper

func OApiSkipper(c echo.Context) bool

Types

type Configuration

type Configuration struct {
	RootCAs           *x509.CertPool
	VDR               vdrapi.Registry
	Tracer            trace.Tracer
	IsTraceEnabled    bool
	StartupParameters *startupParameters
}

Configuration for the vc-rest API server.

type StartOpts

type StartOpts func(opts *startOpts)

StartOpts configures the vc-rest server with custom options.

func WithHTTPHandler

func WithHTTPHandler(handler http.Handler) StartOpts

WithHTTPHandler sets the custom HTTP handler.

func WithHTTPServer

func WithHTTPServer(server httpServer) StartOpts

WithHTTPServer sets the custom HTTP server.

func WithServerVersion

func WithServerVersion(version string) StartOpts

WithServerVersion sets the custom HTTP server.

func WithVersion

func WithVersion(version string) StartOpts

WithVersion sets the custom HTTP server.

Jump to

Keyboard shortcuts

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