Documentation ¶
Index ¶
Constants ¶
View Source
const DictionaryHandlerPath = "/.well-known/web-vcdiff/d/"
Variables ¶
This section is empty.
Functions ¶
func DictionaryHandler ¶
func DictionaryHandler(d Dictionaries) 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
Click to show internal directories.
Click to hide internal directories.