Documentation ¶
Index ¶
- type PersonalAccessToken
- func (p PersonalAccessToken) Create(ctx context.Context, model *models.PersonalAccessToken) (*models.PersonalAccessToken, error)
- func (p PersonalAccessToken) Find(ctx context.Context, filter any) (models.PersonalAccessTokens, error)
- func (p PersonalAccessToken) FindOne(ctx context.Context, filter any) (*models.PersonalAccessToken, error)
- func (p PersonalAccessToken) Update(ctx context.Context, model *models.PersonalAccessToken) (*models.PersonalAccessToken, error)
- type Task
- func (t *Task) Create(ctx context.Context, model *models.Task) (*models.Task, error)
- func (t *Task) Find(ctx context.Context, filter any, limit int, skip int) (int64, models.Tasks, error)
- func (t *Task) FindOneById(ctx context.Context, id string) (*models.Task, error)
- func (t *Task) Update(ctx context.Context, model *models.Task) (*models.Task, error)
- type User
- func (u *User) Create(ctx context.Context, model *models.User) (*models.User, error)
- func (u *User) Find(ctx context.Context, filter any, limit int, skip int) (int64, models.Users, error)
- func (u *User) FindOne(ctx context.Context, filter any) (*models.User, error)
- func (u *User) Update(ctx context.Context, model *models.User) (*models.User, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type PersonalAccessToken ¶
type PersonalAccessToken struct {
// contains filtered or unexported fields
}
PersonalAccessToken represents the mapper used for interacting with PersonalAccessToken documents.
func NewPersonalAccessToken ¶
func NewPersonalAccessToken(client *mongo.Client) *PersonalAccessToken
func (PersonalAccessToken) Create ¶
func (p PersonalAccessToken) Create(ctx context.Context, model *models.PersonalAccessToken) (*models.PersonalAccessToken, error)
func (PersonalAccessToken) Find ¶
func (p PersonalAccessToken) Find(ctx context.Context, filter any) (models.PersonalAccessTokens, error)
func (PersonalAccessToken) FindOne ¶
func (p PersonalAccessToken) FindOne(ctx context.Context, filter any) (*models.PersonalAccessToken, error)
func (PersonalAccessToken) Update ¶
func (p PersonalAccessToken) Update(ctx context.Context, model *models.PersonalAccessToken) (*models.PersonalAccessToken, error)
type Task ¶
type Task struct {
// contains filtered or unexported fields
}
Task represents the mapper used for interacting with Task documents.
func (*Task) FindOneById ¶
Click to show internal directories.
Click to hide internal directories.