repo

package
v0.0.2 Latest Latest
Warning

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

Go to latest
Published: Aug 24, 2023 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Module

func Module() fx.Option

Types

type Event

type Event struct {
	fx.In

	DB *bun.DB
}

func (*Event) CreateEvent

func (r *Event) CreateEvent(ctx context.Context, event *model.Event) error

func (*Event) GetEvent

func (r *Event) GetEvent(ctx context.Context, eventID string) (*model.Event, error)

func (*Event) GetEvents

func (r *Event) GetEvents(ctx context.Context) ([]*model.Event, error)

func (*Event) GetEventsByResearchID

func (r *Event) GetEventsByResearchID(ctx context.Context, researchID string) ([]*model.Event, error)

func (*Event) GetPaginatedEventsByResearchID

func (r *Event) GetPaginatedEventsByResearchID(ctx context.Context, researchID string, first int, after string) ([]*model.Event, error)

type Research

type Research struct {
	fx.In

	DB *bun.DB
}

func (*Research) GetAllResearch

func (r *Research) GetAllResearch(ctx context.Context) ([]*model.Research, error)

func (*Research) GetResearchByID

func (r *Research) GetResearchByID(ctx context.Context, id string) (*model.Research, error)

type User

type User struct {
	fx.In

	DB *bun.DB
}

func (*User) CreateUser

func (r *User) CreateUser(ctx context.Context, user *model.User) error

func (*User) GetUserByEmail

func (r *User) GetUserByEmail(ctx context.Context, email string) (*model.User, error)

func (*User) GetUserByID

func (r *User) GetUserByID(ctx context.Context, id string) (*model.User, error)

func (*User) GetUsers

func (r *User) GetUsers(ctx context.Context) ([]*model.User, error)

Jump to

Keyboard shortcuts

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