Documentation ¶
Index ¶
- func TCPDialer(address string, port int, lg Printer) grpc.DialOption
- func WebSocketDialer(uri string, lg Printer) grpc.DialOption
- func WithContextDialer(dial DialWithContextFunc) grpc.DialOption
- func WithRetryContextDialer(dial DialWithContextFunc) grpc.DialOption
- type DialWithContextFunc
- type Printer
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func TCPDialer ¶
func TCPDialer(address string, port int, lg Printer) grpc.DialOption
TCPDialer returns a grpc.DialOption for connecting to a TCP socket with given address and port number. Logging messages will be sent to lg, if non-nil. The dial will be retried on error.
func WebSocketDialer ¶
func WebSocketDialer(uri string, lg Printer) grpc.DialOption
WebSocketDialer returns a grpc.DialOption for connecting to a web-socket with given URI. Logging messages will be sent to lg, if non-nil. The dial will be retried on error.
func WithContextDialer ¶
func WithContextDialer(dial DialWithContextFunc) grpc.DialOption
WithContextDialer returns a grpc.DialOption for the given DialWithContextFunc.
func WithRetryContextDialer ¶
func WithRetryContextDialer(dial DialWithContextFunc) grpc.DialOption
WithRetryContextDialer returns a grpc.DialOption for the given DialWithContextFunc. The dial will be retried on error.
Types ¶
type DialWithContextFunc ¶
DialWithContextFunc defines a function that can be used to dial a connection.
Click to show internal directories.
Click to hide internal directories.