Documentation ¶
Index ¶
- func NewProfileCollectionName() (key.Key, error)
- func NewProfileKey(id string) (key.Key, error)
- type Dao
- type PrivateDao
- func (d *PrivateDao) GetAllProfiles(platformId string, channel string, page, size int64) ([]*pb.Profile, error)
- func (d *PrivateDao) GetProfileByNickname(platformId string, channel string, name string, isRegex bool, page, size int64) ([]*pb.Profile, error)
- func (d *PrivateDao) GetProfiles(platformId, channel string, uid ...string) ([]*pb.Profile, error)
- func (d *PrivateDao) GetProfilesByAccount(val string) (*pb.Profile, error)
- func (d *PrivateDao) Init(db *mongo.Database) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type PrivateDao ¶
type PrivateDao struct {
// contains filtered or unexported fields
}
func (*PrivateDao) GetAllProfiles ¶
func (d *PrivateDao) GetAllProfiles( platformId string, channel string, page, size int64) ([]*pb.Profile, error)
GetAllProfiles get all profiles by page https://www.mongodb.com/docs/atlas/atlas-search/tutorial/pagination-tutorial/
func (*PrivateDao) GetProfileByNickname ¶
func (d *PrivateDao) GetProfileByNickname( platformId string, channel string, name string, isRegex bool, page, size int64, ) ([]*pb.Profile, error)
GetProfileByNickname find profile name by regex https://www.mongodb.com/docs/manual/reference/operator/query/regex/
func (*PrivateDao) GetProfiles ¶
GetProfiles get profile by uid
func (*PrivateDao) GetProfilesByAccount ¶
func (d *PrivateDao) GetProfilesByAccount(val string) (*pb.Profile, error)
Click to show internal directories.
Click to hide internal directories.