mongo

package
v0.4.15 Latest Latest
Warning

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

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

Documentation

Index

Constants

View Source
const (
	GroupCollection = "groups"
	AppCollections  = "applications"
	EventCollection = "events"
)
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 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

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) 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

Jump to

Keyboard shortcuts

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