Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
Functions ¶
func CheckServiceAvailability ¶
func CheckServiceAvailability(address, serviceSymbol string, opts ...grpc.DialOption) error
CheckServiceAvailability connects using address and checks if the gRPC symbol is available. The serviceSymbol must be of the format `<package>.<service>`.
When the method is not available, error ErrServiceUnavailable is returned.
The opts argument can be used pass options for the grpc.Dial function.
func ErrorFromRPC ¶
ErrorFromRPC cleans up errors returned by the proto package. Errors with codes.Unavailable will have ErrServerUnavailable wrapped into the error.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.