grpc

package
v0.0.0-...-b8330c8 Latest Latest
Warning

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

Go to latest
Published: Jul 20, 2022 License: Apache-2.0 Imports: 34 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	ErrJWTServiceNotSet         = errors.New("jwt service not set")
	ErrAuthServiceNotSet        = errors.New("auth service not set")
	ErrExamServiceNotSet        = errors.New("exam service not set")
	ErrParticipantServiceNotSet = errors.New("participant service not set")
	ErrQuestionServiceNotSet    = errors.New("question service not set")
	ErrChoiceServiceNotSet      = errors.New("choice service not set")
	ErrAnswerServiceNotSet      = errors.New("answer service not set")
	ErrAttemptServiceNotSet     = errors.New("attempt service not set")
	ErrAnalyticsServiceNotSet   = errors.New("analytics service not set")
)
View Source
var ErrAlreadyRunning = errors.New("grpc server is already running")

Functions

This section is empty.

Types

type ServiceContainer

type ServiceContainer struct {
	JWTService         jwt.Service
	AuthService        auth.Service
	ExamService        exam.Service
	ParticipantService participant.Service
	QuestionService    question.Service
	ChoiceService      choice.Service
	AnswerService      answer.Service
	AttemptService     attempt.Service
	AnalyticsService   analytics.Service
}

func (*ServiceContainer) Validate

func (s *ServiceContainer) Validate() error

type Serving

type Serving struct{}

type Transport

type Transport interface {
	Serve() error
	Shutdown()
	Serving() <-chan Serving
}

func NewTransport

func NewTransport(logger *logrus.Entry, cfg *config.Config, svc *ServiceContainer) (Transport, error)

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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