mongo

package
v0.8.3 Latest Latest
Warning

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

Go to latest
Published: Mar 22, 2023 License: MPL-2.0 Imports: 18 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func DToM added in v0.8.0

func DToM(d bson.D) bson.M

dToM creates a map from the elements of the D.

func NewApiKeyRepo

func NewApiKeyRepo(store datastore.Store) datastore.APIKeyRepository

func NewConfigRepo added in v0.6.0

func NewConfigRepo(store datastore.Store) datastore.ConfigurationRepository

func NewDeviceRepository added in v0.7.0

func NewDeviceRepository(store datastore.Store) datastore.DeviceRepository

func NewEndpointRepo added in v0.8.0

func NewEndpointRepo(store datastore.Store) datastore.EndpointRepository

func NewEventDeliveryRepository

func NewEventDeliveryRepository(store datastore.Store) datastore.EventDeliveryRepository

func NewEventRepository

func NewEventRepository(store datastore.Store) datastore.EventRepository

func NewOrgInviteRepo added in v0.6.0

func NewOrgInviteRepo(store datastore.Store) datastore.OrganisationInviteRepository

func NewOrgMemberRepo added in v0.6.0

func NewOrgMemberRepo(store datastore.Store) datastore.OrganisationMemberRepository

func NewOrgRepo added in v0.6.0

func NewPortalLinkRepo added in v0.8.0

func NewPortalLinkRepo(store datastore.Store) datastore.PortalLinkRepository

func NewProjectRepo added in v0.8.0

func NewProjectRepo(store datastore.Store) datastore.ProjectRepository

func NewSourceRepo added in v0.6.0

func NewSourceRepo(store datastore.Store) datastore.SourceRepository

func NewSubscriptionRepo added in v0.6.0

func NewSubscriptionRepo(store datastore.Store) datastore.SubscriptionRepository

func NewUserRepo added in v0.6.0

func NewUserRepo(store datastore.Store) datastore.UserRepository

Types

type Client

type Client struct {
	// contains filtered or unexported fields
}

func New

func New(cfg config.Configuration) (*Client, error)

func (*Client) Client

func (c *Client) Client() interface{}

func (*Client) Database added in v0.7.0

func (c *Client) Database() *mongo.Database

func (*Client) Disconnect

func (c *Client) Disconnect(ctx context.Context) error

func (*Client) GetName

func (c *Client) GetName() string

Jump to

Keyboard shortcuts

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