mongo

package
v0.0.0-...-ccaf0b9 Latest Latest
Warning

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

Go to latest
Published: Apr 6, 2026 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Follow

type Follow struct {
	CreatedAt  time.Time `bson:"created_at"`
	mgo.Index  `bson:"-"`
	UserID     string        `bson:"user_id"`
	UserName   string        `bson:"user_name"`
	ID         bson.ObjectID `bson:"_id"`
	IsSetAdmin bool          `bson:"is_admin"`
}

func NewFollow

func NewFollow() *Follow

func (*Follow) GetId

func (s *Follow) GetId() any

func (*Follow) IsAdmin

func (p *Follow) IsAdmin() bool

func (*Follow) SetId

func (s *Follow) SetId(id any)

func (*Follow) Validate

func (*Follow) Validate() error

type MongoFollow

type MongoFollow interface {
	follow.Store
}

func NewStore

func NewStore(ctx context.Context) (MongoFollow, error)

Jump to

Keyboard shortcuts

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