Documentation ¶
Index ¶
- Variables
- func CreateSharedDatabase(serverAddr *[]string) *shared.Client
- func DialFunction(_ context.Context, address string) (net.Conn, error)
- type ClientRpcConn
- type RPCConnAddr
- type RpcConn
- func (r *RpcConn) Context() context.Context
- func (r *RpcConn) LocalAddr() net.Addr
- func (r *RpcConn) Read(p []byte) (n int, err error)
- func (r *RpcConn) RemoteAddr() net.Addr
- func (r *RpcConn) SetDeadline(t time.Time) error
- func (r *RpcConn) SetReadDeadline(t time.Time) error
- func (r *RpcConn) SetWriteDeadline(t time.Time) error
- func (r *RpcConn) Write(b []byte) (n int, err error)
- type ServerRpcConn
- type Stream
Constants ¶
This section is empty.
Variables ¶
View Source
var AcceptChan = make(chan net.Conn)
Functions ¶
func CreateSharedDatabase ¶
Types ¶
type ClientRpcConn ¶
type ClientRpcConn struct {
*RpcConn
}
func NewClientRpcConn ¶
func NewClientRpcConn(stream grpc.ClientStream, src, dst string) *ClientRpcConn
func (*ClientRpcConn) Close ¶
func (c *ClientRpcConn) Close() error
type RPCConnAddr ¶
type RPCConnAddr struct {
// contains filtered or unexported fields
}
func NewRPCConnAddr ¶
func NewRPCConnAddr(name string) RPCConnAddr
func (RPCConnAddr) Network ¶
func (R RPCConnAddr) Network() string
func (RPCConnAddr) String ¶
func (R RPCConnAddr) String() string
type RpcConn ¶
type RpcConn struct {
// contains filtered or unexported fields
}
func NewRPCConn ¶
func NewRPCConn(localAddr, remoteAddr RPCConnAddr, stream Stream) *RpcConn
func (*RpcConn) RemoteAddr ¶
type ServerRpcConn ¶
type ServerRpcConn struct {
*RpcConn
}
func NewServerRpcConn ¶
func NewServerRpcConn(stream grpc.ServerStream, src, dst string) *ServerRpcConn
func (*ServerRpcConn) Close ¶
func (s *ServerRpcConn) Close() error
Close is a no-op. You can't close a gRPC stream on the server side.
Source Files ¶
Click to show internal directories.
Click to hide internal directories.