Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Conn ¶
func (*Conn) Collection ¶
func (c *Conn) Collection() *mongo.Collection
func (*Conn) CreateUser ¶
CreateUser ... данный мметод принемает и отдает одну и тожу ссылку, ... но сделал это для удобства и большей явности
type Spotify ¶
type Spotify struct {
Token *SpotifyToken `json:"token,omitempty" bson:"token,omitempty"`
}
type SpotifyToken ¶
type User ¶
type User struct { Id primitive.ObjectID `json:"id" bson:"_id,omitempty"` Telegram Telegram `json:"telegram,omitempty" bson:"telegram,omitempty"` Spotify Spotify `json:"spotify,omitempty" bson:"spotify,omitempty"` CreateAt time.Time `json:"create_at,omitempty" bson:"create_at,omitempty"` UpdateAt time.Time `json:"update_at,omitempty" bson:"update_at,omitempty"` Active bool `json:"active,omitempty" bson:"active,omitempty"` }
Click to show internal directories.
Click to hide internal directories.