Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var DefaultImageUuid = pgtype.UUID{ Bytes: [16]byte{}, Valid: true, }
Functions ¶
func CreateUniqueFileName ¶
func FileMimeFrom ¶
func HasRegexSpecialChars ¶
func IsEnv ¶
func IsEnv(env constants.Environment) bool
Types ¶
type News ¶
type NewsInfo ¶
type NewsInfo struct { ID int32 `json:"id"` Title string `json:"title"` ImageID string `json:"image_id"` }
func GetNewsInfo ¶
func GetNewsInfo() []NewsInfo
type QueryParams ¶
type QueryParams struct { Offset int64 `query:"offset"` // the start index of the query Limit int64 `query:"limit"` // the number of the query }
func NewQueryParams ¶
func NewQueryParams(offset int64, limit int64) QueryParams
func (*QueryParams) Validate ¶
func (q *QueryParams) Validate() error
Click to show internal directories.
Click to hide internal directories.