octoposprime / op-be-shared

OctopOS Prime Backend Shared Library
http://www.octoposprime.com
MIT License
14 stars 1 forks source link

Add DlrHost and DlrPort to Dlr Service Configuration #11

Closed Sddilora closed 6 months ago

Sddilora commented 6 months ago

We need to extend the existing Grpc struct in our shared library to accommodate configuration for the DlrService. This is necessary as our microservices will utilize this shared library for gRPC communication.

Example usage:

// Example usage for connecting to the Dlr service
conn, err := grpc.Dial(
    tconfig.GetInternalConfigInstance().Grpc.DlrHost + ":" + tconfig.GetInternalConfigInstance().Grpc.DlrPort,
    grpc.WithTransportCredentials(insecure.NewCredentials())
)

Modify the existing Grpc struct to include fields specific to the DlrService, such as DlrHost and DlrPort.

You can locate the implementation of the DlrHost and port by examining the Grpc struct and looking for UserHost and UserPort.

ebrarkesici commented 6 months ago

I made the necessary changes here: https://github.com/octoposprime/op-be-shared/pull/12