baask8s

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 = "baask8ss"
)

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) Baask8s

func (service *Service) Baask8s(ID baasapi.Baask8sID) (*baasapi.Baask8s, error)

Baask8s returns an baask8s by ID.

func (*Service) Baask8ss

func (service *Service) Baask8ss() ([]baasapi.Baask8s, error)

Baask8ss return an array containing all the baask8ss.

func (*Service) CreateBaask8s

func (service *Service) CreateBaask8s(baask8s *baasapi.Baask8s) error

CreateBaask8s assign an ID to a new baask8s and saves it.

func (*Service) DeleteBaask8s

func (service *Service) DeleteBaask8s(ID baasapi.Baask8sID) error

DeleteBaask8s deletes an baask8s.

func (*Service) GetNextIdentifier

func (service *Service) GetNextIdentifier() int

GetNextIdentifier returns the next identifier for an baask8s.

func (*Service) UpdateBaask8s

func (service *Service) UpdateBaask8s(ID baasapi.Baask8sID, baask8s *baasapi.Baask8s) error

UpdateBaask8s updates an baask8s.

Jump to

Keyboard shortcuts

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