dukun

package
v0.0.0-...-d71c2e5 Latest Latest
Warning

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

Go to latest
Published: Apr 20, 2024 License: GPL-3.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Dependency

type Dependency struct {
	Mongo  *mongo.Client
	DBName string
}

func (*Dependency) GetAllDukun

func (d *Dependency) GetAllDukun(ctx context.Context) ([]Dukun, error)

type Dukun

type Dukun struct {
	UserID    int64     `json:"userID" bson:"userID"`
	FirstName string    `json:"firstName" bson:"firstName"`
	LastName  string    `json:"lastName" bson:"lastName"`
	UserName  string    `json:"userName" bson:"userName"`
	Points    int       `json:"points" bson:"points"`
	Master    bool      `json:"master" bson:"master"`
	CreatedAt time.Time `json:"createdAt" bson:"createdAt"`
	UpdatedAt time.Time `json:"updatedAt" bson:"updatedAt"`
}

Jump to

Keyboard shortcuts

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