Documentation
¶
Overview ¶
Package grpc is a generated protocol buffer package.
It is generated from these files:
github.com/stratumn/go-indigonode/core/app/bootstrap/grpc/bootstrap.proto
It has these top-level messages:
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func RegisterBootstrapServer ¶
func RegisterBootstrapServer(s *grpc1.Server, srv BootstrapServer)
Types ¶
type BootstrapClient ¶
type BootstrapClient interface {
// Propose adding a node to the network.
AddNode(ctx context.Context, in *stratumn_indigonode_core_app_bootstrap.NodeIdentity, opts ...grpc1.CallOption) (*stratumn_indigonode_core_app_bootstrap.Ack, error)
// Propose removing a node from the network.
RemoveNode(ctx context.Context, in *stratumn_indigonode_core_app_bootstrap.NodeIdentity, opts ...grpc1.CallOption) (*stratumn_indigonode_core_app_bootstrap.Ack, error)
// Accept a proposal to add or remove a network node.
Accept(ctx context.Context, in *stratumn_indigonode_core_app_bootstrap.PeerID, opts ...grpc1.CallOption) (*stratumn_indigonode_core_app_bootstrap.Ack, error)
// Reject a proposal to add or remove a network node.
Reject(ctx context.Context, in *stratumn_indigonode_core_app_bootstrap.PeerID, opts ...grpc1.CallOption) (*stratumn_indigonode_core_app_bootstrap.Ack, error)
// List pending proposals to add or remove a network node.
List(ctx context.Context, in *stratumn_indigonode_core_app_bootstrap.Filter, opts ...grpc1.CallOption) (Bootstrap_ListClient, error)
// Complete the network bootstrap phase.
Complete(ctx context.Context, in *stratumn_indigonode_core_app_bootstrap.CompleteReq, opts ...grpc1.CallOption) (*stratumn_indigonode_core_app_bootstrap.Ack, error)
}
func NewBootstrapClient ¶
func NewBootstrapClient(cc *grpc1.ClientConn) BootstrapClient
type BootstrapServer ¶
type BootstrapServer interface {
// Propose adding a node to the network.
AddNode(context.Context, *stratumn_indigonode_core_app_bootstrap.NodeIdentity) (*stratumn_indigonode_core_app_bootstrap.Ack, error)
// Propose removing a node from the network.
RemoveNode(context.Context, *stratumn_indigonode_core_app_bootstrap.NodeIdentity) (*stratumn_indigonode_core_app_bootstrap.Ack, error)
// Accept a proposal to add or remove a network node.
Accept(context.Context, *stratumn_indigonode_core_app_bootstrap.PeerID) (*stratumn_indigonode_core_app_bootstrap.Ack, error)
// Reject a proposal to add or remove a network node.
Reject(context.Context, *stratumn_indigonode_core_app_bootstrap.PeerID) (*stratumn_indigonode_core_app_bootstrap.Ack, error)
// List pending proposals to add or remove a network node.
List(*stratumn_indigonode_core_app_bootstrap.Filter, Bootstrap_ListServer) error
// Complete the network bootstrap phase.
Complete(context.Context, *stratumn_indigonode_core_app_bootstrap.CompleteReq) (*stratumn_indigonode_core_app_bootstrap.Ack, error)
}
type Bootstrap_ListClient ¶
type Bootstrap_ListClient interface {
Recv() (*stratumn_indigonode_core_app_bootstrap.UpdateProposal, error)
grpc1.ClientStream
}
type Bootstrap_ListServer ¶
type Bootstrap_ListServer interface {
Send(*stratumn_indigonode_core_app_bootstrap.UpdateProposal) error
grpc1.ServerStream
}
Click to show internal directories.
Click to hide internal directories.