Documentation ¶
Index ¶
- type DBLoader
- func (l *DBLoader) ExecuteBatches()
- func (l *DBLoader) FetchLikesByPostID(postID types.ID, fieldNames []string) <-chan LikesFetchResult
- func (l *DBLoader) FetchLikesByUserID(userID types.ID, fieldNames []string) <-chan LikesFetchResult
- func (l *DBLoader) FetchPostByID(postID types.ID, fieldNames []string) <-chan PostFetchResult
- func (l *DBLoader) FetchPosts(from types.ID, count types.Int, fieldNames []string) <-chan PostsFetchResult
- func (l *DBLoader) FetchPostsByUserID(userID types.ID, fieldNames []string) <-chan PostsFetchResult
- func (l *DBLoader) FetchUserByID(userID types.ID, fieldNames []string) <-chan UserFetchResult
- func (l *DBLoader) FetchUsers(from types.ID, count types.Int, fieldNames []string) <-chan UsersFetchResult
- type LikeColumns
- type LikesFetchResult
- type PostColumns
- type PostFetchResult
- type PostsFetchResult
- type UserColumns
- type UserFetchResult
- type UsersFetchResult
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type DBLoader ¶
type DBLoader struct {
// contains filtered or unexported fields
}
A DBLoader can fetch a graph of objects from the database
func (*DBLoader) ExecuteBatches ¶
func (l *DBLoader) ExecuteBatches()
func (*DBLoader) FetchLikesByPostID ¶
func (l *DBLoader) FetchLikesByPostID(postID types.ID, fieldNames []string) <-chan LikesFetchResult
func (*DBLoader) FetchLikesByUserID ¶
func (l *DBLoader) FetchLikesByUserID(userID types.ID, fieldNames []string) <-chan LikesFetchResult
func (*DBLoader) FetchPostByID ¶
func (l *DBLoader) FetchPostByID(postID types.ID, fieldNames []string) <-chan PostFetchResult
func (*DBLoader) FetchPosts ¶
func (*DBLoader) FetchPostsByUserID ¶
func (l *DBLoader) FetchPostsByUserID(userID types.ID, fieldNames []string) <-chan PostsFetchResult
func (*DBLoader) FetchUserByID ¶
func (l *DBLoader) FetchUserByID(userID types.ID, fieldNames []string) <-chan UserFetchResult
func (*DBLoader) FetchUsers ¶
type LikeColumns ¶
type LikesFetchResult ¶
type LikesFetchResult struct { Error error Likes []*LikeColumns }
type PostColumns ¶
type PostFetchResult ¶
type PostFetchResult struct { Error error Post *PostColumns }
type PostsFetchResult ¶
type PostsFetchResult struct { Error error Posts []*PostColumns }
type UserFetchResult ¶
type UserFetchResult struct { Error error User *UserColumns }
type UsersFetchResult ¶
type UsersFetchResult struct { Error error Users []*UserColumns }
Click to show internal directories.
Click to hide internal directories.