Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type ExecResult ¶
type ExecResult struct { Result interface{} MessageID string MessageArgs []interface{} }
ExecResult defines an internal function result
func (*ExecResult) Data ¶
func (e *ExecResult) Data() interface{}
Data implements the Result interface
func (*ExecResult) Message ¶
func (e *ExecResult) Message() *Message
Message returns a message which can be translated
type JSONMessage ¶
type JSONMessage struct {
Message string `json:"message"`
}
JSONMessage defines a translated JSONMessage
type Message ¶
type Message struct { MessageID string `json:"messagId"` MessageArgs []interface{} `json:"messageArgs"` }
Message defines a translatable response message for the caller
func (*Message) AsTranslatedJSONMessage ¶
func (m *Message) AsTranslatedJSONMessage(translator localization.Translator) JSONMessage
AsTranslatedJSONMessage translates the message and returns a json message which can be sent to user
Click to show internal directories.
Click to hide internal directories.