Versions in this module Expand all Collapse all v0 v0.1.0 Feb 23, 2023 Changes in this version + type Entry struct + Creation time.Time + Domain string + Expires time.Time + HostOnly bool + HttpOnly bool + LastAccess time.Time + Name string + Path string + Persistent bool + SameSite string + Secure bool + SeqNum uint64 + Value string + type EntrySerDer interface + Deserialize func(r io.Reader) (map[string]map[string]Entry, error) + Serialize func(w io.Writer, entries map[string]map[string]Entry) error + type Jar struct + func New(o *Options) (*Jar, error) + func (j *Jar) Cookies(u *url.URL) (cookies []*http.Cookie) + func (j *Jar) SetCookies(u *url.URL, cookies []*http.Cookie) + type Options struct + PublicSuffixList PublicSuffixList + type PersistentJar struct + func NewPersistentJar(opts ...PersistentJarOption) *PersistentJar + func (j *PersistentJar) Cookies(u *url.URL) []*http.Cookie + func (j *PersistentJar) SetCookies(u *url.URL, cookies []*http.Cookie) + func (j *PersistentJar) Sync() error + type PersistentJarOption interface + func WithAutoSync(autoSync bool) PersistentJarOption + func WithFilePath(filePath string) PersistentJarOption + func WithFilePerm(filePerm os.FileMode) PersistentJarOption + func WithFs(fs afero.Fs) PersistentJarOption + func WithLogger(logger ctxd.Logger) PersistentJarOption + func WithPublicSuffixList(list PublicSuffixList) PersistentJarOption + func WithSerDer(serder EntrySerDer) PersistentJarOption + type PublicSuffixList interface + PublicSuffix func(domain string) string + String func() string