readium / go-toolkit

A toolkit for ebooks, audiobooks and comics written in Go

Home Page:https://readium.org/web

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

LCP JSON mapping incomplete

danielweck opened this issue · comments

https://github.com/readium/r2-streamer-go/blob/master/parser/epub/lcp.go#L33

	Rights struct {
		Print int        `json:"print"`
		Copy  int        `json:"copy"`
		Start *time.Time `json:"start"`
		End   *time.Time `json:"end"`
	}
	User struct {
		ID        string   `json:"id"`
		Email     string   `json:"email"`
		Name      string   `json:"name"`
		Encrypted []string `json:"encrypted"`
	}
	Signature struct {
		Algorithm   string `json:"algorithm"`
		Certificate string `json:"certificate"`
		Value       string `json:"value"`
	}

Missing: 'json:"rights"' 'json:"user"' and 'json:"signature"'