Documentation ¶
Index ¶
Constants ¶
Variables ¶
View Source
var ( GrpcDatabaseClient kvdbserver.DatabaseServiceClient GrpcStorageClient kvdbserver.StorageServiceClient GrpcServerClient kvdbserver.ServerServiceClient )
Functions ¶
func CheckGrpcError ¶
func CheckGrpcError(err error)
CheckGrpcError checks if error is a gRPC error. Prints error with the gRPC status message if it is. Otherwise prints the error if it is not nil.
func CloseConnections ¶
func CloseConnections()
CloseConnections closes all connections to the server.
func GetBaseGrpcMetadata ¶ added in v0.2.0
GetBaseGrpcMetadata returns base gRPC metadata for all requests. It can be overwritten or extended.
func ReadPasswordFromEnv ¶ added in v0.2.0
ReadPasswordFromEnv reads password from environment variable. The returned bool is true if it is present.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.