sponsor

package
v0.0.0-...-7b086e4 Latest Latest
Warning

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

Go to latest
Published: Jan 8, 2024 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Sponsor struct {
	ID       int         `db:"id" json:"id"`
	Name     string      `db:"name" json:"name"`
	Website  null.String `db:"website" json:"website"`
	FileName null.String `db:"file_name" json:"file_name"`
	Purpose  null.String `db:"purpose" json:"purpose"`
	TeamID   string      `db:"team_id" json:"team_id"`
}

type Store

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

Store stores the dependencies

func NewSponsorRepo

func NewSponsorRepo(db *sqlx.DB) *Store

NewSponsorRepo stores our dependency

func (*Store) AddSponsor

func (s *Store) AddSponsor(ctx context.Context, sponsorParam Sponsor) (Sponsor, error)

func (*Store) DeleteSponsor

func (s *Store) DeleteSponsor(ctx context.Context, sponsorParam Sponsor) error

func (*Store) EditSponsor

func (s *Store) EditSponsor(ctx context.Context, sponsorParam Sponsor) (Sponsor, error)

func (*Store) GetSponsor

func (s *Store) GetSponsor(ctx context.Context, sponsorParam Sponsor) (Sponsor, error)

func (*Store) GetSponsors

func (s *Store) GetSponsors(ctx context.Context) ([]Sponsor, error)

func (*Store) GetSponsorsMinimal

func (s *Store) GetSponsorsMinimal(ctx context.Context) ([]Sponsor, error)

func (*Store) GetSponsorsTeam

func (s *Store) GetSponsorsTeam(ctx context.Context, teamParam team.Team) ([]Sponsor, error)

Jump to

Keyboard shortcuts

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