http

package
v0.0.0-...-7e59fc9 Latest Latest
Warning

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

Go to latest
Published: Oct 30, 2024 License: Apache-2.0 Imports: 20 Imported by: 1

Documentation

Overview

Package http provides a set of functions to create the plugin server and to work with the http requests

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CreateMainCmd

func CreateMainCmd(identityImpl identity.IdentityServer, enrichers ...ServerEnricher) *cobra.Command

CreateMainCmd creates a command to be used as the server side for the CNPG-I infrastructure.

Types

type Server

type Server struct {
	IdentityImpl   identity.IdentityServer
	Enrichers      []ServerEnricher
	ServerCertPath string
	ServerKeyPath  string
	ClientCertPath string
	// mutually exclusive with pluginPath
	ServerAddress string
	// mutually exclusive with serverAddress
	PluginPath string
}

Server is the main structure to start a GRPC server.

func (*Server) Start

func (s *Server) Start(ctx context.Context) error

Start starts the server.

type ServerEnricher

type ServerEnricher func(*grpc.Server) error

ServerEnricher is the type of functions that can add register service implementations in a GRPC server.

Jump to

Keyboard shortcuts

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