Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type P2P ¶
type P2P struct {
// contains filtered or unexported fields
}
func NewP2P ¶
func NewP2P( ctx context.Context, privKey crypto.PrivateKey, peerName string, networkID string, psk []byte, networkCIDR string, setupServer types.FuncSetupServer, setupClient types.FuncSetupClient, ) (*P2P, error)
func (*P2P) GetNetworkID ¶
type Peer ¶
type Peer struct {
// contains filtered or unexported fields
}
func (*Peer) DialContext ¶
func (*Peer) GRPCClient ¶
func (p *Peer) GRPCClient() *grpc.ClientConn
func (Peer) GRPCConn ¶
func (p Peer) GRPCConn() *grpc.ClientConn
Source Files ¶
Click to show internal directories.
Click to hide internal directories.