Documentation ¶
Overview ¶
Package model contains shared entities Part of `wedit` project (https://wedit.io) (https://github.com/sofmon/wedit) Use of this source code is governed by MIT license that can be found in the LICENSE file.
Package model contains shared entities Part of `wedit` project (https://wedit.io) (https://github.com/sofmon/wedit) Use of this source code is governed by MIT license that can be found in the LICENSE file.
Package model contains shared entities Part of `wedit` project (https://wedit.io) (https://github.com/sofmon/wedit) Use of this source code is governed by MIT license that can be found in the LICENSE file.
Package model contains shared entities Part of `wedit` project (https://wedit.io) (https://github.com/sofmon/wedit) Use of this source code is governed by MIT license that can be found in the LICENSE file.
Package model contains shared entities Part of `wedit` project (https://wedit.io) (https://github.com/sofmon/wedit) Use of this source code is governed by MIT license that can be found in the LICENSE file.
Package model contains shared entities Part of `wedit` project (https://wedit.io) (https://github.com/sofmon/wedit) Use of this source code is governed by MIT license that can be found in the LICENSE file.
Package model contains shared entities Part of `wedit` project (https://wedit.io) (https://github.com/sofmon/wedit) Use of this source code is governed by MIT license that can be found in the LICENSE file.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Image ¶
type Image struct { Key Key `json:"k"` Type string `json:"t"` Width []int `json:"w"` PixelDencity []float64 `json:"x"` }
Image represents an image on a page
func (Image) FileNameMin ¶
FileNameMin for the image source as the smallest image
type Page ¶
type Page struct { Title string `json:"t"` Repeats PageRepeats `json:"r"` Elements PageElements `json:"e"` Images PageImages `json:"i"` }
Page represents an html page
type PageElements ¶
PageElements is map[Key]Element that serializes as list
func (PageElements) MarshalJSON ¶
func (x PageElements) MarshalJSON() ([]byte, error)
MarshalJSON converts a map to a json list
func (*PageElements) UnmarshalJSON ¶
func (x *PageElements) UnmarshalJSON(data []byte) (err error)
UnmarshalJSON converts a json list to a
type PageImages ¶
PageImages is map[Key]Image that serializes as list
func (PageImages) MarshalJSON ¶
func (x PageImages) MarshalJSON() ([]byte, error)
MarshalJSON converts a map to a json list
func (*PageImages) UnmarshalJSON ¶
func (x *PageImages) UnmarshalJSON(data []byte) (err error)
UnmarshalJSON converts a json list to a
type PageRepeats ¶
PageRepeats is map[Key]Repeat that serializes as list
func (PageRepeats) MarshalJSON ¶
func (x PageRepeats) MarshalJSON() ([]byte, error)
MarshalJSON converts a map to a json list
func (*PageRepeats) UnmarshalJSON ¶
func (x *PageRepeats) UnmarshalJSON(data []byte) (err error)
UnmarshalJSON converts a json list to a
type PageWithSettings ¶
PageWithSettings is used to transmit page and global settings