Documentation ¶
Index ¶
Constants ¶
View Source
const ( // PutNotaryEvent is method name for reputation put operations // in `Reputation` contract. Is used as identifier for notary // put reputation requests. PutNotaryEvent = "put" )
Variables ¶
This section is empty.
Functions ¶
func ParsePut ¶
func ParsePut(e *state.ContainedNotificationEvent) (event.Event, error)
ParsePut from notification into reputation event structure.
func ParsePutNotary ¶
func ParsePutNotary(ne event.NotaryEvent) (event.Event, error)
ParsePutNotary from NotaryEvent into reputation event structure.
Types ¶
type Put ¶
type Put struct {
// contains filtered or unexported fields
}
Put structure of reputation.reputationPut notification from morph chain.
func (Put) NotaryRequest ¶
func (p Put) NotaryRequest() *payload.P2PNotaryRequest
NotaryRequest returns raw notary request if notification was received via notary service. Otherwise, returns nil.
func (Put) PeerID ¶
func (p Put) PeerID() reputation.PeerID
PeerID returns peer id of reputation data.
Click to show internal directories.
Click to hide internal directories.