grpc

package
v0.7.1 Latest Latest
Warning

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

Go to latest
Published: Nov 6, 2024 License: MPL-2.0 Imports: 33 Imported by: 0

Documentation

Overview

Package grpc implements gRPC functionality.

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
}

Server implements functions needed to configure, start and stop the gRPC server.

func NewServer

func NewServer(options *ServerOptions) *Server

NewServer creates a new gRPC server.

func (*Server) Shutdown

func (s *Server) Shutdown()

Shutdown gracefully stops the server. Will block until all pending RPCs are finished.

func (*Server) Start

func (s *Server) Start() error

Start starts the server.

type ServerOptions

type ServerOptions struct {
	EnvironmentService       environment.Service
	OrganizationService      organization.Service
	ServiceAccountService    serviceaccount.Service
	ResourceLimitService     resourcelimit.Service
	ProjectService           project.Service
	JobService               job.Service
	PipelineService          pipeline.Service
	PipelineTemplateService  pipelinetemplate.Service
	LifecycleTemplateService lifecycletemplate.Service
	AgentService             agent.Service
	Listener                 net.Listener
	Logger                   logger.Logger
	TeamService              team.Service
	ReleaseLifecycleService  releaselifecycle.Service
	ReleaseService           release.Service
	PluginRegistryService    pluginregistry.Service
	VCSService               vcs.Service
	Authenticator            *auth.Authenticator
	APIServerConfig          *config.Config
	URNResolver              *urn.Resolver
	Version                  string
	OAuthProviders           []config.IdpConfig
}

ServerOptions contains the options to configure the gRPC server.

Directories

Path Synopsis
Package reader implements a size-limited reader for uploading templates of multiple kinds.
Package reader implements a size-limited reader for uploading templates of multiple kinds.
Package servers implements the gRPC servers.
Package servers implements the gRPC servers.

Jump to

Keyboard shortcuts

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