Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type MongoDBRepository ¶
type MongoDBRepository struct {
// contains filtered or unexported fields
}
func NewMongoDBRepo ¶
func NewMongoDBRepo(session *mgo.Session) *MongoDBRepository
func (*MongoDBRepository) Create ¶
func (r *MongoDBRepository) Create(ctx context.Context, noti *types.PushNotification) error
func (*MongoDBRepository) LoadNoti ¶
func (r *MongoDBRepository) LoadNoti(ctx context.Context, userID string) ([]*types.PushNotification, error)
type RepoProvider ¶
type Service ¶
type Service struct {
Repo RepoProvider
}
func NewService ¶
func NewService(repo RepoProvider) *Service
func (*Service) CreateNotificaion ¶
func (*Service) LoadNotiUser ¶
Click to show internal directories.
Click to hide internal directories.