vcdiff

package
v0.0.0-...-74de719 Latest Latest
Warning

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

Go to latest
Published: Jul 29, 2019 License: BSD-3-Clause Imports: 19 Imported by: 0

Documentation

Index

Constants

View Source
const DictionaryHandlerPath = "/.well-known/web-vcdiff/d/"

Variables

This section is empty.

Functions

func Client

func Client(t http.RoundTripper) *http.Client

func DictionaryHandler

func DictionaryHandler(d Dictionaries) http.Handler

func Handler

func Handler(d Dictionaries, h http.Handler) http.Handler

func RoundTripper

func RoundTripper(t http.RoundTripper) http.RoundTripper

Types

type Dictionaries

type Dictionaries interface {
	Select(*http.Request) (*Dictionary, error)
	Find(context.Context, DictionaryID) (*Dictionary, error)
}

func FixedDictionary

func FixedDictionary(d *Dictionary) Dictionaries

type Dictionary

type Dictionary struct {
	ID   DictionaryID
	Data []byte
	// contains filtered or unexported fields
}

func NewDictionary

func NewDictionary(data []byte) *Dictionary

func ReadDictionary

func ReadDictionary(path string) (*Dictionary, error)

type DictionaryID

type DictionaryID [16]byte

Directories

Path Synopsis
internal

Jump to

Keyboard shortcuts

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