messages

package
v0.0.0-...-cf413bb Latest Latest
Warning

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

Go to latest
Published: Mar 5, 2023 License: AGPL-3.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Delete

func Delete(db *sql.DB, profileId string, messageIds ...string) error

Types

type Message

type Message struct {
	Id          string `json:"id"`
	Sender      string `json:"sender"`
	Target      string `json:"target"`
	Received    string `json:"received"`
	URL         string `json:"url"`
	ContentType string `json:"content_type"`
}

inbox types

func Create

func Create(db *sql.DB, user, target, filename, filetype string) (Message, error)

createMessage adds a message record to the appropriate inboxes based on the name

func List

func List(db *sql.DB, profile string) ([]Message, error)

Jump to

Keyboard shortcuts

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