server

package
v0.2.5 Latest Latest
Warning

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

Go to latest
Published: Apr 21, 2026 License: Apache-2.0 Imports: 15 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewGRPCServer

func NewGRPCServer(logger *slog.Logger) *grpc.Server

NewGRPCServer creates a gRPC server with panic recovery and logging interceptors.

Types

type EventServer

type EventServer struct {
	observer.UnimplementedTestEventCollectorServer
	// contains filtered or unexported fields
}

func New

func New(logger *slog.Logger) *EventServer

New returns a new EventServer. If logger is nil, a no-op logger is used.

func NewWithPublisher

func NewWithPublisher(logger *slog.Logger, pub *publisher.NATSPublisher) *EventServer

NewWithPublisher returns a new EventServer with NATS publisher support. If logger is nil, a no-op logger is used. The publisher parameter is optional.

func RegisterServices

func RegisterServices(s *grpc.Server, logger *slog.Logger, _ interface{}) *EventServer

RegisterServices registers the gRPC services without database or publisher. Kept for backward compatibility with ingestion service.

func RegisterServicesWithPublisher

func RegisterServicesWithPublisher(s *grpc.Server, logger *slog.Logger, _ interface{}, pub *publisher.NATSPublisher) *EventServer

RegisterServicesWithPublisher registers the gRPC services with NATS publisher support.

func (*EventServer) Heartbeat

func (*EventServer) ReportRunEnd

func (*EventServer) ReportRunStart

func (*EventServer) ReportStdError

func (*EventServer) ReportStdOutput

func (*EventServer) ReportStepBegin

func (*EventServer) ReportStepEnd

func (*EventServer) ReportSuiteBegin

func (*EventServer) ReportSuiteEnd

func (*EventServer) ReportTestBegin

func (*EventServer) ReportTestEnd

func (*EventServer) ReportTestError

func (*EventServer) ReportTestFailure

Jump to

Keyboard shortcuts

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