Documentation ¶
Index ¶
- Variables
- func CheckCodeFormatIs4Number(lineRequest *LineMessage) bool
- func CheckCodeWithIn3Hr(Queries *db.Queries, lineRequest *LineMessage) (bool, int32, int32, error)
- func CheckProfileRegisterFromDB(Queries *db.Queries, profile ProFile) (db.User, bool, error)
- func GetActiveChin(CronQueries *db.Queries) (chain model.Chain, err error)
- func GetLastBlockTransactionFromBscScan(CainInfo db.Chain, walletAddress string, lastBlock int32, BSCToken string) (r resultTx, last int32, e error)
- func GetLastPriceBNB(CainInfo db.Chain) (usd float64, err error)
- func GetPushTextForLineAlert(r resultTx, walletAddress string, AccountName string) (string, error)
- func MakePushOneUserWithLineAPI(messageStr string, user db.User, ChannelToken string) error
- func ReplyLineUserWithNormalText(messageStr string, ChannelToken string, lineRequest *LineMessage) error
- func UpdateLineIdByWhereUserIDParams(Queries *db.Queries, lineid string, userID int32) error
- func UpdateUserOwnerValidation(Queries *db.Queries, userID int32) error
- func ValidationLineRequest(lineRequest *LineMessage) error
- type LineMessage
- type Message
- type ProFile
- type PushRequest
- type ReplyRequest
Constants ¶
This section is empty.
Variables ¶
View Source
var DefaultBNBPrice float64
Functions ¶
func CheckCodeFormatIs4Number ¶
func CheckCodeFormatIs4Number(lineRequest *LineMessage) bool
func CheckCodeWithIn3Hr ¶
func GetPushTextForLineAlert ¶
func ReplyLineUserWithNormalText ¶
func ReplyLineUserWithNormalText(messageStr string, ChannelToken string, lineRequest *LineMessage) error
func ValidationLineRequest ¶
func ValidationLineRequest(lineRequest *LineMessage) error
Types ¶
type LineMessage ¶
type LineMessage struct { Destination string `json:"destination"` Events []struct { ReplyToken string `json:"replyToken"` Type string `json:"type"` Timestamp int64 `json:"timestamp"` Source struct { Type string `json:"type"` UserID string `json:"userId"` } `json:"source"` Message struct { ID string `json:"id"` Type string `json:"type"` Text string `json:"text"` } `json:"message"` } `json:"events"` }
type ProFile ¶
type ProFile struct { UserID string `json:"userId"` DisplayName string `json:"displayName"` PictureURL string `json:"pictureUrl"` StatusMessage string `json:"statusMessage"` }
func GetProfile ¶
type PushRequest ¶
type ReplyRequest ¶
Click to show internal directories.
Click to hide internal directories.