grpc

package
v0.0.0-...-4101898 Latest Latest
Warning

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

Go to latest
Published: Dec 28, 2024 License: Apache-2.0, BSD-3-Clause, MIT Imports: 16 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var Module = fx.Module(
	"grpc-server",
	fx.Provide(NewServer),
	fx.Invoke(serverLC),
)

Functions

This section is empty.

Types

type Server

type Server struct {
	proto.UnimplementedQuizoryServiceServer
	// contains filtered or unexported fields
}

Server represents the gRPC server that handles INTERNAL requests.

func NewServer

func NewServer(
	cfg config.ServerConfig,
	questionService *question.Service,
) *Server

func (*Server) CreateQuestion

func (s *Server) CreateQuestion(
	ctx context.Context,
	req *proto.CreateQuestionRequest,
) (*proto.CreateQuestionResponse, error)

func (*Server) GetLatestQuestions

func (*Server) Shutdown

func (s *Server) Shutdown()

func (*Server) Start

func (s *Server) Start() error

Directories

Path Synopsis

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL
JackTT - Gopher 🇻🇳