handlers

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Sep 7, 2021 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Registrar

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

Registrar is registrar of gRPC and gRPC-Gateway handlers.

func NewRegistrar

func NewRegistrar(echo echov1.EchoServiceServer) Registrar

NewRegistrar returns new registrar instance.

func (Registrar) RegisterHandlers

func (r Registrar) RegisterHandlers(ctx context.Context, grpcServer *grpc.Server, wgMux *runtime.ServeMux) error

RegisterHandlers registers all handlers for grpcServer and runtime.ServeMux. Moved separately to avoid mixing business logic and infrastructure.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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