rpc

package
v0.0.0-...-798a471 Latest Latest
Warning

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

Go to latest
Published: Aug 2, 2024 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

View Source
const (
	GlobalSearchFakeResponse = `` /* 2156-byte string literal not displayed */

	TrackEntryFakeRequer = `
key:  {
  entity_type:  ENTRY_TYPE_SERIES
  entity_id:  34145
  user_id:  "user"
}`

	ListEntriesFakeResponse = `` /* 4138-byte string literal not displayed */

)

Variables

This section is empty.

Functions

func NewFlibustierClient

func NewFlibustierClient(backend string) (*pb.FlibustierServiceClient, error)

Types

type Backend

type Backend interface {
	GlobalSearch(searchTerm string) (*pb.GlobalSearchResponse, error)
	ListTrackedEntries(userId string) (*pb.ListTrackedEntriesResponse, error)
}

type FakeClientImplementation

type FakeClientImplementation struct {
}

func (FakeClientImplementation) CheckUpdates

func (FakeClientImplementation) GetAuthorBooks

func (FakeClientImplementation) GetSeriesBooks

func (FakeClientImplementation) GetUserInfo

func (FakeClientImplementation) GlobalSearch

func (FakeClientImplementation) ListTrackedEntries

func (FakeClientImplementation) ListUsers

func (FakeClientImplementation) TrackEntry

func (FakeClientImplementation) UntrackEntry

func (FakeClientImplementation) UpdateEntry

type FakeSearch

type FakeSearch struct {
	Backend
}

func (*FakeSearch) GlobalSearch

func (fs *FakeSearch) GlobalSearch(_ string) (*pb.GlobalSearchResponse, error)

type GrpcClientImplementation

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

func (GrpcClientImplementation) CheckUpdates

func (GrpcClientImplementation) GetAuthorBooks

func (GrpcClientImplementation) GetSeriesBooks

func (GrpcClientImplementation) GetUserInfo

func (GrpcClientImplementation) GlobalSearch

func (GrpcClientImplementation) ListTrackedEntries

func (GrpcClientImplementation) ListUsers

func (GrpcClientImplementation) TrackEntry

func (GrpcClientImplementation) UntrackEntry

func (GrpcClientImplementation) UpdateEntry

type GrpcSearch

type GrpcSearch struct {
	Backend
	// contains filtered or unexported fields
}

func NewGrpcSearch

func NewGrpcSearch(client pb.FlibustierServiceClient) *GrpcSearch

func (*GrpcSearch) GlobalSearch

func (gs *GrpcSearch) GlobalSearch(searchTerm string) (*pb.GlobalSearchResponse, error)

Directories

Path Synopsis
Package mocks is a generated GoMock package.
Package mocks is a generated GoMock package.

Jump to

Keyboard shortcuts

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