Documentation
¶
Index ¶
- func DialContext(ctx context.Context, target string, opts ...grpc.DialOption) (*grpc.ClientConn, error)
- func Listen(address string) (net.Listener, error)
- func NewServer(opts ...grpc.ServerOption) *grpc.Server
- func SetMaxMessageSize(size int)
- func ToGoGrpcAddress(address string) (string, error)
- func ToNetListenerAddress(target string) (network, address string, err error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func DialContext ¶
func DialContext(ctx context.Context, target string, opts ...grpc.DialOption) (*grpc.ClientConn, error)
GrpcDialContext creates a client connection to the given target with custom message size
func Listen ¶
Listen is equivalent to standard net.Listen, but taking gRPC URL as input.
func NewServer ¶
func NewServer(opts ...grpc.ServerOption) *grpc.Server
NewGrpcServer creates new grpc.Server with custom message size
func SetMaxMessageSize ¶
func SetMaxMessageSize(size int)
SetMaxMessageSize overrides default grpc max. message size to send/receive to/from clients
func ToGoGrpcAddress ¶
ToGoGrpcAddress converts a standard gRPC target name to a one that is supported by grpc-go.
Types ¶
This section is empty.
Source Files
¶
- helper.go
Click to show internal directories.
Click to hide internal directories.