Documentation ¶ Index ¶ type Model func NewModel(db *m.Database) Model func (m Model) GetByUserID(ctx context.Context, userID primitive.ObjectID) (premium bool, premiumDeadline time.Time, err error) func (m Model) Renew(ctx context.Context, userID primitive.ObjectID, monthAmount uint32) (err error) Constants ¶ This section is empty. Variables ¶ This section is empty. Functions ¶ This section is empty. Types ¶ type Model ¶ type Model struct { // contains filtered or unexported fields } func NewModel ¶ func NewModel(db *m.Database) Model func (Model) GetByUserID ¶ func (m Model) GetByUserID( ctx context.Context, userID primitive.ObjectID, ) ( premium bool, premiumDeadline time.Time, err error, ) func (Model) Renew ¶ func (m Model) Renew(ctx context.Context, userID primitive.ObjectID, monthAmount uint32) (err error) Source Files ¶ View all Source files data_premium_plan.go model.go model_get_by_user_id.go model_renew.go new_model.go Click to show internal directories. Click to hide internal directories.