data

package
v0.0.0-...-fe01dad Latest Latest
Warning

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

Go to latest
Published: Aug 26, 2024 License: AGPL-3.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Configuration

type Configuration struct {
	Id       []byte
	Theme    config.Theme
	Bubble   config.Bubble
	Cta      config.Cta
	VideoUrl string
}

type Instance

type Instance struct {
	Id             int32
	ExternalId     []byte
	Videos         map[int32]Video
	Configurations map[int32]Configuration
}

type NewConfiguration

type NewConfiguration struct {
	VideoUrl string
	Theme    config.Theme
	Bubble   config.Bubble
	Cta      config.Cta
}

type NewVideo

type NewVideo struct {
	Weight int32
	URL    string
}

type Store

type Store struct {
	DatabaseUrl string
	DriverName  string
}

func NewStore

func NewStore() (Store, error)

func (*Store) CreateConfiguration

func (s *Store) CreateConfiguration(configuration NewConfiguration) (Configuration, error)

func (*Store) LoadConfig

func (s *Store) LoadConfig(id []byte) (Configuration, error)

func (*Store) UpdateConfiguration

func (s *Store) UpdateConfiguration(id []byte, configuration NewConfiguration) (Configuration, error)

type Video

type Video struct {
	Id              int32
	Weight          int32
	ConfigurationId int32
	URL             string
}

Jump to

Keyboard shortcuts

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