Documentation ¶
Index ¶
- type BlogDatastore
- type QueryImpl
- func (q *QueryImpl) Filter(filterStr string, value interface{}) repository.Query
- func (q *QueryImpl) GetAll(ctx context.Context) (*model.BlogList, error)
- func (q *QueryImpl) Limit(limit int) repository.Query
- func (q *QueryImpl) Offset(offset int) repository.Query
- func (q *QueryImpl) Order(filedName string) repository.Query
- type UserDatastore
- func (u *UserDatastore) Create(ctx context.Context, user *model.User) (*model.User, error)
- func (u *UserDatastore) CreateMulti(ctx context.Context, users []*model.User) ([]*model.User, error)
- func (u *UserDatastore) Get(ctx context.Context, strID string) (*model.User, error)
- func (u *UserDatastore) GetMulti(ctx context.Context, strIDs []string) ([]*model.User, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type BlogDatastore ¶
type BlogDatastore struct {
// contains filtered or unexported fields
}
func NewBlogDatastore ¶
func NewBlogDatastore(client *datastore.Client) *BlogDatastore
func (*BlogDatastore) CreateMulti ¶
func (*BlogDatastore) NewQuery ¶
func (b *BlogDatastore) NewQuery() repository.Query
type QueryImpl ¶
type QueryImpl struct {
// contains filtered or unexported fields
}
type UserDatastore ¶
type UserDatastore struct {
// contains filtered or unexported fields
}
func NewUserDatastore ¶
func NewUserDatastore(client *datastore.Client) *UserDatastore
func (*UserDatastore) CreateMulti ¶
Click to show internal directories.
Click to hide internal directories.