Documentation ¶
Overview ¶
Package grpc implements common gRPC command-line flags.
Index ¶
Constants ¶
View Source
const ( // CfgServerPort configures the server port. CfgServerPort = "grpc.port" // CfgAddress configures the remote address. CfgAddress = "address" // CfgWait waits for the remote address to become available. CfgWait = "wait" // CfgDebugGrpcInternalSocketPath sets custom internal socket path. CfgDebugGrpcInternalSocketPath = "debug.grpc.internal.socket_path" // LocalSocketFilename is the filename of the unix socket in node datadir. LocalSocketFilename = "internal.sock" )
Variables ¶
View Source
var ( // ServerTCPFlags has the flags used by the gRPC server. ServerTCPFlags = flag.NewFlagSet("", flag.ContinueOnError) // ServerLocalFlags has the flags used by the gRPC server. ServerLocalFlags = flag.NewFlagSet("", flag.ContinueOnError) // ClientFlags has the flags for a gRPC client. ClientFlags = flag.NewFlagSet("", flag.ContinueOnError) )
Functions ¶
func NewServerLocal ¶
NewServerLocal constructs a new gRPC server service listening on a specific AF_LOCAL socket using default arguments.
This internally takes a snapshot of the current global tracer, so make sure you initialize the global tracer before calling this.
func NewServerTCP ¶
NewServerTCP constructs a new gRPC server service listening on a specific TCP port using default arguments.
This internally takes a snapshot of the current global tracer, so make sure you initialize the global tracer before calling this.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.