Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Service ¶
type Service struct {
// contains filtered or unexported fields
}
func (*Service) EmitCheque ¶
func (*Service) Protocol ¶
func (s *Service) Protocol() p2p.ProtocolSpec
func (*Service) SetTraffic ¶
type Traffic ¶
type Traffic interface { ReceiveCheque(ctx context.Context, peer boson.Address, cheque *cheque.SignedCheque) error Handshake(peer boson.Address, beneficiary common.Address, cheque cheque.SignedCheque) error LastReceivedCheque(peer boson.Address) (*cheque.SignedCheque, error) UpdatePeerBalance(peer boson.Address) error }
Click to show internal directories.
Click to hide internal directories.