Documentation ¶
Index ¶
Constants ¶
View Source
const UpdateSPDuration = 2
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type P2PConfig ¶
type P2PConfig struct { SpOperatorAddress string GRPCAddress string SignerGrpcAddress string SpDBConfig *config.SQLDBConfig P2PConfig *p2p.NodeConfig }
type P2PServer ¶
type P2PServer struct {
// contains filtered or unexported fields
}
P2PServer p2p service
func NewP2PServer ¶
NewP2PServer return an instance of P2PServer
func (*P2PServer) GetApproval ¶
func (p *P2PServer) GetApproval(ctx context.Context, req *p2ptypes.GetApprovalRequest) (*p2ptypes.GetApprovalResponse, error)
GetApproval asks the approval to other SP.
Click to show internal directories.
Click to hide internal directories.