service

package
v0.0.0-...-e0271d0 Latest Latest
Warning

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

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

Documentation

Overview

Package service contains only a stub function.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CreateAPIServices

func CreateAPIServices(config *configuration.Config, oidc auth.OidcAuth) ([]middleware.APIService, error)

CreateAPIServices returns a list of all gRPC API services.

Types

type Server

type Server struct {
	*grpc.Server
	Config   *configuration.Config
	ErrCh    chan error
	Services []middleware.APIService
	// contains filtered or unexported fields
}

Server is a wrapped gRPC server with config and error channel.

func New

func New(config *configuration.Config, oidc auth.OidcAuth, services ...middleware.APIService) Server

New creates and returns a new server instance.

func (*Server) Run

func (s *Server) Run() error

Run runs a gRPC + HTTP server on a single port.

Directories

Path Synopsis
Package healthz contains handlers for readiness and liveness checks.
Package healthz contains handlers for readiness and liveness checks.
Package qualitymilestonedefinition contains the server to manage QualityMilestoneDefinitions.
Package qualitymilestonedefinition contains the server to manage QualityMilestoneDefinitions.
Package release contains the server to manage Releases.
Package release contains the server to manage Releases.

Jump to

Keyboard shortcuts

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