team

package
v0.0.0-...-b1a156a Latest Latest
Warning

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

Go to latest
Published: May 12, 2020 License: Zlib Imports: 3 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// BucketName represents the name of the bucket where this service stores data.
	BucketName = "teams"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type Service

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

Service represents a service for managing baask8s data.

func NewService

func NewService(db *bolt.DB) (*Service, error)

NewService creates a new instance of a service.

func (*Service) CreateTeam

func (service *Service) CreateTeam(team *baasapi.Team) error

CreateTeam creates a new Team.

func (*Service) DeleteTeam

func (service *Service) DeleteTeam(ID baasapi.TeamID) error

DeleteTeam deletes a Team.

func (*Service) Team

func (service *Service) Team(ID baasapi.TeamID) (*baasapi.Team, error)

Team returns a Team by ID

func (*Service) TeamByName

func (service *Service) TeamByName(name string) (*baasapi.Team, error)

TeamByName returns a team by name.

func (*Service) Teams

func (service *Service) Teams() ([]baasapi.Team, error)

Teams return an array containing all the teams.

func (*Service) UpdateTeam

func (service *Service) UpdateTeam(ID baasapi.TeamID, team *baasapi.Team) error

UpdateTeam saves a Team.

Jump to

Keyboard shortcuts

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