cookiecloud

package
v0.1.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Nov 5, 2023 License: GPL-3.0 Imports: 14 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AesDecrypt

func AesDecrypt(data, key, iv []byte) ([]byte, error)

func AesEncrypt

func AesEncrypt(data, key, iv []byte) ([]byte, error)

func Decrypt

func Decrypt(passphrase, encryptedData string) ([]byte, error)

func Encrypt

func Encrypt(passphrase, rawData string) ([]byte, error)

Types

type CacheService

type CacheService interface {
	Set(k string, x interface{}, d time.Duration)
	Get(k string) (interface{}, bool)
}
type Cookie struct {
	Name           string
	Value          string
	Domain         string
	Path           string
	ExpirationDate float64
	HostOnly       bool
	HttpOnly       bool
	Session        bool
	Secure         bool
	StoreId        string
	SameSite       string
}

type CookieCloud

type CookieCloud struct {
	Host     string
	UUID     string
	Password string
	// contains filtered or unexported fields
}

func New

func New(host, uuid, pass string) *CookieCloud

func (*CookieCloud) GetCookie

func (c *CookieCloud) GetCookie(domain, key string) (Cookie, error)

func (*CookieCloud) GetCookies

func (c *CookieCloud) GetCookies(domain string) ([]Cookie, error)

func (*CookieCloud) GetHttpCookies added in v0.0.15

func (c *CookieCloud) GetHttpCookies(domain string) ([]*http.Cookie, error)

GetHttpCookies get http cookies for domain

type CookieData

type CookieData struct {
	CookieData       map[string][]Cookie `json:"cookie_data"`
	LocalStorateData map[string]any      `json:"local_storage_data"`
}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL