grpcserver

package
v0.8.9 Latest Latest
Warning

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

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

Documentation

Overview

Package grpcserver 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",
	2004: "Serving avoided.",
	4001: "Call to net.Listen(tcp, %s) failed.",
	4002: "Call to Szdiagnostic.PurgeRepository() failed.",
	4003: "Call to Szengine.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 BasicGrpcServer added in v0.7.3

type BasicGrpcServer struct {
	AvoidServing          bool
	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
}

BasicGrpcServer is the default implementation of the GrpcServer interface.

func (*BasicGrpcServer) Serve added in v0.7.3

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

type GrpcServer

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

Jump to

Keyboard shortcuts

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