oasis-core: github.com/oasislabs/oasis-core/go/oasis-node/cmd/common/grpc Index | Files

package grpc

import "github.com/oasislabs/oasis-core/go/oasis-node/cmd/common/grpc"

Package grpc implements common gRPC command-line flags.

Index

Package Files

grpc.go

Constants

const (
    // CfgServerPort configures the server port.
    CfgServerPort = "grpc.port"
    // CfgDebugPort configures the remote address.
    CfgAddress = "address"
    // CfgWait waits for the remote address to become available.
    CfgWait = "wait"
)

Variables

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)
)

func NewClient Uses

func NewClient(cmd *cobra.Command) (*grpc.ClientConn, error)

func NewServerLocal Uses

func NewServerLocal(installWrapper bool) (*cmnGrpc.Server, error)

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 Uses

func NewServerTCP(cert *tls.Certificate, installWrapper bool) (*cmnGrpc.Server, error)

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.

Package grpc imports 13 packages (graph) and is imported by 15 packages. Updated 2020-04-07. Refresh now. Tools for package owners.