store

package
v0.0.0-...-15f75d5 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type RoomCollection

type RoomCollection struct {
	DB *mongo.Database
}

func (RoomCollection) Create

func (r RoomCollection) Create(c context.Context, room model.Room) error

func (RoomCollection) Del

func (r RoomCollection) Del(c context.Context, roomID string) error

func (RoomCollection) Get

func (r RoomCollection) Get(c context.Context, roomID string) (*model.Room, error)

func (RoomCollection) Update

func (r RoomCollection) Update(c context.Context, room model.Room) error

type Store

type Store struct {
	RoomCollection RoomCollection
}

func New

func New(db *mongo.Database) Store

Jump to

Keyboard shortcuts

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