server

package
v0.1.9 Latest Latest
Warning

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

Go to latest
Published: Feb 2, 2026 License: Apache-2.0 Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Server

type Server struct {
	pb.UnimplementedMonitorServer // Embedded unimplemented server for protobuf
	// contains filtered or unexported fields
}

Server represents a gRPC server for monitoring GitLab CI exporter.

func NewServer

func NewServer(
	gitlabClient *gitlab.Client,
	c config.Config,
	st store.Store,
	tsm map[schemas.TaskType]*monitor.TaskSchedulingStatus,
) (s *Server)

NewServer creates a new Server instance.

func (*Server) GetConfig

func (s *Server) GetConfig(ctx context.Context, _ *pb.Empty) (*pb.Config, error)

GetConfig retrieves the server configuration.

func (*Server) GetTelemetry

func (s *Server) GetTelemetry(_ *pb.Empty, ts pb.Monitor_GetTelemetryServer) (err error)

GetTelemetry streams telemetry data to the client.

func (*Server) Serve

func (s *Server) Serve()

Serve starts the gRPC server to listen for incoming connections.

Jump to

Keyboard shortcuts

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