cache

package
v0.1.2 Latest Latest
Warning

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

Go to latest
Published: Nov 2, 2021 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Cache

type Cache struct {
	// contains filtered or unexported fields
}

func New

func New(archive, content string) *Cache

func (*Cache) Read

func (c *Cache) Read() error

func (*Cache) Stale

func (c *Cache) Stale() (bool, []string)

func (*Cache) Update

func (c *Cache) Update() error

func (*Cache) Write

func (c *Cache) Write() error

type File

type File struct {
	Name string `json:"name"`
	Size string `json:"size,omitempty"`
	Date string `json:"date,omitempty"`
	Hash string `json:"hash,omitempty"`
}

func (File) Equals

func (f File) Equals(g File) bool

type Suite

type Suite struct {
	Name string `json:"name"`
	File []File `json:"file,omitempty"`
	Hash string `json:"hash,omitempty"`
}

Jump to

Keyboard shortcuts

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