grpc

package
v0.0.0-...-836cf4d Latest Latest
Warning

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

Go to latest
Published: Aug 14, 2024 License: MIT Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type HealthCheckHandler

type HealthCheckHandler struct{}

func NewHealthCheckHandler

func NewHealthCheckHandler() *HealthCheckHandler

func (*HealthCheckHandler) Watch

type MessageHandler

type MessageHandler struct {
	pubsubui.UnimplementedPubSubUIServer
	// contains filtered or unexported fields
}

func NewMessageHandler

func NewMessageHandler(streamer core.IMessageStreamService) *MessageHandler

NewMessageHandler method creates a new MessageHandler

func (*MessageHandler) Fetch

Fetch retrieves messages from PubSub and pass it to the caller

type Server

type Server struct {
	// contains filtered or unexported fields
}

Server - The gRPC server

func NewServer

func NewServer(config *config.Config, messageHandler *MessageHandler, healthCheckHandler *HealthCheckHandler) *Server

NewServer method creates a new gRPC server

func (*Server) Start

func (s *Server) Start() error

Start starts the gRPC server

Jump to

Keyboard shortcuts

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