Documentation ¶
Index ¶
Constants ¶
View Source
const (
JSONRPCEndpoint = "/feed"
)
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type FeedInfoReply ¶
type FeedReply ¶
type FeedReply struct {
Feed []*manager.FeedObject `json:"feed"`
}
type JSONRPCClient ¶
type JSONRPCClient struct {
// contains filtered or unexported fields
}
func NewJSONRPCClient ¶
func NewJSONRPCClient(uri string) *JSONRPCClient
New creates a new client object.
func (*JSONRPCClient) Feed ¶
func (cli *JSONRPCClient) Feed(ctx context.Context) ([]*manager.FeedObject, error)
type JSONRPCServer ¶
type JSONRPCServer struct {
// contains filtered or unexported fields
}
func NewJSONRPCServer ¶
func NewJSONRPCServer(m Manager) *JSONRPCServer
func (*JSONRPCServer) Feed ¶
func (j *JSONRPCServer) Feed(req *http.Request, _ *struct{}, reply *FeedReply) (err error)
func (*JSONRPCServer) FeedInfo ¶
func (j *JSONRPCServer) FeedInfo(req *http.Request, _ *struct{}, reply *FeedInfoReply) (err error)
Click to show internal directories.
Click to hide internal directories.