Documentation ¶
Index ¶
- func ConvertImageToJpg(img []byte) ([]byte, error)
- func CopyMap[T comparable, E any](source map[T]E) map[T]E
- func CreateCancelContext() (context.Context, context.CancelFunc)
- func CreateTimeoutContext(timeout time.Duration) (context.Context, context.CancelFunc)
- func FindFirst[T any](arr []T, function func(value T) bool) (T, bool)
- func FormatCookieString(cookies map[string]string) string
- func GenerateSecMSGec() string
- func GracefulPanic(err error)
- func LoadEnv(filePath string) error
- func MakeHTTPClient(proxy string, timeout time.Duration) (*http.Client, *req.Client, error)
- func Map[T any, E any](arr []T, function func(value T) E) []E
- func MustGenerateRandomHex(length int) string
- func OpenURL(url string) error
- func ParseCookies(cookiesStr string) map[string]string
- func ParseCookiesFromString(cookiesStr string) map[string]string
- func RandIntInclusive(min int, max int) int
- func ReadCookiesFile() (map[string]string, error)
- func ReadDebugOptionSets() (debugOptionsSets []string)
- func Ternary[T any](expression bool, trueResult T, falseResult T) T
- func UpdateCookiesFile(cookies map[string]string) error
- func WithPath(filename string) string
- type FileCookie
- type LazyExpiryKVStore
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ConvertImageToJpg ¶
func CopyMap ¶
func CopyMap[T comparable, E any](source map[T]E) map[T]E
func CreateCancelContext ¶
func CreateCancelContext() (context.Context, context.CancelFunc)
func CreateTimeoutContext ¶
func FormatCookieString ¶
func GenerateSecMSGec ¶
func GenerateSecMSGec() string
func GracefulPanic ¶
func GracefulPanic(err error)
func MakeHTTPClient ¶
func MustGenerateRandomHex ¶
func ParseCookies ¶
func ParseCookiesFromString ¶
func RandIntInclusive ¶
func ReadCookiesFile ¶
func ReadDebugOptionSets ¶
func ReadDebugOptionSets() (debugOptionsSets []string)
func UpdateCookiesFile ¶
Types ¶
type FileCookie ¶
func ReadCookiesFileRaw ¶
func ReadCookiesFileRaw() ([]FileCookie, error)
type LazyExpiryKVStore ¶
type LazyExpiryKVStore struct {
// contains filtered or unexported fields
}
func NewLazyExpiryStore ¶
func NewLazyExpiryStore() *LazyExpiryKVStore
func (*LazyExpiryKVStore) Delete ¶
func (kv *LazyExpiryKVStore) Delete(key string)
Click to show internal directories.
Click to hide internal directories.