cachefile

package
v1.0.0-beta.9 Latest Latest
Warning

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

Go to latest
Published: May 6, 2024 License: GPL-2.0 Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type CacheFile

type CacheFile struct {
	DB *bbolt.DB
	// contains filtered or unexported fields
}

func New

func New(path string) *CacheFile

func (*CacheFile) Close

func (c *CacheFile) Close() error

func (*CacheFile) LoadSubscription

func (c *CacheFile) LoadSubscription(name string) *Subscription

func (*CacheFile) Start

func (c *CacheFile) Start() error

func (*CacheFile) StoreSubscription

func (c *CacheFile) StoreSubscription(name string, subscription *Subscription) error

type Subscription

type Subscription struct {
	Content     []option.Outbound
	LastUpdated time.Time
	LastEtag    string
}

func (*Subscription) MarshalBinary

func (c *Subscription) MarshalBinary() ([]byte, error)

func (*Subscription) UnmarshalBinary

func (c *Subscription) UnmarshalBinary(data []byte) error

Jump to

Keyboard shortcuts

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