server

package
v1.0.7 Latest Latest
Warning

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

Go to latest
Published: May 15, 2025 License: MIT Imports: 11 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.UnimplementedSuhaibMessageQueueServer
	// contains filtered or unexported fields
}

func NewServer

func NewServer(port, dbPath string, opts *ServerOptions) *Server

func (*Server) BulkRetrieve added in v1.0.2

func (s *Server) BulkRetrieve(ctx context.Context, brr *pb.BulkRetrieveRequest) (*pb.BulkRetrieveResponse, error)

func (*Server) Close

func (s *Server) Close()

func (*Server) Connect

func (s *Server) Connect(ctx context.Context, req *pb.ConnectRequest) (*pb.ConnectResponse, error)

Connect is a placeholder implementation for the Connect method required by the interface

func (*Server) Consume

func (s *Server) Consume(ctx context.Context, cr *pb.ConsumeRequest) (*pb.ConsumeResponse, error)

func (*Server) CreateTopic

func (s *Server) CreateTopic(ctx context.Context, tr *pb.CreateTopicRequest) (*pb.CreateTopicResponse, error)

func (*Server) Debug

func (s *Server) Debug()

func (*Server) DeleteUntilOffset

func (*Server) GetDriver added in v1.0.1

func (s *Server) GetDriver() database.DBDriverInterface

func (*Server) GetEarliestMessageFromTopic

func (s *Server) GetEarliestMessageFromTopic(ctx context.Context, gr *pb.GetEarliestOffsetRequest) (*pb.GetEarliestOffsetResponse, error)

func (*Server) GetEarliestOffset

func (*Server) GetLatestMessageFromTopic

func (s *Server) GetLatestMessageFromTopic(ctx context.Context, gr *pb.GetLatestOffsetRequest) (*pb.GetLatestOffsetResponse, error)

func (*Server) GetLatestOffset

func (*Server) Produce

func (s *Server) Produce(ctx context.Context, pr *pb.ProduceRequest) (*pb.ProduceResponse, error)

func (*Server) Start

func (s *Server) Start()

func (*Server) StreamConsume

func (*Server) StreamProduce

type ServerOptions added in v1.0.3

type ServerOptions struct {
	EnableMTLS     bool
	TLSConfig      *tls.Config
	MaxRecvMsgSize int
	MaxSendMsgSize int
}

ServerOptions allows for programmatic configuration of the server.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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