v1

package
v0.0.0-...-b401549 Latest Latest
Warning

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

Go to latest
Published: May 29, 2024 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Register

func Register(server *grpc.Server, q QuestionService)

Types

type QuestionService

type QuestionService interface {
	GetRandom(ctx context.Context) (*models.Question, error)
}

type QuestionServiceServer

type QuestionServiceServer struct {
	pb.UnimplementedQuestionsServer
	// contains filtered or unexported fields
}

func (*QuestionServiceServer) GetQuestion

func (s *QuestionServiceServer) GetQuestion(ctx context.Context, req *pb.Empty) (*pb.QuestionResponse, error)

Jump to

Keyboard shortcuts

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