grpc

package
v0.1.36 Latest Latest
Warning

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

Go to latest
Published: Jan 16, 2022 License: MIT Imports: 16 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	ErrValidationFailed = status.New(codes.InvalidArgument, "request.validation_failed")
)

Functions

func FromDomain

func FromDomain(r *model.Registration) *registration.Record

func RequestLoggingInterceptor

func RequestLoggingInterceptor(ctx context.Context, req interface{}, info *grpc.UnaryServerInfo, handler grpc.UnaryHandler) (interface{}, error)

RequestLoggingInterceptor write request body to logs.

Types

type API

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

API represents gRPC API server.

func New

func New(addr string, svc domain.InternalService) *API

func (*API) Run

func (a *API) Run(ctx context.Context) error

Jump to

Keyboard shortcuts

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