Documentation ¶
Overview ¶
Package types contains shared types and constants for schema package.
Index ¶
Constants ¶
View Source
const (
// DataSizeLimit is limit to PDVData's size.
DataSizeLimit = 8 * 1024
)
View Source
const DateFormat = "2006-01-02"
nolint
Variables ¶
This section is empty.
Functions ¶
func IsValidAvatar ¶
IsValidAvatar checks if avatar url is valid.
func MarshalPDVData ¶
MarshalPDVData encodes PDVData (with its type).
Types ¶
type Source ¶
type Source struct { // Domain of website where object was taken Host string `json:"host"` // Path of website's url where object was taken Path string `json:"path"` }
Source contains information about source of pdv.
type Type ¶
type Type string
Type ... swagger:enum Type
type TypeMapper ¶
TypeMapper contains rules to decode PDVData.
func (TypeMapper) UnmarshalPDVData ¶
func (m TypeMapper) UnmarshalPDVData(b []byte) (Data, error)
UnmarshalPDVData decodes b into PDVData object.
Click to show internal directories.
Click to hide internal directories.