Documentation
¶
Index ¶
- Constants
- Variables
- func AES256GCMDecrypt[T string | []byte](ciphertext T, key []byte) ([]byte, error)
- func AES256GCMEncrypt[T string | []byte](plaintext T, key []byte) ([]byte, error)
- func AddSign(form map[string]string, subappType string)
- func Addslashes(str string) string
- func ApiTemplate[T any](code int, message string, data T, version string) _type.ApiTemplate[T]
- func Base64URLDecode(originalBuffer string) ([]byte, error)
- func Base64URLEncode(originalBuffer []byte) string
- func BoolToTinyInt(b bool) int
- func ClientTypeFallBack(form map[string]string, clientTypeKey string)
- func CreatePasswordHash(password string) ([]byte, error)
- func DeleteOption(keyName string, ext ...OptionExt) error
- func DeleteUserOption(keyName string, uid string, ext ...OptionExt) error
- func EchoNoContent(c echo.Context) error
- func EchoReject(c echo.Context) error
- func Fatal(msg string, v ...any)
- func Fetch(_url string, _method string, _body []byte, _headers map[string]string, ...) ([]byte, error)
- func FmtFatal(v ...any)
- func GenHMAC256(ciphertext, key []byte) []byte
- func GetBaiduUserInfo(cookie *_type.TypeCookie) (*_type.BaiduUserInfoResponse, error)
- func GetCookie(pid int32, ext ...bool) *_type.TypeCookie
- func GetFid(name string) int64
- func GetForumDetail(fid int64) (*tbpb.GetForumDetailResIdl_DataRes, error)
- func GetForumList(cookie *_type.TypeCookie, uid string, page int64) (*_type.ForumListResponse[*_type.ForumList], error)
- func GetForumList2(cookie *_type.TypeCookie, page int64) (*_type.ForumGuideResponse, error)
- func GetForumNameShare(name string) (*_type.ForumNameShareResponse, error)
- func GetGravatarLink(email string) string
- func GetLoginQRCode() (*_type.LoginQRCode, error)
- func GetLoginResponse(tmpBDUSS string) (*_type.LoginResponse, error)
- func GetManagerInfo(fid uint64) (*tbpb.GetBawuInfoResIdl_DataRes, error)
- func GetManagerStatus(portrait string, fid int64) (*_type.IsManagerPreCheckResponse, error)
- func GetManagerTasks(cookie *_type.TypeCookie, fid int64) (*_type.ManagerTasksResponse, error)
- func GetNewPCForumCard(fid int) (*_type.GetNewPCForumCardResponse, error)
- func GetNewPCUserCard(portrait string) (*_type.GetNewPCUserCardResponse, error)
- func GetOption(keyName string) string
- func GetPassword(uid int) string
- func GetTbs(bduss string) (*_type.TbsResponse, error)
- func GetUnicastResponse(sign string) (*_type.WrapUnicastResponse, error)
- func GetUserInfoByTiebaUID(tbuid string) (*tbpb.GetUserByTiebaUidResIdl_DataRes, error)
- func GetUserInfoByUsernameOrPortrait(requestType string, value string) (*_type.TiebaPanelUserInfoResponse, error)
- func GetUserOption(keyName string, uid string, ext ...OptionExt) string
- func GetUserOptionBatch(uid string, keyOptions ...OptionExt) map[string]string
- func GetWebForumList(cookie *_type.TypeCookie, page int64) (*_type.WebForumListResponse, error)
- func HtmlSpecialchars(html string) string
- func InitClient(timeout time.Duration) *http.Client
- func InitDefaultLogger()
- func InitLoggerPresets(logger *slog.Logger) *slog.Logger
- func InitOptions()
- func IsBinaryType() bool
- func IsOfficialSupport() bool
- func JsonDecode[T any](jsonByte []byte, template *T) error
- func JsonEncode[T any](data T) ([]byte, error)
- func JsonIsUnmarshalTypeError(err error) bool
- func LocaleTimeDiff(hour int64) int64
- func Md5(str string) string
- func MultipartBodyBuilder(_body map[string][]byte, files ...MultipartBodyBinaryFileType) ([]byte, string, error)
- func NewerSemver(cur, ver2 string) string