event_repo

package
v0.0.0-...-e71a76f Latest Latest
Warning

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

Go to latest
Published: Jan 30, 2025 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Client

type Client struct {
	base_clients.ResourceClient[model.Event]
}

Client is the client for the event model. It is used to query the database for events, and extends model.ResourceClient.

func New

func New() *Client

New returns a new event client.

func (*Client) AddExtraFilter

func (client *Client) AddExtraFilter(filters bson.D) *Client

AddExtraFilter adds an extra custom filter to the client.

func (*Client) Create

func (client *Client) Create(id string, params *model.EventCreateParams) error

Create creates a new event in the database.

func (*Client) WithPagination

func (client *Client) WithPagination(page, pageSize int) *Client

WithPagination sets the pagination for the client.

Jump to

Keyboard shortcuts

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