Documentation ¶ Index ¶ type Manager type Model func NewModel(db *md.Database) Model func (m Model) Find(ctx context.Context, name string) (id primitive.ObjectID, err error) func (m Model) GetByIDs(ctx context.Context, ids []primitive.ObjectID) (res []Manager, err error) func (m Model) GetBySlug(ctx context.Context, slug string) (res Manager, err error) Constants ¶ This section is empty. Variables ¶ This section is empty. Functions ¶ This section is empty. Types ¶ type Manager ¶ type Manager struct { ID primitive.ObjectID `bson:"_id,omitempty"` Slug string `bson:"s,omitempty"` Name string `bson:"n,omitempty"` } type Model ¶ type Model struct { // contains filtered or unexported fields } func NewModel ¶ func NewModel(db *md.Database) Model func (Model) Find ¶ func (m Model) Find( ctx context.Context, name string, ) ( id primitive.ObjectID, err error, ) func (Model) GetByIDs ¶ func (m Model) GetByIDs(ctx context.Context, ids []primitive.ObjectID) (res []Manager, err error) func (Model) GetBySlug ¶ func (m Model) GetBySlug(ctx context.Context, slug string) (res Manager, err error) Source Files ¶ View all Source files manager.go model.go model_find.go model_get_by_ids.go model_get_by_slug.go new_model.go Click to show internal directories. Click to hide internal directories.