data_premium_plan

package
v1.2.3 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jul 17, 2021 License: MIT Imports: 8 Imported by: 0

Documentation

Index

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)

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL