rooms

package
v0.0.0-...-96f436b Latest Latest
Warning

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

Go to latest
Published: May 19, 2024 License: GPL-3.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var ErrNotFound = errors.New("room not found")

Functions

This section is empty.

Types

type Config

type Config struct {
	BucketName string `yaml:"bucket_name"`
}

type Room

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

func NewRoom

func NewRoom(name string, token *spotify.Token) *Room

func (Room) MarshalJSON

func (r Room) MarshalJSON() ([]byte, error)

func (Room) Name

func (r Room) Name() string

func (Room) Token

func (r Room) Token() *spotify.Token

func (*Room) UnmarshalJSON

func (r *Room) UnmarshalJSON(data []byte) error

type Store

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

func NewStore

func NewStore(db *bolt.DB, cfg *Config) *Store

func (*Store) Get

func (store *Store) Get(key uuid.UUID, log *trace.Trace) (*Room, error)

func (*Store) Put

func (store *Store) Put(key uuid.UUID, room Room, log *trace.Trace) error

Jump to

Keyboard shortcuts

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