Documentation ¶
Index ¶
- Constants
- func NewFlibustierClient(backend string) (*pb.FlibustierServiceClient, error)
- type Backend
- type ClientInterface
- type FakeClientImplementation
- func (f FakeClientImplementation) CheckUpdates(in *pb.CheckUpdatesRequest) (*pb.CheckUpdatesResponse, error)
- func (f FakeClientImplementation) GetAuthorBooks(in *pb.GetAuthorBooksRequest) (*pb.GetAuthorBooksResponse, error)
- func (f FakeClientImplementation) GetSeriesBooks(in *pb.GetSeriesBooksRequest) (*pb.GetSeriesBooksResponse, error)
- func (f FakeClientImplementation) GetUserInfo(in *pb.GetUserInfoRequest) (*pb.GetUserInfoResponse, error)
- func (f FakeClientImplementation) GlobalSearch(in *pb.GlobalSearchRequest) (*pb.GlobalSearchResponse, error)
- func (f FakeClientImplementation) ListTrackedEntries(in *pb.ListTrackedEntriesRequest) (*pb.ListTrackedEntriesResponse, error)
- func (f FakeClientImplementation) ListUsers(in *pb.ListUsersRequest) (*pb.ListUsersResponse, error)
- func (f FakeClientImplementation) TrackEntry(in *pb.TrackEntryRequest) (*pb.TrackEntryResponse, error)
- func (f FakeClientImplementation) UntrackEntry(in *pb.UntrackEntryRequest) (*pb.UntrackEntryResponse, error)
- func (f FakeClientImplementation) UpdateEntry(in *pb.UpdateTrackedEntryRequest) (*pb.UpdateTrackedEntryResponse, error)
- type FakeSearch
- type GrpcClientImplementation
- func (g GrpcClientImplementation) CheckUpdates(in *pb.CheckUpdatesRequest) (*pb.CheckUpdatesResponse, error)
- func (g GrpcClientImplementation) GetAuthorBooks(in *pb.GetAuthorBooksRequest) (*pb.GetAuthorBooksResponse, error)
- func (g GrpcClientImplementation) GetSeriesBooks(in *pb.GetSeriesBooksRequest) (*pb.GetSeriesBooksResponse, error)
- func (g GrpcClientImplementation) GetUserInfo(in *pb.GetUserInfoRequest) (*pb.GetUserInfoResponse, error)
- func (g GrpcClientImplementation) GlobalSearch(in *pb.GlobalSearchRequest) (*pb.GlobalSearchResponse, error)
- func (g GrpcClientImplementation) ListTrackedEntries(in *pb.ListTrackedEntriesRequest) (*pb.ListTrackedEntriesResponse, error)
- func (g GrpcClientImplementation) ListUsers(in *pb.ListUsersRequest) (*pb.ListUsersResponse, error)
- func (g GrpcClientImplementation) TrackEntry(in *pb.TrackEntryRequest) (*pb.TrackEntryResponse, error)
- func (g GrpcClientImplementation) UntrackEntry(in *pb.UntrackEntryRequest) (*pb.UntrackEntryResponse, error)
- func (g GrpcClientImplementation) UpdateEntry(in *pb.UpdateTrackedEntryRequest) (*pb.UpdateTrackedEntryResponse, error)
- type GrpcSearch
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 ClientInterface ¶
type ClientInterface interface { GlobalSearch(in *pb.GlobalSearchRequest) (*pb.GlobalSearchResponse, error) CheckUpdates(in *pb.CheckUpdatesRequest) (*pb.CheckUpdatesResponse, error) GetSeriesBooks(in *pb.GetSeriesBooksRequest) (*pb.GetSeriesBooksResponse, error) GetAuthorBooks(in *pb.GetAuthorBooksRequest) (*pb.GetAuthorBooksResponse, error) TrackEntry(in *pb.TrackEntryRequest) (*pb.TrackEntryResponse, error) ListTrackedEntries(in *pb.ListTrackedEntriesRequest) (*pb.ListTrackedEntriesResponse, error) UntrackEntry(in *pb.UntrackEntryRequest) (*pb.UntrackEntryResponse, error) UpdateEntry(in *pb.UpdateTrackedEntryRequest) (*pb.UpdateTrackedEntryResponse, error) GetUserInfo(in *pb.GetUserInfoRequest) (*pb.GetUserInfoResponse, error) ListUsers(in *pb.ListUsersRequest) (*pb.ListUsersResponse, error) }
func NewClient ¶
func NewClient(backend *string) (ClientInterface, error)
type FakeClientImplementation ¶
type FakeClientImplementation struct { }
func (FakeClientImplementation) CheckUpdates ¶
func (f FakeClientImplementation) CheckUpdates(in *pb.CheckUpdatesRequest) (*pb.CheckUpdatesResponse, error)
func (FakeClientImplementation) GetAuthorBooks ¶
func (f FakeClientImplementation) GetAuthorBooks(in *pb.GetAuthorBooksRequest) (*pb.GetAuthorBooksResponse, error)
func (FakeClientImplementation) GetSeriesBooks ¶
func (f FakeClientImplementation) GetSeriesBooks(in *pb.GetSeriesBooksRequest) (*pb.GetSeriesBooksResponse, error)
func (FakeClientImplementation) GetUserInfo ¶
func (f FakeClientImplementation) GetUserInfo(in *pb.GetUserInfoRequest) (*pb.GetUserInfoResponse, error)
func (FakeClientImplementation) GlobalSearch ¶
func (f FakeClientImplementation) GlobalSearch(in *pb.GlobalSearchRequest) (*pb.GlobalSearchResponse, error)
func (FakeClientImplementation) ListTrackedEntries ¶
func (f FakeClientImplementation) ListTrackedEntries(in *pb.ListTrackedEntriesRequest) (*pb.ListTrackedEntriesResponse, error)
func (FakeClientImplementation) ListUsers ¶
func (f FakeClientImplementation) ListUsers(in *pb.ListUsersRequest) (*pb.ListUsersResponse, error)
func (FakeClientImplementation) TrackEntry ¶
func (f FakeClientImplementation) TrackEntry(in *pb.TrackEntryRequest) (*pb.TrackEntryResponse, error)
func (FakeClientImplementation) UntrackEntry ¶
func (f FakeClientImplementation) UntrackEntry(in *pb.UntrackEntryRequest) (*pb.UntrackEntryResponse, error)
func (FakeClientImplementation) UpdateEntry ¶
func (f FakeClientImplementation) UpdateEntry(in *pb.UpdateTrackedEntryRequest) (*pb.UpdateTrackedEntryResponse, error)
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 (g GrpcClientImplementation) CheckUpdates(in *pb.CheckUpdatesRequest) (*pb.CheckUpdatesResponse, error)
func (GrpcClientImplementation) GetAuthorBooks ¶
func (g GrpcClientImplementation) GetAuthorBooks(in *pb.GetAuthorBooksRequest) (*pb.GetAuthorBooksResponse, error)
func (GrpcClientImplementation) GetSeriesBooks ¶
func (g GrpcClientImplementation) GetSeriesBooks(in *pb.GetSeriesBooksRequest) (*pb.GetSeriesBooksResponse, error)
func (GrpcClientImplementation) GetUserInfo ¶
func (g GrpcClientImplementation) GetUserInfo(in *pb.GetUserInfoRequest) (*pb.GetUserInfoResponse, error)
func (GrpcClientImplementation) GlobalSearch ¶
func (g GrpcClientImplementation) GlobalSearch(in *pb.GlobalSearchRequest) (*pb.GlobalSearchResponse, error)
func (GrpcClientImplementation) ListTrackedEntries ¶
func (g GrpcClientImplementation) ListTrackedEntries(in *pb.ListTrackedEntriesRequest) (*pb.ListTrackedEntriesResponse, error)
func (GrpcClientImplementation) ListUsers ¶
func (g GrpcClientImplementation) ListUsers(in *pb.ListUsersRequest) (*pb.ListUsersResponse, error)
func (GrpcClientImplementation) TrackEntry ¶
func (g GrpcClientImplementation) TrackEntry(in *pb.TrackEntryRequest) (*pb.TrackEntryResponse, error)
func (GrpcClientImplementation) UntrackEntry ¶
func (g GrpcClientImplementation) UntrackEntry(in *pb.UntrackEntryRequest) (*pb.UntrackEntryResponse, error)
func (GrpcClientImplementation) UpdateEntry ¶
func (g GrpcClientImplementation) UpdateEntry(in *pb.UpdateTrackedEntryRequest) (*pb.UpdateTrackedEntryResponse, error)
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)
Click to show internal directories.
Click to hide internal directories.