grpc

package
v0.0.22 Latest Latest
Warning

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

Go to latest
Published: Mar 17, 2021 License: MIT Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	ErrNotFound = status.Error(codes.NotFound, "record.not_found")
)

Functions

func FromDomain

func FromDomain(op *domain.Operation) *operation.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 {
	Addr string
	// contains filtered or unexported fields
}

API represents gRPC API server.

func New

func New(addr string, svc domain.UserOperationService) *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