utils

package
v0.0.0-...-c02468d Latest Latest
Warning

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

Go to latest
Published: Jun 7, 2021 License: MIT Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type MongoDecodedList

type MongoDecodedList struct {
	ID      string   `json:"_id" bson:"_id"`
	Name    string   `json:"name" bson:"name"`
	UserIds []string `json:"users" bson:"users"`
}

type MongoDecodedListsNames

type MongoDecodedListsNames struct {
	Name    string `json:"name" bson:"name"`
	Creator string `json:"creator_id" bson:"creator_id"`
}

type MongoDecodedTwitData

type MongoDecodedTwitData struct {
	ID   string                 `json:"_id" bson:"_id"`
	Date *timestamppb.Timestamp `json:"date" bson:"date"`
	Text string                 `json:"text" bson:"text"`
	User string                 `json:"user_id" bson:"user_id"`
}

type MongoDecodedTwitIds

type MongoDecodedTwitIds struct {
	TwitId string `json:"twit_id" bson:"twit_id"`
}

type MongoDecodedUser

type MongoDecodedUser struct {
	ID       string `json:"_id" bson:"_id"`
	Username string `json:"username" bson:"username"`
	Password string `json:"password" bson:"password"`
	Email    string `json:"email" bson:"email"`
}

type MongoDecodedUsernames

type MongoDecodedUsernames struct {
	Username string `json:"username" bson:"username"`
}

type MongoDecodedUsersIds

type MongoDecodedUsersIds struct {
	Ids []string `json:"users" bson:"users"`
}

type MongoReactionsData

type MongoReactionsData struct {
	ID            string `json:"_id" bson:"_id"`
	LikeCounter   int32  `json:"likes" bson:"likes"`
	RetwitCounter int32  `json:"retwits" bson:"retwits"`
}

Jump to

Keyboard shortcuts

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