grpcserver

package
v0.7.1 Latest Latest
Warning

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

Go to latest
Published: Apr 26, 2024 License: Apache-2.0 Imports: 21 Imported by: 1

Documentation

Overview

The grpcserver package manages the gRPC server.

Index

Constants

View Source
const ComponentId = 6204

Identfier of the package found messages having the format "senzing-6204xxxx".

View Source
const DefaultGrpcObserverPort = "8260"

Default gRPC Observer port

View Source
const Prefix = "serve-grpc.grpcserver."

Log message prefix.

Variables

View Source
var IdMessages = map[int]string{
	2000: "Entry: %+v",
	2001: "SENZING_ENGINE_CONFIGURATION_JSON: %v",
	2002: "Enabling all services",
	2003: "Server listening at %v",
	4001: "Call to net.Listen(tcp, %s) failed.",
	4002: "Call to G2diagnostic.PurgeRepository() failed.",
	4003: "Call to G2engine.Destroy() failed.",
	5001: "Failed to serve.",
}

Message templates.

View Source
var IdStatuses = map[int]string{}

Status strings for specific messages.

Functions

This section is empty.

Types

type GrpcServer

type GrpcServer interface {
	Serve(ctx context.Context) error
}

type GrpcServerImpl

type GrpcServerImpl struct {
	EnableAll             bool
	EnableSzConfig        bool
	EnableSzConfigManager bool
	EnableSzDiagnostic    bool
	EnableSzEngine        bool
	EnableSzProduct       bool

	LogLevelName          string
	ObserverOrigin        string
	Observers             []observer.Observer
	ObserverUrl           string
	Port                  int
	SenzingSettings       string
	SenzingInstanceName   string
	SenzingVerboseLogging int64
	// contains filtered or unexported fields
}

GrpcServerImpl is the default implementation of the GrpcServer interface.

func (*GrpcServerImpl) Serve

func (grpcServer *GrpcServerImpl) Serve(ctx context.Context) error

Jump to

Keyboard shortcuts

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