Documentation
¶
Overview ¶
Package remoteservice contains the logic for communicating between cli and server process
Index ¶
- type Client
- type EmptyArgs
- type RemoteService
- func (s *RemoteService) CheckConfig(args *EmptyArgs, reply *bool) error
- func (s *RemoteService) PostLatestFeedItem(args *SendLatestArgs, reply *bool) error
- func (s *RemoteService) Restart(args *EmptyArgs, reply *bool) error
- func (s *RemoteService) SendPing(args *SendPingArgs, reply *bool) error
- func (s *RemoteService) Statistics(args *EmptyArgs, reply *string) error
- type SendLatestArgs
- type SendPingArgs
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Client ¶
type Client struct {
// contains filtered or unexported fields
}
Client represents a convenience client for accessing the remote service.
func (Client) CheckConfig ¶
func (Client) PostLatestFeedItem ¶
func (Client) Statistics ¶
type RemoteService ¶
type RemoteService struct {
// contains filtered or unexported fields
}
RemoteService is a service for providing remote access to the app via RPC.
func NewRemoteService ¶
func NewRemoteService(d *dispatcher.Dispatcher, st *storage.Storage, cfg config.Config, configPath string) *RemoteService
func (*RemoteService) CheckConfig ¶
func (s *RemoteService) CheckConfig(args *EmptyArgs, reply *bool) error
func (*RemoteService) PostLatestFeedItem ¶
func (s *RemoteService) PostLatestFeedItem(args *SendLatestArgs, reply *bool) error
func (*RemoteService) Restart ¶ added in v0.3.0
func (s *RemoteService) Restart(args *EmptyArgs, reply *bool) error
func (*RemoteService) SendPing ¶
func (s *RemoteService) SendPing(args *SendPingArgs, reply *bool) error
func (*RemoteService) Statistics ¶
func (s *RemoteService) Statistics(args *EmptyArgs, reply *string) error
type SendLatestArgs ¶
type SendLatestArgs struct {
FeedName string
}
type SendPingArgs ¶
type SendPingArgs struct {
WebhookName string
}
Click to show internal directories.
Click to hide internal directories.