Documentation ¶
Index ¶
- func Contains(slice []string, item string) bool
- func DateToString(ts *timestamp.Timestamp) string
- func Decrypt(data []byte, passphrase string) ([]byte, error)
- func Encrypt(data []byte, passphrase string) []byte
- func FormatTimeStamp(ts *timestamp.Timestamp, layout string) string
- func GetHTTPBody(r *http.Request) ([]byte, error)
- func GetHTTPBodyResponse(r *http.Response) ([]byte, error)
- func GetPrincipal(r *http.Request) model.Principal
- func GetReplacebleKeyName(value string) []string
- func Now() *timestamp.Timestamp
- func Time(ts *timestamp.Timestamp) time.Time
- func Timestamp(t time.Time) *timestamp.Timestamp
- func UnmarshalPayload(r *http.Request, payload interface{}) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func FormatTimeStamp ¶
FormatTimeStamp FormatTimeStamp
func GetHTTPBodyResponse ¶
GetHTTPBodyResponse - Returns body
func GetPrincipal ¶
GetPrincipal - Returns principal from request
func GetReplacebleKeyName ¶
GetReplacebleKeyName - Retrieve variable names
func UnmarshalPayload ¶
UnmarshalPayload - Transform a raw post request into a struct
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.