Documentation ¶
Index ¶
- func B64Decode(data string) string
- func B64Encode(data string) string
- func Comprehension(slice []string) []string
- func GetCallFuncName() string
- func GetCallFuncRoute(skip int) []string
- func ParseEvents(data []byte) []*linebot.Event
- func RandomString(length int) string
- func SetGinContext(w http.ResponseWriter, r *http.Request) *gin.Context
- func ValidateSignature(secret, signature string, body []byte) bool
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Comprehension ¶
Comprehension - remove blank strings in slices
func GetCallFuncName ¶
func GetCallFuncName() string
GetCallFuncName - get the function name of the caller
func GetCallFuncRoute ¶
GetCallFuncRoute - get the route to the function name of the caller and return it as a slice
func ParseEvents ¶
ParseEvents - extract `[]*linebot.Event`
func SetGinContext ¶
SetGinContext - create `*gin.Context` from `http.ResponseWriter` and `*http.Request`
func ValidateSignature ¶
ValidateSignature - perform signature verification
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.