Documentation ¶
Overview ¶
Package grpc implements a grpc payment API server.
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ToGrpcChUpdateType = map[perun.ChUpdateType]pb.SubPayChUpdatesResp_Notify_ChUpdateType{ perun.ChUpdateTypeOpen: pb.SubPayChUpdatesResp_Notify_open, perun.ChUpdateTypeFinal: pb.SubPayChUpdatesResp_Notify_final, perun.ChUpdateTypeClosed: pb.SubPayChUpdatesResp_Notify_closed, }
ToGrpcChUpdateType is a helper var that maps enums from ChUpdateType type defined in perun-node to ChUpdateType type defined in grpc package.
Functions ¶
func ListenAndServePayChAPI ¶ added in v0.4.0
ListenAndServePayChAPI starts a payment channel API server that listens for incoming grpc requests at the specified address and serves those requests using the node API instance.
func ToGrpcBalInfo ¶
ToGrpcBalInfo is a helper function to convert BalInfo struct defined in perun-node to BalInfo struct defined in grpc package.
func ToGrpcPayment ¶ added in v0.6.0
ToGrpcPayment is a helper function to convert Payment struct defined in perun-node package to Payment struct defined in gprc package.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.