Documentation ¶
Index ¶
- Constants
- Variables
- type Error
- type Message
- func (m *Message) AddError(key string, value string)
- func (m *Message) AddSuccess(idx string)
- func (m *Message) GetCount() int
- func (m *Message) GetData() []byte
- func (m *Message) GetError() *string
- func (m *Message) GetErrors() []Error
- func (m *Message) GetSuccesses() []string
- func (m *Message) SetCount(value int)
- func (m *Message) SetData(value []byte)
- func (m *Message) SetError(err string)
Constants ¶
View Source
const ( Export = "export" Import = "import" MassUpdate = "mass-update" MassDelete = "mass-delete" )
Variables ¶
View Source
var Types = map[string]string{ Export: Export, Import: Import, MassUpdate: MassUpdate, MassDelete: MassDelete, }
Functions ¶
This section is empty.
Types ¶
type Message ¶
type Message struct { Mu sync.Mutex `json:"-"` Count int `json:"count"` Success []string `json:"success,omitempty"` Errors []Error `json:"errors,omitempty"` Error *string `json:"error,omitempty"` Data []byte `json:"-"` }
func NewMessage ¶
func NewMessage() *Message
func (*Message) AddSuccess ¶
func (*Message) GetSuccesses ¶
Click to show internal directories.
Click to hide internal directories.