Documentation ¶
Index ¶
- Constants
- func ParseAddPeer(e *state.ContainedNotificationEvent) (event.Event, error)
- func ParseAddPeerNotary(ne event.NotaryEvent) (event.Event, error)
- func ParseNewEpoch(e *state.ContainedNotificationEvent) (event.Event, error)
- func ParseUpdatePeer(e *state.ContainedNotificationEvent) (event.Event, error)
- func ParseUpdatePeerNotary(ne event.NotaryEvent) (event.Event, error)
- type AddPeer
- type NewEpoch
- type UpdatePeer
Constants ¶
const ( // AddPeerNotaryEvent is method name for netmap `addPeer` operation // in `Netmap` contract. Is used as identificator for notary // peer addition requests. AddPeerNotaryEvent = "addPeer" )
const ( // UpdateStateNotaryEvent is method name for netmap state updating // operations in `Netmap` contract. Is used as identificator for // notary delete container requests. UpdateStateNotaryEvent = "updateState" )
Variables ¶
This section is empty.
Functions ¶
func ParseAddPeer ¶ added in v0.12.0
func ParseAddPeer(e *state.ContainedNotificationEvent) (event.Event, error)
func ParseAddPeerNotary ¶ added in v0.25.0
func ParseAddPeerNotary(ne event.NotaryEvent) (event.Event, error)
ParseAddPeerNotary from NotaryEvent into netmap event structure.
func ParseNewEpoch ¶
func ParseNewEpoch(e *state.ContainedNotificationEvent) (event.Event, error)
ParseNewEpoch is a parser of new epoch notification event.
Result is type of NewEpoch.
func ParseUpdatePeer ¶ added in v0.12.0
func ParseUpdatePeer(e *state.ContainedNotificationEvent) (event.Event, error)
func ParseUpdatePeerNotary ¶ added in v0.25.0
func ParseUpdatePeerNotary(ne event.NotaryEvent) (event.Event, error)
ParseUpdatePeerNotary from NotaryEvent into netmap event structure.
Types ¶
type AddPeer ¶ added in v0.12.0
type AddPeer struct {
// contains filtered or unexported fields
}
func (AddPeer) MorphEvent ¶ added in v0.12.0
func (AddPeer) MorphEvent()
MorphEvent implements Neo:Morph Event interface.
func (AddPeer) NotaryRequest ¶ added in v0.25.0
func (s AddPeer) NotaryRequest() *payload.P2PNotaryRequest
NotaryRequest returns raw notary request if notification was received via notary service. Otherwise, returns nil.
type NewEpoch ¶
type NewEpoch struct {
// contains filtered or unexported fields
}
NewEpoch is a new epoch Neo:Morph event.
func (NewEpoch) EpochNumber ¶
EpochNumber returns new epoch number.
func (NewEpoch) MorphEvent ¶
func (NewEpoch) MorphEvent()
MorphEvent implements Neo:Morph Event interface.
type UpdatePeer ¶ added in v0.12.0
type UpdatePeer struct {
// contains filtered or unexported fields
}
func (UpdatePeer) MorphEvent ¶ added in v0.12.0
func (UpdatePeer) MorphEvent()
MorphEvent implements Neo:Morph Event interface.
func (UpdatePeer) NotaryRequest ¶ added in v0.25.0
func (s UpdatePeer) NotaryRequest() *payload.P2PNotaryRequest
NotaryRequest returns raw notary request if notification was received via notary service. Otherwise, returns nil.
func (UpdatePeer) Online ¶ added in v0.29.0
func (s UpdatePeer) Online() bool
func (UpdatePeer) PublicKey ¶ added in v0.12.0
func (s UpdatePeer) PublicKey() *keys.PublicKey