mongo

package
v0.6.0-rc.3 Latest Latest
Warning

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

Go to latest
Published: Jul 4, 2022 License: MPL-2.0 Imports: 17 Imported by: 0

Documentation

Index

Constants

View Source
const (
	ConfigCollection              = "configurations"
	GroupCollection               = "groups"
	OrganisationCollection        = "organisations"
	OrganisationInvitesCollection = "organisation_invites"
	OrganisationMembersCollection = "organisation_members"
	AppCollection                 = "applications"
	EventCollection               = "events"
	SourceCollection              = "sources"
	UserCollection                = "users"
	SubscriptionCollection        = "subscriptions"
)
View Source
const APIKeyCollection = "apiKeys"
View Source
const (
	EventDeliveryCollection = "eventdeliveries"
)

Variables

This section is empty.

Functions

func NewApiKeyRepo

func NewApiKeyRepo(client *mongo.Database) datastore.APIKeyRepository

func NewConfigRepo added in v0.6.0

func NewEventDeliveryRepository

func NewEventDeliveryRepository(db *mongo.Database) datastore.EventDeliveryRepository

func NewEventRepository

func NewEventRepository(db *mongo.Database, store datastore.Store) datastore.EventRepository

func NewGroupRepo

func NewGroupRepo(db *mongo.Database, store datastore.Store) datastore.GroupRepository

func NewOrgInviteRepo added in v0.6.0

func NewOrgMemberRepo added in v0.6.0

func NewOrgRepo added in v0.6.0

func NewSourceRepo added in v0.6.0

func NewSourceRepo(db *mongo.Database, store datastore.Store) datastore.SourceRepository

func NewSubscriptionRepo added in v0.6.0

func NewSubscriptionRepo(db *mongo.Database, store datastore.Store) datastore.SubscriptionRepository

func NewUserRepo added in v0.6.0

func NewUserRepo(db *mongo.Database, store datastore.Store) datastore.UserRepository

Types

type Client

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

func (*Client) APIRepo

func (c *Client) APIRepo() datastore.APIKeyRepository

func (*Client) AppRepo

func (c *Client) AppRepo() datastore.ApplicationRepository

func (*Client) Client

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

func (*Client) ConfigurationRepo added in v0.6.0

func (c *Client) ConfigurationRepo() datastore.ConfigurationRepository

func (*Client) Disconnect

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

func (*Client) EventDeliveryRepo

func (c *Client) EventDeliveryRepo() datastore.EventDeliveryRepository

func (*Client) EventRepo

func (c *Client) EventRepo() datastore.EventRepository

func (*Client) GetName

func (c *Client) GetName() string

func (*Client) GroupRepo

func (c *Client) GroupRepo() datastore.GroupRepository

func (*Client) OrganisationInviteRepo added in v0.6.0

func (c *Client) OrganisationInviteRepo() datastore.OrganisationInviteRepository

func (*Client) OrganisationMemberRepo added in v0.6.0

func (c *Client) OrganisationMemberRepo() datastore.OrganisationMemberRepository

func (*Client) OrganisationRepo added in v0.6.0

func (c *Client) OrganisationRepo() datastore.OrganisationRepository

func (*Client) SourceRepo added in v0.6.0

func (c *Client) SourceRepo() datastore.SourceRepository

func (*Client) SubRepo added in v0.6.0

func (*Client) UserRepo added in v0.6.0

func (c *Client) UserRepo() datastore.UserRepository

Jump to

Keyboard shortcuts

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