Documentation ¶
Index ¶
- Constants
- func New(cfg config.Configuration) (datastore.DatabaseClient, error)
- func NewApiKeyRepo(client *mongo.Database) datastore.APIKeyRepository
- func NewApplicationRepo(db *mongo.Database) datastore.ApplicationRepository
- func NewConfigRepo(db *mongo.Database) datastore.ConfigurationRepository
- func NewEventDeliveryRepository(db *mongo.Database) datastore.EventDeliveryRepository
- func NewEventRepository(db *mongo.Database) datastore.EventRepository
- func NewGroupRepo(db *mongo.Database) datastore.GroupRepository
- func NewOrgInviteRepo(db *mongo.Database) datastore.OrganisationInviteRepository
- func NewOrgMemberRepo(db *mongo.Database) datastore.OrganisationMemberRepository
- func NewOrgRepo(db *mongo.Database) datastore.OrganisationRepository
- func NewSourceRepo(db *mongo.Database) datastore.SourceRepository
- func NewSubscriptionRepo(db *mongo.Database) datastore.SubscriptionRepository
- func NewUserRepo(db *mongo.Database) datastore.UserRepository
- type Client
- func (c *Client) APIRepo() datastore.APIKeyRepository
- func (c *Client) AppRepo() datastore.ApplicationRepository
- func (c *Client) Client() interface{}
- func (c *Client) ConfigurationRepo() datastore.ConfigurationRepository
- func (c *Client) Disconnect(ctx context.Context) error
- func (c *Client) EventDeliveryRepo() datastore.EventDeliveryRepository
- func (c *Client) EventRepo() datastore.EventRepository
- func (c *Client) GetName() string
- func (c *Client) GroupRepo() datastore.GroupRepository
- func (c *Client) OrganisationInviteRepo() datastore.OrganisationInviteRepository
- func (c *Client) OrganisationMemberRepo() datastore.OrganisationMemberRepository
- func (c *Client) OrganisationRepo() datastore.OrganisationRepository
- func (c *Client) SourceRepo() datastore.SourceRepository
- func (c *Client) SubRepo() datastore.SubscriptionRepository
- func (c *Client) UserRepo() datastore.UserRepository
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 New ¶
func New(cfg config.Configuration) (datastore.DatabaseClient, error)
func NewApiKeyRepo ¶
func NewApiKeyRepo(client *mongo.Database) datastore.APIKeyRepository
func NewApplicationRepo ¶
func NewApplicationRepo(db *mongo.Database) datastore.ApplicationRepository
func NewConfigRepo ¶ added in v0.6.0
func NewConfigRepo(db *mongo.Database) datastore.ConfigurationRepository
func NewEventDeliveryRepository ¶
func NewEventDeliveryRepository(db *mongo.Database) datastore.EventDeliveryRepository
func NewEventRepository ¶
func NewEventRepository(db *mongo.Database) datastore.EventRepository
func NewGroupRepo ¶
func NewGroupRepo(db *mongo.Database) datastore.GroupRepository
func NewOrgInviteRepo ¶ added in v0.6.0
func NewOrgInviteRepo(db *mongo.Database) datastore.OrganisationInviteRepository
func NewOrgMemberRepo ¶ added in v0.6.0
func NewOrgMemberRepo(db *mongo.Database) datastore.OrganisationMemberRepository
func NewOrgRepo ¶ added in v0.6.0
func NewOrgRepo(db *mongo.Database) datastore.OrganisationRepository
func NewSourceRepo ¶ added in v0.6.0
func NewSourceRepo(db *mongo.Database) datastore.SourceRepository
func NewSubscriptionRepo ¶ added in v0.6.0
func NewSubscriptionRepo(db *mongo.Database) datastore.SubscriptionRepository
func NewUserRepo ¶ added in v0.6.0
func NewUserRepo(db *mongo.Database) 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) ConfigurationRepo ¶ added in v0.6.0
func (c *Client) ConfigurationRepo() datastore.ConfigurationRepository
func (*Client) EventDeliveryRepo ¶
func (c *Client) EventDeliveryRepo() datastore.EventDeliveryRepository
func (*Client) EventRepo ¶
func (c *Client) EventRepo() datastore.EventRepository
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 (c *Client) SubRepo() datastore.SubscriptionRepository
func (*Client) UserRepo ¶ added in v0.6.0
func (c *Client) UserRepo() datastore.UserRepository
Click to show internal directories.
Click to hide internal directories.