Documentation ¶
Index ¶
- type MessageType
- type ModelError
- func (m *ModelError) GetError() error
- func (m *ModelError) GetErrorMessage() string
- func (m *ModelError) GetMessage() string
- func (m *ModelError) IsError() bool
- func (m *ModelError) Reset()
- func (m *ModelError) ResetError()
- func (m *ModelError) ResetMessage()
- func (m *ModelError) SetDefaultMessage(message string)
- func (m *ModelError) SetError(err error)
- func (m *ModelError) SetErrorMessage(errorMessage string)
- func (m *ModelError) SetProgressMessage(message string)
- func (m *ModelError) SetSuccessMessage(message string)
- func (m *ModelError) View() string
- func (m *ModelError) ViewError() string
- func (m *ModelError) ViewMessage() string
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type MessageType ¶
type MessageType string
const ( // MessageTypeDefault is the message type for default MessageTypeDefault MessageType = "default" // MessageTypeProgress is the message type for progress MessageTypeProgress MessageType = "progress" // MessageTypeSuccess is the message type for success MessageTypeSuccess MessageType = "success" )
type ModelError ¶
type ModelError struct {
// contains filtered or unexported fields
}
func SetupModelError ¶
func SetupModelError() ModelError
func (*ModelError) GetError ¶
func (m *ModelError) GetError() error
func (*ModelError) GetErrorMessage ¶
func (m *ModelError) GetErrorMessage() string
func (*ModelError) GetMessage ¶
func (m *ModelError) GetMessage() string
func (*ModelError) IsError ¶
func (m *ModelError) IsError() bool
func (*ModelError) Reset ¶
func (m *ModelError) Reset()
func (*ModelError) ResetError ¶
func (m *ModelError) ResetError()
func (*ModelError) ResetMessage ¶
func (m *ModelError) ResetMessage()
func (*ModelError) SetDefaultMessage ¶
func (m *ModelError) SetDefaultMessage(message string)
func (*ModelError) SetError ¶
func (m *ModelError) SetError(err error)
func (*ModelError) SetErrorMessage ¶
func (m *ModelError) SetErrorMessage(errorMessage string)
func (*ModelError) SetProgressMessage ¶
func (m *ModelError) SetProgressMessage(message string)
func (*ModelError) SetSuccessMessage ¶
func (m *ModelError) SetSuccessMessage(message string)
func (*ModelError) View ¶
func (m *ModelError) View() string
func (*ModelError) ViewError ¶
func (m *ModelError) ViewError() string
func (*ModelError) ViewMessage ¶
func (m *ModelError) ViewMessage() string
Click to show internal directories.
Click to hide internal directories.