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.
type ServerEnricher ¶
ServerEnricher is the type of functions that can add register service implementations in a GRPC server.
Click to show internal directories.
Click to hide internal directories.