models

package
v0.0.0-...-72abcba Latest Latest
Warning

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

Go to latest
Published: Jul 20, 2021 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

View Source
const (
	New     SchedulerState = "new"
	Build                  = "build"
	Builded                = "builded"
	Error                  = "error"
	Success                = "success"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type Attachment

type Attachment struct {
	Filename string
	Body     []byte
}

func (Attachment) MarshalEasyJSON

func (v Attachment) MarshalEasyJSON(w *jwriter.Writer)

MarshalEasyJSON supports easyjson.Marshaler interface

func (Attachment) MarshalJSON

func (v Attachment) MarshalJSON() ([]byte, error)

MarshalJSON supports json.Marshaler interface

func (*Attachment) UnmarshalEasyJSON

func (v *Attachment) UnmarshalEasyJSON(l *jlexer.Lexer)

UnmarshalEasyJSON supports easyjson.Unmarshaler interface

func (*Attachment) UnmarshalJSON

func (v *Attachment) UnmarshalJSON(data []byte) error

UnmarshalJSON supports json.Unmarshaler interface

type SchedulerNotice

type SchedulerNotice struct {
	Id          int                    `json:"id"`
	Type        string                 `json:"type"`
	To          []string               `json:"to"`
	Bcc         []string               `json:"bcc"`
	Cc          []string               `json:"cc"`
	Subject     string                 `json:"subject"`
	Template    string                 `json:"template"`
	Attachments []Attachment           `json:"attachment"`
	Params      map[string]interface{} `json:"params"`
	Debug       bool                   `json:"debug"`
	Raw         []byte                 `json:"-"`
	Build       []byte                 `json:"build"`
	State       SchedulerState         `json:"state"`
	Error       string                 `json:"error"`
}

func (SchedulerNotice) MarshalEasyJSON

func (v SchedulerNotice) MarshalEasyJSON(w *jwriter.Writer)

MarshalEasyJSON supports easyjson.Marshaler interface

func (SchedulerNotice) MarshalJSON

func (v SchedulerNotice) MarshalJSON() ([]byte, error)

MarshalJSON supports json.Marshaler interface

func (*SchedulerNotice) Save

func (n *SchedulerNotice) Save(db storage.DBStorage) error

func (*SchedulerNotice) UnmarshalEasyJSON

func (v *SchedulerNotice) UnmarshalEasyJSON(l *jlexer.Lexer)

UnmarshalEasyJSON supports easyjson.Unmarshaler interface

func (*SchedulerNotice) UnmarshalJSON

func (v *SchedulerNotice) UnmarshalJSON(data []byte) error

UnmarshalJSON supports json.Unmarshaler interface

type SchedulerState

type SchedulerState string

Jump to

Keyboard shortcuts

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