model

package
v0.0.0-...-6c6c869 Latest Latest
Warning

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

Go to latest
Published: Sep 6, 2021 License: MIT Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Content

type Content struct {
	ID   string      `mapstructure:"id"`
	Type ContentType `mapstructure:"type"`
	Text *string     `mapstructure:"text"`
	Path string      `mapstructure:"path"`
}

type ContentType

type ContentType string
const (
	ContentTypeImage     ContentType = "image"
	ContentTypeFile      ContentType = "file"
	ContentTypeFileLocal ContentType = "file-local"
)

type Job

type Job struct {
	ID           string    `mapstructure:"id"`
	Cron         string    `mapstructure:"cron"`
	SlackChannel string    `mapstructure:"slack_channel"`
	ContentList  []Content `mapstructure:"content_list"`
}

type JobLog

type JobLog struct {
	IDJob       int       `mapstructure:"id_job"`
	PerformedAt time.Time `mapstructure:"performed_at"`
	IDContent   int       `mapstructure:"id_content"`
}

Jump to

Keyboard shortcuts

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