Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type FollowArgs ¶
FollowArgs contains the args.
type SearchArgs ¶
SearchArgs contains the args.
type SearchReply ¶
SearchReply contains the reply
type SelfReply ¶
type SelfReply struct { // Author is the author object. Author *object.Author `json:"author"` // PeerID is the peer ID of the server. PeerID peer.ID `json:"peerID"` }
SelfReply contains the reply
type Service ¶
Service wraps a remote and provides RPC.
func (*Service) Follow ¶
func (s *Service) Follow(args *FollowArgs, reply *FollowReply) error
Follow returns the author for the given peer ID.
func (*Service) Search ¶
func (s *Service) Search(args *SearchArgs, reply *SearchReply) error
Search returns the author for the given peer ID.
func (*Service) Unfollow ¶
func (s *Service) Unfollow(args *UnfollowArgs, reply *UnfollowReply) error
Unfollow returns the author for the given peer ID.
type UnfollowArgs ¶
UnfollowArgs contains the args.
Click to show internal directories.
Click to hide internal directories.