Documentation ¶
Overview ¶
Copyright (c) 2021, Refactory.id All rights reserved.
Index ¶
- func HashAndSalt(pwd []byte) string
- func LenKeys(ctx context.Context, c *redis.Client, key string) (int, bool)
- func ParseIdn(date string) int64
- func ParseTime(locationName string, value string) time.Time
- func SetField(obj interface{}, name string, value interface{}) error
- func TimeIn(name string) time.Time
- type EmptyObj
- type NullTime
- type Response
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func HashAndSalt ¶
Types ¶
type NullTime ¶
NullTime for nil time.Time
func (NullTime) MarshalJSON ¶
func (*NullTime) UnmarshalJSON ¶
type Response ¶
type Response struct { Status bool `json:"status"` Message string `json:"message"` Errors interface{} `json:"errors"` Data interface{} `json:"data"` Embed interface{} `json:"embed"` }
*
- Response is used for static shape json return
func BuildErrorResponse ¶
*
- Create new Response and returns Errors's data
- @param status boolean
- @param message string
- @param data interface{}
func BuildResponse ¶
*
- Create new Response and returns Response's data
- @param status boolean
- @param message string
- @param data interface{}
func BuildResponseEmbed ¶
*
- Create new Response and returns Response's data
- @param status boolean
- @param message string
- @param data interface{}
- @param embed interface{}
Click to show internal directories.
Click to hide internal directories.