grpc

package
v0.0.0-...-c21d80e 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 - start the grpc server

Types

type PixGrpcService

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

PixGrpcService - Pix gRPC service structure

func NewPixGrpcService

func NewPixGrpcService(usecase usecase.PixUseCase) *PixGrpcService

NewPixGrpcService - new pix grpc service

func (*PixGrpcService) Find

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

Find - Find a pix key

func (*PixGrpcService) RegisterPixKey

RegisterPixKey - register a new pix key

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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