remote

package
v0.3.0 Latest Latest
Warning

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

Go to latest
Published: Oct 16, 2024 License: MIT Imports: 12 Imported by: 0

Documentation

Overview

Package remoteservice contains the logic for communicating between cli and server process

Index

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 NewClient

func NewClient(port int) Client

func (Client) CheckConfig

func (c Client) CheckConfig() error

func (Client) PostLatestFeedItem

func (c Client) PostLatestFeedItem(feedName string) error

func (Client) Restart added in v0.3.0

func (c Client) Restart() error

func (Client) SendPing

func (c Client) SendPing(webhookName string) error

func (Client) Statistics

func (c Client) Statistics() (string, error)

type EmptyArgs

type EmptyArgs struct{}

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
}

Jump to

Keyboard shortcuts

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