author

package
v0.0.5 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Mar 4, 2021 License: AGPL-3.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type FollowArgs

type FollowArgs struct {
	// PeerID is the peer ID of the author.
	PeerID peer.ID `json:"peerID"`
}

FollowArgs contains the args.

type FollowReply

type FollowReply struct{}

FollowReply contains the reply

type SearchArgs

type SearchArgs struct {
	// PeerID is the peer ID of the author.
	PeerID peer.ID `json:"peerID"`
}

SearchArgs contains the args.

type SearchReply

type SearchReply struct {
	// Author is the author profile.
	Author *object.Author `json:"author"`
}

SearchReply contains the reply

type SelfArgs

type SelfArgs struct{}

SelfArgs contains the args.

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

type Service struct {
	*remote.Server
}

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) Self

func (s *Service) Self(args *SelfArgs, reply *SelfReply) error

Self returns the server peer's author profile.

func (*Service) Unfollow

func (s *Service) Unfollow(args *UnfollowArgs, reply *UnfollowReply) error

Unfollow returns the author for the given peer ID.

type UnfollowArgs

type UnfollowArgs struct {
	// PeerID is the peer ID of the author.
	PeerID peer.ID `json:"peerID"`
}

UnfollowArgs contains the args.

type UnfollowReply

type UnfollowReply struct{}

UnfollowReply contains the reply

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL