messages

package
v0.0.4 Latest Latest
Warning

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

Go to latest
Published: Aug 2, 2022 License: AGPL-3.0 Imports: 8 Imported by: 3

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func InitEmailMessage added in v0.0.3

func InitEmailMessage(m *EmailMessage, st string, template string) error

func InitQueueMessage added in v0.0.3

func InitQueueMessage(m *QueueMessage, t string, st string) error

Types

type EmailMessage

type EmailMessage struct {
	QueueMessage // DERIVED FROM
	// contains filtered or unexported fields
}

func NewEmailMessage added in v0.0.3

func NewEmailMessage(st string, template string) (*EmailMessage, error)

func (*EmailMessage) BCC

func (m *EmailMessage) BCC() string

func (*EmailMessage) CC

func (m *EmailMessage) CC() string

func (*EmailMessage) From

func (m *EmailMessage) From(d string) string

func (*EmailMessage) GetHeaders

func (m *EmailMessage) GetHeaders() *map[string]string

func (*EmailMessage) HasHeader

func (m *EmailMessage) HasHeader(n string) bool

func (*EmailMessage) Header

func (m *EmailMessage) Header(n string) string

func (*EmailMessage) IsValid

func (m *EmailMessage) IsValid() bool

func (*EmailMessage) Locale added in v0.0.2

func (m *EmailMessage) Locale() string

func (EmailMessage) MarshalJSON

func (m EmailMessage) MarshalJSON() ([]byte, error)

MarshalJSON implements json.Marshal

func (*EmailMessage) SetBCC

func (m *EmailMessage) SetBCC(bcc string) (string, error)

func (*EmailMessage) SetCC

func (m *EmailMessage) SetCC(cc string) (string, error)

func (*EmailMessage) SetFrom

func (m *EmailMessage) SetFrom(from string) (string, error)

func (*EmailMessage) SetHeader

func (m *EmailMessage) SetHeader(n string, v string) error

func (*EmailMessage) SetLocale added in v0.0.2

func (m *EmailMessage) SetLocale(l string) (string, error)

func (*EmailMessage) SetTemplate

func (m *EmailMessage) SetTemplate(t string) (string, error)

func (*EmailMessage) SetTo

func (m *EmailMessage) SetTo(to string) (string, error)

func (*EmailMessage) Template

func (m *EmailMessage) Template() string

func (*EmailMessage) To

func (m *EmailMessage) To() string

func (*EmailMessage) UnmarshalJSON

func (m *EmailMessage) UnmarshalJSON(b []byte) error

UnmarshalJSON implements json.Unmarshal

func (*EmailMessage) UnsetHeader

func (m *EmailMessage) UnsetHeader(n string) (string, error)

type InviteMessage added in v0.0.3

type InviteMessage struct {
	EmailMessage // DERIVED FROM
	// contains filtered or unexported fields
}

func NewInviteMessage added in v0.0.3

func NewInviteMessage(template string, code string) (*InviteMessage, error)

func (*InviteMessage) AtUser added in v0.0.3

func (m *InviteMessage) AtUser() string

func (*InviteMessage) ByUser added in v0.0.3

func (m *InviteMessage) ByUser() string

func (*InviteMessage) Code added in v0.0.3

func (m *InviteMessage) Code() string

func (*InviteMessage) Expiration added in v0.0.3

func (m *InviteMessage) Expiration() *time.Time

func (*InviteMessage) ExpirationUTC added in v0.0.3

func (m *InviteMessage) ExpirationUTC() string

func (*InviteMessage) IsValid added in v0.0.3

func (m *InviteMessage) IsValid() bool

func (InviteMessage) MarshalJSON added in v0.0.3

func (m InviteMessage) MarshalJSON() ([]byte, error)

MarshalJSON implements json.Marshal

func (*InviteMessage) Message added in v0.0.3

func (m *InviteMessage) Message() string

func (*InviteMessage) ObjectName added in v0.0.3

func (m *InviteMessage) ObjectName() string

func (*InviteMessage) SetAtUser added in v0.0.3

func (m *InviteMessage) SetAtUser(user string) (string, error)

func (*InviteMessage) SetByUser added in v0.0.3

func (m *InviteMessage) SetByUser(user string) (string, error)

func (*InviteMessage) SetCode added in v0.0.3

func (m *InviteMessage) SetCode(code string) (string, error)

func (*InviteMessage) SetExpiration added in v0.0.3

func (m *InviteMessage) SetExpiration(t time.Time) (*time.Time, error)

func (*InviteMessage) SetMessage added in v0.0.3

func (m *InviteMessage) SetMessage(msg string) (string, error)

func (*InviteMessage) SetObjectName added in v0.0.3

func (m *InviteMessage) SetObjectName(name string) (string, error)

func (*InviteMessage) UnmarshalJSON added in v0.0.3

func (m *InviteMessage) UnmarshalJSON(b []byte) error

UnmarshalJSON implements json.Unmarshal

type QueueAction added in v0.0.4

type QueueAction struct {
	// contains filtered or unexported fields
}

func NewQueueAction added in v0.0.4

func NewQueueAction(t string) (*QueueAction, error)

func NewQueueActionWithGUID added in v0.0.4

func NewQueueActionWithGUID(guid string, t string) (*QueueAction, error)

func (*QueueAction) Created added in v0.0.4

func (m *QueueAction) Created() *time.Time

func (*QueueAction) ErrorCode added in v0.0.4

func (m *QueueAction) ErrorCode() int

func (*QueueAction) ErrorMessage added in v0.0.4

func (m *QueueAction) ErrorMessage() string

func (*QueueAction) ErrorTime added in v0.0.4

func (m *QueueAction) ErrorTime() *time.Time

func (*QueueAction) GetParameters added in v0.0.4

func (m *QueueAction) GetParameters() *map[string]interface{}

func (*QueueAction) GetProperties added in v0.0.4

func (m *QueueAction) GetProperties() *map[string]interface{}

func (*QueueAction) ID added in v0.0.4

func (m *QueueAction) ID() string

func (*QueueAction) IsError added in v0.0.4

func (m *QueueAction) IsError() bool

func (*QueueAction) IsValid added in v0.0.4

func (m *QueueAction) IsValid() bool

func (QueueAction) MarshalJSON added in v0.0.4

func (m QueueAction) MarshalJSON() ([]byte, error)

MarshalJSON implements json.Marshal

func (*QueueAction) Requeue added in v0.0.4

func (m *QueueAction) Requeue() int

func (*QueueAction) RequeueCount added in v0.0.4

func (m *QueueAction) RequeueCount() int

func (*QueueAction) ResetCount added in v0.0.4

func (m *QueueAction) ResetCount() int

func (*QueueAction) SetError added in v0.0.4

func (m *QueueAction) SetError(c int, msg string) error

func (*QueueAction) SetParameters added in v0.0.4

func (m *QueueAction) SetParameters(p *map[string]interface{}) (*map[string]interface{}, error)

func (*QueueAction) SetProperties added in v0.0.4

func (m *QueueAction) SetProperties(p *map[string]interface{}) (*map[string]interface{}, error)

func (*QueueAction) SetType added in v0.0.4

func (m *QueueAction) SetType(t string) (string, error)

func (*QueueAction) Type added in v0.0.4

func (m *QueueAction) Type() string

func (*QueueAction) UnmarshalJSON added in v0.0.4

func (m *QueueAction) UnmarshalJSON(b []byte) error

UnmarshalJSON implements json.Unmarshal

func (*QueueAction) Version added in v0.0.4

func (m *QueueAction) Version() int

type QueueMessage

type QueueMessage struct {
	// contains filtered or unexported fields
}

func NewQueueMessage added in v0.0.3

func NewQueueMessage(t string, st string) (*QueueMessage, error)

func (*QueueMessage) Created

func (m *QueueMessage) Created() *time.Time

func (*QueueMessage) ErrorCode

func (m *QueueMessage) ErrorCode() int

func (*QueueMessage) ErrorMessage

func (m *QueueMessage) ErrorMessage() string

func (*QueueMessage) ErrorTime

func (m *QueueMessage) ErrorTime() *time.Time

func (*QueueMessage) GetParameters added in v0.0.2

func (m *QueueMessage) GetParameters() *map[string]interface{}

func (*QueueMessage) HasParameter added in v0.0.2

func (m *QueueMessage) HasParameter(n string) bool

func (*QueueMessage) ID

func (m *QueueMessage) ID() string

func (*QueueMessage) IsError

func (m *QueueMessage) IsError() bool

func (*QueueMessage) IsValid

func (m *QueueMessage) IsValid() bool

func (QueueMessage) MarshalJSON

func (m QueueMessage) MarshalJSON() ([]byte, error)

MarshalJSON implements json.Marshal

func (*QueueMessage) Parameter added in v0.0.2

func (m *QueueMessage) Parameter(n string) interface{}

func (*QueueMessage) Requeue

func (m *QueueMessage) Requeue() int

func (*QueueMessage) RequeueCount

func (m *QueueMessage) RequeueCount() int

func (*QueueMessage) ResetCount

func (m *QueueMessage) ResetCount() int

func (*QueueMessage) SetError

func (m *QueueMessage) SetError(c int, msg string) error

func (*QueueMessage) SetID

func (m *QueueMessage) SetID(id string) (string, error)

func (*QueueMessage) SetIntParameter added in v0.0.2

func (m *QueueMessage) SetIntParameter(n string, v int) error

func (*QueueMessage) SetParameter added in v0.0.2

func (m *QueueMessage) SetParameter(n string, v interface{}) error

func (*QueueMessage) SetSubType added in v0.0.2

func (m *QueueMessage) SetSubType(s string) (string, error)

func (*QueueMessage) SetType added in v0.0.2

func (m *QueueMessage) SetType(t string) (string, error)

func (*QueueMessage) SetVersion

func (m *QueueMessage) SetVersion(v int) (int, error)

func (*QueueMessage) SubType added in v0.0.2

func (m *QueueMessage) SubType() string

func (*QueueMessage) Type added in v0.0.2

func (m *QueueMessage) Type() string

func (*QueueMessage) UnmarshalJSON

func (m *QueueMessage) UnmarshalJSON(b []byte) error

UnmarshalJSON implements json.Unmarshal

func (*QueueMessage) UnsetParameter added in v0.0.2

func (m *QueueMessage) UnsetParameter(n string) (interface{}, error)

func (*QueueMessage) Version

func (m *QueueMessage) Version() int

Jump to

Keyboard shortcuts

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