Documentation ¶
Index ¶
Constants ¶
View Source
const ( ErrId string = "id" ErrDlr string = "dlr" ErrDlrData string = "dlrdata" )
Variables ¶
View Source
var ( ErrorNone error = nil ErrorDlrIsEmpty error = errors.New(smodel.ErrBase + smodel.ErrSep + ErrDlr + smodel.ErrSep + ErrEmpty) ErrorDlrDlrDataIsEmpty error = errors.New(smodel.ErrBase + smodel.ErrSep + ErrDlr + smodel.ErrSep + ErrDlrData + smodel.ErrSep + ErrEmpty) ErrorDlrNotFound error = errors.New(smodel.ErrBase + smodel.ErrSep + ErrDlr + smodel.ErrSep + ErrNotFound) ErrorDlrIdIsEmpty error = errors.New(smodel.ErrBase + smodel.ErrSep + ErrDlr + smodel.ErrSep + ErrId + smodel.ErrSep + ErrEmpty) )
View Source
var ERRORS []error = []error{ ErrorNone, ErrorDlrIsEmpty, ErrorDlrDlrDataIsEmpty, ErrorDlrNotFound, }
View Source
var MESSAGES []string = []string{}
View Source
var (
MessageNone string = ""
)
Functions ¶
func GetMessages ¶
func GetMessages() []string
Types ¶
type Dlr ¶
type Dlr struct { DlrData string `json:"dlr_data"` // DlrData is the data of the dlr. DlrType DlrType `json:"dlr_type"` // DlrType is the type of the dlr. DlrStatus DlrStatus `json:"dlr_status"` // DlrStatus is the status of the dlr. Tags []string `json:"tags"` // Tags is the tags of the dlr. }
Dlr is a struct that represents the object of a dlr basic values.
func (*Dlr) IsNotEmpty ¶
IsNotEmpty returns true if the Dlr is not empty.
type DlrSortField ¶
type DlrSortField int8
DlrSortField is a type that represents the sort fields of a dlr.
const ( DlrSortFieldNONE DlrSortField = iota DlrSortFieldId //DlrSortFieldName DlrSortFieldCreatedAt DlrSortFieldUpdatedAt )
Click to show internal directories.
Click to hide internal directories.