teams

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 Store

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

func NewStore

func NewStore(scope *gocb.Scope) *Store

func (*Store) AddTeam

func (m *Store) AddTeam(w *Team) error

func (*Store) DeleteTeam

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

func (*Store) EditTeam

func (m *Store) EditTeam(w *Team) error

func (*Store) GetTeamById

func (m *Store) GetTeamById(id uint64) (t Team, err error)

func (*Store) ListActiveTeams

func (m *Store) ListActiveTeams() (t []Team, err error)

func (*Store) ListAllTeams

func (m *Store) ListAllTeams() (t []Team, err error)

type Team

type Team struct {
	Id          uint64 `json:"id"`
	Name        string `json:"name"`
	League      string `json:"league,omitempty"`
	Division    string `json:"division,omitempty"`
	LeagueTable string `json:"league_table,omitempty"`
	Fixtures    string `json:"fixtures,omitempty"`
	Coach       string `json:"coach,omitempty"`
	Physio      string `json:"physio,omitempty"`
	FileName    string `json:"file_name,omitempty"`
	Active      bool   `json:"active"`
	Youth       bool   `json:"youth"`
	Ages        int    `json:"ages"`
}

type TeamRepo

type TeamRepo interface {
	GetTeamById(id uint64) (Team, error)
	ListAllTeams() ([]Team, error)
	ListActiveTeas() ([]Team, error)
	AddTeam(t *Team) error
	EditTeam(t *Team) error
	DeleteTeam(id uint64) error
}

Jump to

Keyboard shortcuts

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