backend

package
v0.0.0-...-65dd48a Latest Latest
Warning

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

Go to latest
Published: Sep 29, 2024 License: BSD-3-Clause Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Backend

type Backend interface {
	GetStatsF(context.Context) func() (*entity.Stats, error)
	GetAllFeedsF(context.Context) func() ([]*entity.Feed, error)
	PullFeedsF(context.Context, []entity.ID) func() (<-chan entity.PullResult, error)
	String() string
}

Backend describes the console backend.

type RPC

type RPC struct {
	// contains filtered or unexported fields
}

func NewRPC

func NewRPC(_ context.Context, addr string, dialOpts ...grpc.DialOption) (*RPC, error)

func (*RPC) GetAllFeedsF

func (r *RPC) GetAllFeedsF(ctx context.Context) func() ([]*entity.Feed, error)

func (*RPC) GetStatsF

func (r *RPC) GetStatsF(ctx context.Context) func() (*entity.Stats, error)

func (*RPC) PullFeedsF

func (r *RPC) PullFeedsF(
	ctx context.Context,
	ids []entity.ID,
) func() (<-chan entity.PullResult, error)

func (*RPC) String

func (r *RPC) String() string

Jump to

Keyboard shortcuts

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