Documentation
¶
Index ¶
- func InitEmailMessage(m *EmailMessage, guid string, et string, template string) error
- func InitInviteMessage(m *InviteMessage, guid string, ot string, code string) error
- func InitQueueAction(o *ActionMessage, guid string, t string) error
- type ActionMessage
- func (o *ActionMessage) IsValid() bool
- func (o *ActionMessage) Params() *maps.MapWrapper
- func (o *ActionMessage) Props() *maps.MapWrapper
- func (o *ActionMessage) SetParameter(path string, v interface{}) error
- func (o *ActionMessage) SetParameters(m map[string]interface{}) error
- func (o *ActionMessage) SetProperties(m map[string]interface{}) error
- func (o *ActionMessage) SetProperty(path string, v interface{}) error
- func (o *ActionMessage) SetStringParameter(path string, s string, clear bool) error
- func (o *ActionMessage) SetStringProperty(path string, s string, clear bool) error
- type ActionMessageContent
- func (o *ActionMessageContent) IsValid() bool
- func (o *ActionMessageContent) MarshalJSON() ([]byte, error)
- func (o *ActionMessageContent) SetParameters(m map[string]interface{})
- func (o *ActionMessageContent) SetProperties(m map[string]interface{})
- func (o *ActionMessageContent) SetType(t string)
- func (o *ActionMessageContent) Type() string
- type EmailMessage
- func (m *EmailMessage) BCC() string
- func (m *EmailMessage) CC() string
- func (m *EmailMessage) ClearHeader(n string) error
- func (m *EmailMessage) ClearHeaders() error
- func (m *EmailMessage) From(d string) string
- func (m *EmailMessage) GetHeaders() map[string]interface{}
- func (m *EmailMessage) HasHeader(n string) bool
- func (m *EmailMessage) Header(n string) string
- func (m *EmailMessage) IsValid() bool
- func (m *EmailMessage) Locale() string
- func (m *EmailMessage) SetBCC(bcc string) error
- func (m *EmailMessage) SetCC(cc string) error
- func (m *EmailMessage) SetFrom(from string) error
- func (m *EmailMessage) SetHeader(n string, v string) error
- func (m *EmailMessage) SetLocale(l string) error
- func (m *EmailMessage) SetTemplate(t string) error
- func (m *EmailMessage) SetTo(to string) error
- func (m *EmailMessage) Template() string
- func (m *EmailMessage) To() string
- type IActionMessage
- type IEmailMessage
- type IInviteEmailMessage
- type IMessage
- type InviteMessage
- func (m *InviteMessage) ByEmail() string
- func (m *InviteMessage) ByUser() string
- func (m *InviteMessage) Code() string
- func (m *InviteMessage) Expiration() *time.Time
- func (m *InviteMessage) IsValid() bool
- func (m *InviteMessage) Message() string
- func (m *InviteMessage) ObjectName() string
- func (m *InviteMessage) SetByEmail(email string) error
- func (m *InviteMessage) SetByUser(name string) error
- func (m *InviteMessage) SetCode(code string) error
- func (m *InviteMessage) SetExpiration(t time.Time) error
- func (m *InviteMessage) SetMessage(msg string) error
- func (m *InviteMessage) SetObjectName(name string) error
- func (m *InviteMessage) SetStoreName(name string) error
- func (m *InviteMessage) StoreName() string
- type QueueMessage
- type QueueMessageHeader
- func (o *QueueMessageHeader) Created() time.Time
- func (o *QueueMessageHeader) ID() string
- func (o *QueueMessageHeader) IsValid() bool
- func (o *QueueMessageHeader) MarshalJSON() ([]byte, error)
- func (o *QueueMessageHeader) Parent() string
- func (o *QueueMessageHeader) SetID(id string)
- func (o *QueueMessageHeader) SetParent(id string)
- func (o *QueueMessageHeader) SetProperties(m map[string]interface{})
- func (o *QueueMessageHeader) Status() *QueueMessageStatus
- func (o *QueueMessageHeader) Version() int
- type QueueMessageStatus
- func (o *QueueMessageStatus) ErrorCode() int
- func (o *QueueMessageStatus) ErrorMessage() string
- func (o *QueueMessageStatus) Extras() map[string]interface{}
- func (o *QueueMessageStatus) InError() bool
- func (o *QueueMessageStatus) MarshalJSON() ([]byte, error)
- func (o *QueueMessageStatus) SetError(code int, en string, i18n string)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func InitEmailMessage ¶ added in v0.0.3
func InitEmailMessage(m *EmailMessage, guid string, et string, template string) error
func InitInviteMessage ¶ added in v0.0.5
func InitInviteMessage(m *InviteMessage, guid string, ot string, code string) error
func InitQueueAction ¶ added in v0.0.5
func InitQueueAction(o *ActionMessage, guid string, t string) error
Types ¶
type ActionMessage ¶ added in v0.0.5
type ActionMessage struct {
QueueMessage
}
func NewQueueActionMessage ¶ added in v0.0.10
func NewQueueActionMessage(t string) (*ActionMessage, error)
func NewQueueActionWithGUID ¶ added in v0.0.4
func NewQueueActionWithGUID(guid string, t string) (*ActionMessage, error)
func (*ActionMessage) IsValid ¶ added in v0.0.10
func (o *ActionMessage) IsValid() bool
func (*ActionMessage) Params ¶ added in v0.0.10
func (o *ActionMessage) Params() *maps.MapWrapper
func (*ActionMessage) Props ¶ added in v0.0.10
func (o *ActionMessage) Props() *maps.MapWrapper
func (*ActionMessage) SetParameter ¶ added in v0.0.5
func (o *ActionMessage) SetParameter(path string, v interface{}) error
func (*ActionMessage) SetParameters ¶ added in v0.0.5
func (o *ActionMessage) SetParameters(m map[string]interface{}) error
func (*ActionMessage) SetProperties ¶ added in v0.0.5
func (o *ActionMessage) SetProperties(m map[string]interface{}) error
func (*ActionMessage) SetProperty ¶ added in v0.0.5
func (o *ActionMessage) SetProperty(path string, v interface{}) error
func (*ActionMessage) SetStringParameter ¶ added in v0.0.10
func (o *ActionMessage) SetStringParameter(path string, s string, clear bool) error
func (*ActionMessage) SetStringProperty ¶ added in v0.0.10
func (o *ActionMessage) SetStringProperty(path string, s string, clear bool) error
type ActionMessageContent ¶ added in v0.0.10
type ActionMessageContent struct {
// contains filtered or unexported fields
}
func GetActionMessageContent ¶ added in v0.0.10
func GetActionMessageContent(o *ActionMessage) *ActionMessageContent
func NewActionMessageContent ¶ added in v0.0.10
func NewActionMessageContent(t string) *ActionMessageContent
func (*ActionMessageContent) IsValid ¶ added in v0.0.10
func (o *ActionMessageContent) IsValid() bool
func (*ActionMessageContent) MarshalJSON ¶ added in v0.0.10
func (o *ActionMessageContent) MarshalJSON() ([]byte, error)
func (*ActionMessageContent) SetParameters ¶ added in v0.0.10
func (o *ActionMessageContent) SetParameters(m map[string]interface{})
func (*ActionMessageContent) SetProperties ¶ added in v0.0.10
func (o *ActionMessageContent) SetProperties(m map[string]interface{})
func (*ActionMessageContent) SetType ¶ added in v0.0.10
func (o *ActionMessageContent) SetType(t string)
func (*ActionMessageContent) Type ¶ added in v0.0.10
func (o *ActionMessageContent) Type() string
type EmailMessage ¶
type EmailMessage struct {
ActionMessage // DERIVED FROM
}
func NewEmailMessage ¶ added in v0.0.3
func NewEmailMessage(st string, template string) (*EmailMessage, error)
func NewEmailMessageWithGUID ¶ added in v0.0.5
func NewEmailMessageWithGUID(guid string, st string, template string) (*EmailMessage, error)
func (*EmailMessage) BCC ¶
func (m *EmailMessage) BCC() string
func (*EmailMessage) CC ¶
func (m *EmailMessage) CC() string
func (*EmailMessage) ClearHeader ¶ added in v0.0.5
func (m *EmailMessage) ClearHeader(n string) error
func (*EmailMessage) ClearHeaders ¶ added in v0.0.5
func (m *EmailMessage) ClearHeaders() error
func (*EmailMessage) From ¶
func (m *EmailMessage) From(d string) string
func (*EmailMessage) GetHeaders ¶
func (m *EmailMessage) GetHeaders() map[string]interface{}
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) SetBCC ¶
func (m *EmailMessage) SetBCC(bcc string) error
func (*EmailMessage) SetCC ¶
func (m *EmailMessage) SetCC(cc string) error
func (*EmailMessage) SetFrom ¶
func (m *EmailMessage) SetFrom(from string) error
func (*EmailMessage) SetLocale ¶ added in v0.0.2
func (m *EmailMessage) SetLocale(l string) error
func (*EmailMessage) SetTemplate ¶
func (m *EmailMessage) SetTemplate(t string) error
func (*EmailMessage) SetTo ¶
func (m *EmailMessage) SetTo(to string) error
func (*EmailMessage) Template ¶
func (m *EmailMessage) Template() string
func (*EmailMessage) To ¶
func (m *EmailMessage) To() string
type IActionMessage ¶ added in v0.0.5
type IActionMessage interface { IMessage Version() int HasParameter(path string) bool GetParameter(path string) (interface{}, error) SetParameter(path string, v interface{}, force bool) error ClearParameter(path string) error GetParameters() map[string]interface{} SetParameters(p map[string]interface{}) error HasProperty(path string) bool GetProperty(path string) (interface{}, error) SetProperty(path string, v interface{}, force bool) error ClearProperty(path string) error GetProperties() map[string]interface{} SetProperties(p map[string]interface{}) error }
type IEmailMessage ¶ added in v0.0.5
type IEmailMessage interface { IActionMessage Template() string SetTemplate(t string) error Locale() string SetLocale(l string) error To() string SetTo(to string) error From(d string) string SetFrom(from string) error CC() string SetCC(cc string) error BCC() string SetBCC(bcc string) error HasHeader(n string) bool Header(n string) string SetHeader(n string, v string) error ClearHeader(n string) error ClearHeaders() error }
type IInviteEmailMessage ¶ added in v0.0.5
type IInviteEmailMessage interface { IEmailMessage Code() string SetCode(code string) error ByUser() string SetByUser(name string) error ByEmail() string SetByEmail(email string) error Message() string SetMessage(msg string) error ObjectName() string SetObjectName(name string) error Expiration() *time.Time SetExpiration(t time.Time) error }
type InviteMessage ¶ added in v0.0.3
type InviteMessage struct {
EmailMessage // DERIVED FROM
}
func NewInviteMessage ¶ added in v0.0.3
func NewInviteMessage(ot string, code string) (*InviteMessage, error)
func NewInviteMessageWithGUID ¶ added in v0.0.5
func NewInviteMessageWithGUID(guid string, ot string, code string) (*InviteMessage, error)
func (*InviteMessage) ByEmail ¶ added in v0.0.5
func (m *InviteMessage) ByEmail() 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) IsValid ¶ added in v0.0.3
func (m *InviteMessage) IsValid() bool
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) SetByEmail ¶ added in v0.0.5
func (m *InviteMessage) SetByEmail(email string) error
func (*InviteMessage) SetByUser ¶ added in v0.0.3
func (m *InviteMessage) SetByUser(name string) error
func (*InviteMessage) SetCode ¶ added in v0.0.3
func (m *InviteMessage) SetCode(code string) error
func (*InviteMessage) SetExpiration ¶ added in v0.0.3
func (m *InviteMessage) SetExpiration(t time.Time) error
func (*InviteMessage) SetMessage ¶ added in v0.0.3
func (m *InviteMessage) SetMessage(msg string) error
func (*InviteMessage) SetObjectName ¶ added in v0.0.3
func (m *InviteMessage) SetObjectName(name string) error
func (*InviteMessage) SetStoreName ¶ added in v0.0.9
func (m *InviteMessage) SetStoreName(name string) error
func (*InviteMessage) StoreName ¶ added in v0.0.9
func (m *InviteMessage) StoreName() string
type QueueMessage ¶
type QueueMessage struct {
// contains filtered or unexported fields
}
func NewQueueMessage ¶ added in v0.0.3
func NewQueueMessage(id string, message interface{}) *QueueMessage
func (*QueueMessage) Header ¶ added in v0.0.10
func (o *QueueMessage) Header() *QueueMessageHeader
func (*QueueMessage) IsValid ¶
func (o *QueueMessage) IsValid() bool
func (*QueueMessage) MarshalJSON ¶
func (o *QueueMessage) MarshalJSON() ([]byte, error)
func (*QueueMessage) Message ¶
func (o *QueueMessage) Message() interface{}
func (*QueueMessage) SetMessage ¶
func (o *QueueMessage) SetMessage(message interface{})
type QueueMessageHeader ¶ added in v0.0.10
type QueueMessageHeader struct {
// contains filtered or unexported fields
}
func NewQueueMessageHeader ¶ added in v0.0.10
func NewQueueMessageHeader(id string, parent string) *QueueMessageHeader
Constructor
func (*QueueMessageHeader) Created ¶ added in v0.0.10
func (o *QueueMessageHeader) Created() time.Time
func (*QueueMessageHeader) ID ¶ added in v0.0.10
func (o *QueueMessageHeader) ID() string
func (*QueueMessageHeader) IsValid ¶ added in v0.0.10
func (o *QueueMessageHeader) IsValid() bool
func (*QueueMessageHeader) MarshalJSON ¶ added in v0.0.10
func (o *QueueMessageHeader) MarshalJSON() ([]byte, error)
func (*QueueMessageHeader) Parent ¶ added in v0.0.10
func (o *QueueMessageHeader) Parent() string
func (*QueueMessageHeader) SetID ¶ added in v0.0.10
func (o *QueueMessageHeader) SetID(id string)
func (*QueueMessageHeader) SetParent ¶ added in v0.0.10
func (o *QueueMessageHeader) SetParent(id string)
func (*QueueMessageHeader) SetProperties ¶ added in v0.0.10
func (o *QueueMessageHeader) SetProperties(m map[string]interface{})
func (*QueueMessageHeader) Status ¶ added in v0.0.10
func (o *QueueMessageHeader) Status() *QueueMessageStatus
func (*QueueMessageHeader) Version ¶ added in v0.0.10
func (o *QueueMessageHeader) Version() int
type QueueMessageStatus ¶ added in v0.0.10
type QueueMessageStatus struct {
// contains filtered or unexported fields
}
Current Message Processing Status
func NewQueueMessageStatus ¶ added in v0.0.10
func NewQueueMessageStatus() *QueueMessageStatus
Constructor
func (*QueueMessageStatus) ErrorCode ¶ added in v0.0.10
func (o *QueueMessageStatus) ErrorCode() int
func (*QueueMessageStatus) ErrorMessage ¶ added in v0.0.10
func (o *QueueMessageStatus) ErrorMessage() string
func (*QueueMessageStatus) Extras ¶ added in v0.0.10
func (o *QueueMessageStatus) Extras() map[string]interface{}
func (*QueueMessageStatus) InError ¶ added in v0.0.10
func (o *QueueMessageStatus) InError() bool
func (*QueueMessageStatus) MarshalJSON ¶ added in v0.0.10
func (o *QueueMessageStatus) MarshalJSON() ([]byte, error)
Click to show internal directories.
Click to hide internal directories.