broadcast

package
v0.50.0 Latest Latest
Warning

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

Go to latest
Published: Dec 14, 2021 License: BSD-3-Clause Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Delete

func Delete(db gorp.SqlExecutor, ID int64) error

Delete removes broadcast from database

func Initialize

func Initialize(ctx context.Context, DBFunc func() *gorp.DbMap)

Initialize starts goroutine for broadcast

func Insert

func Insert(db gorp.SqlExecutor, bc *sdk.Broadcast) error

Insert insert a new worker broadcast in database

func LoadAll

func LoadAll(db gorp.SqlExecutor, userID string) ([]sdk.Broadcast, error)

LoadAll retrieves broadcasts from database

func LoadByID

func LoadByID(db gorp.SqlExecutor, id int64, userID string) (*sdk.Broadcast, error)

LoadByID loads broadcast by id

func MarkAsRead

func MarkAsRead(db gorp.SqlExecutor, broadcastID int64, userID string) error

MarkAsRead mark the broadcast as read for an user

func Update

func Update(db gorp.SqlExecutor, bc *sdk.Broadcast) error

Update update a broadcast

Types

This section is empty.

Jump to

Keyboard shortcuts

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