cacheget

package module
v0.1.1 Latest Latest
Warning

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

Go to latest
Published: Feb 6, 2023 License: MIT Imports: 5 Imported by: 1

README

cacheget

http get method library use etag cache

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CacheGet

func CacheGet(url string) ([]byte, int, error)

GET request, use etag return (data, status code, error)

func DeserializeCache

func DeserializeCache(fbuf []byte) error

deserialize cache fbuf is cache data buffer

func SerializeCache

func SerializeCache() (*bytes.Buffer, error)

serialize etag cache

Types

type Cache

type Cache struct {
	Etag string
	Body []byte
}

Jump to

Keyboard shortcuts

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