grpc

package
v0.0.0-...-0091320 Latest Latest
Warning

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

Go to latest
Published: Feb 8, 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.PixKeyUseCase
	pb.UnimplementedPixKeyServiceServer
}

PixGrpcService represents a service for pix keys operations

func (*PixGrpcService) Find

func (service *PixGrpcService) Find(ctx context.Context, in *pb.PixKeyFind) (*pb.Pixkey, error)

Find searches for a existing key

func (*PixGrpcService) RegisterPixKey

func (service *PixGrpcService) RegisterPixKey(ctx context.Context, in *pb.PixKeyRegistration) (*pb.PixKeyCreatedResult, error)

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