grpc

package
v0.0.0-...-ea8a90b Latest Latest
Warning

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

Go to latest
Published: Feb 9, 2021 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func StartGrpcServer

func StartGrpcServer(database *gorm.DB, port int)

StartGrpcServer create a new gRPC server

Types

type PixGrpcService

type PixGrpcService struct {
	PixUseCase usecase.PixUseCase
	pb.UnimplementedPixServiceServer
}

PixGrpcService represents a service for pix keys operations

func NewPixGrpcService

func NewPixGrpcService(usecase usecase.PixUseCase) *PixGrpcService

NewPixGrpcService new Service of Pix Grpc

func (*PixGrpcService) Find

func (p *PixGrpcService) Find(ctx context.Context, in *pb.PixKey) (*pb.PixKeyInfo, error)

Find searches for a existing key

func (*PixGrpcService) RegisterPixKey

RegisterPixKey registers a new key

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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