Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetOffsetLimit ¶
func GetOffsetLimit(pagination *PaginationOptions) (offset, limit int64)
Types ¶
type CustomError ¶
type CustomError struct { Status *status.Status Reason string Metadata map[string]string ErrorDetails []protoiface.MessageV1 }
CustomError ...
func (*CustomError) AddErrorDetails ¶
func (e *CustomError) AddErrorDetails(ed protoiface.MessageV1)
AddErrorDetails ...
func (*CustomError) AddMetadata ¶
func (e *CustomError) AddMetadata(k string, v string)
AddMetadata ...
type CustomValidator ¶
type CustomValidator struct { Validator *validator.Validate Trans ut.Translator }
CustomValidator ...
func (*CustomValidator) Validate ¶
func (cv *CustomValidator) Validate(structRule interface{}) error
Validate ...
type Pagination ¶
func FormatPagination ¶
func FormatPagination(items interface{}, size, total int64) *Pagination
type PaginationOptions ¶
type Repository ¶
Source Files ¶
Click to show internal directories.
Click to hide internal directories.