sponsors

package
v0.0.0-...-8bc6207 Latest Latest
Warning

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

Go to latest
Published: Feb 16, 2023 License: MIT Imports: 4 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       uint64 `json:"id"`
	Name     string `json:"name"`
	Website  string `json:"website"`
	FileName string `json:"file_name,omitempty"`
	Purpose  string `json:"purpose,omitempty"`
	Team     string `json:"team,omitempty"`
}

type SponsorRepo

type SponsorRepo interface {
	GetSponsorById(id uint64) (Sponsor, error)
	ListAllSponsors() ([]Sponsor, error)
	ListAllSponsorsMinimal() ([]Sponsor, error)
	ListAllSponsorsByTeamId(teamId string) ([]Sponsor, error)
	AddSponsor(s *Sponsor) error
	EditSponsor(s *Sponsor) error
	DeleteSponsor(id uint64) error
}

type Store

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

func NewStore

func NewStore(scope *gocb.Scope) *Store

func (*Store) AddSponsor

func (m *Store) AddSponsor(w *Sponsor) error

func (*Store) DeleteSponsor

func (m *Store) DeleteSponsor(id uint64) error

func (*Store) EditSponsor

func (m *Store) EditSponsor(w *Sponsor) error

func (*Store) GetSponsorById

func (m *Store) GetSponsorById(id uint64) (w Sponsor, err error)

func (*Store) ListAllSponsors

func (m *Store) ListAllSponsors() (w []Sponsor, err error)

func (*Store) ListAllSponsorsByTeamId

func (m *Store) ListAllSponsorsByTeamId(teamId string) (w []Sponsor, err error)

func (*Store) ListAllSponsorsMinimal

func (m *Store) ListAllSponsorsMinimal() (w []Sponsor, err error)

Jump to

Keyboard shortcuts

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