Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ProtocolID protocol.ID = "/libp2p/grpc/1.0.0"
Functions ¶
This section is empty.
Types ¶
type Client ¶
type Client struct {
// contains filtered or unexported fields
}
func (*Client) Dial ¶
func (c *Client) Dial( ctx context.Context, peerID peer.ID, dialOpts ...grpc.DialOption, ) (*grpc.ClientConn, error)
func (*Client) GetDialOption ¶
func (c *Client) GetDialOption(ctx context.Context) grpc.DialOption
type ClientOption ¶
type ClientOption func(*Client)
ClientOption allows for functional setting of options on a Client.
func WithServer ¶
func WithServer(s *Server) ClientOption
type Server ¶
type Server struct {
// contains filtered or unexported fields
}
func NewGrpcServer ¶
NewGrpcServer creates a Server object with the given LibP2P host and protocol.
func (*Server) RegisterService ¶
func (s *Server) RegisterService(serviceDesc *grpc.ServiceDesc, srv interface{})
type ServerOption ¶
type ServerOption func(*Server)
ServerOption allows for functional setting of options on a Server.
Click to show internal directories.
Click to hide internal directories.