data

package
v0.0.0-...-7245a53 Latest Latest
Warning

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

Go to latest
Published: Dec 18, 2023 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	// ErrNotFound indicates the desired item was not found
	ErrNotFound = errors.New("not found")
)

Functions

func GetBandMemberCurrent

func GetBandMemberCurrent(bandID string, memberID string) (string, error)

GetBandMemberCurrent returns if the specified member is currently in the band

func GetBandMemberFounder

func GetBandMemberFounder(bandID string, memberID string) (string, error)

GetBandMemberFounder returns if the specified member is a founder

func GetBandMemberInstrument

func GetBandMemberInstrument(bandID string, memberID string, instrumentID string) (string, error)

GetBandMemberInstrument returns the instrument played by the specified member in the specified band

func GetBandMemberInstruments

func GetBandMemberInstruments(bandID string, memberID string) ([]string, error)

GetBandMemberInstruments returns the name of the specified member in the specified band

func GetBandMemberName

func GetBandMemberName(bandID string, memberID string) (string, error)

GetBandMemberName returns the name of the specified member in the specified band

func GetBandName

func GetBandName(bandID string) (string, error)

GetBandName returns the name of the specified band

func GetBandNames

func GetBandNames() ([]string, error)

GetBandNames returns a list of band names

func GetBandYear

func GetBandYear(bandID string) (string, error)

GetBandYear returns the year the specified band formed

Types

type Band

type Band struct {
	Name    string
	Year    int
	Members []Member
}

Band lists the members, name, and other info

func GetBand

func GetBand(id string) (Band, error)

GetBand returns the info about the specified band

func GetBands

func GetBands() ([]Band, error)

GetBands returns a list of bands with all their info

type Member

type Member struct {
	Name        string
	Instruments []string
	Founder     bool
	Current     bool
}

Member describes a band member

func GetBandMember

func GetBandMember(bandID string, memberID string) (Member, error)

GetBandMember returns the specified member in the specified band

func GetBandMembers

func GetBandMembers(bandID string) ([]Member, error)

GetBandMembers returns a list of members in the specified band

Jump to

Keyboard shortcuts

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