models

package
v0.0.0-...-216fc9e Latest Latest
Warning

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

Go to latest
Published: Dec 21, 2020 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Delete

type Delete struct {

	// terse
	Terse *bool `json:"terse,omitempty"`

	// visits
	Visits *bool `json:"visits,omitempty"`
}

Delete delete

swagger:model Delete

func (*Delete) MarshalBinary

func (m *Delete) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*Delete) UnmarshalBinary

func (m *Delete) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*Delete) Validate

func (m *Delete) Validate(formats strfmt.Registry) error

Validate validates this delete

type Error

type Error struct {

	// code
	// Required: true
	Code *int64 `json:"code"`

	// message
	// Required: true
	Message *string `json:"message"`
}

Error error

swagger:model Error

func (*Error) MarshalBinary

func (m *Error) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*Error) UnmarshalBinary

func (m *Error) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*Error) Validate

func (m *Error) Validate(formats strfmt.Registry) error

Validate validates this error

type Export

type Export struct {

	// terse
	Terse *Terse `json:"terse,omitempty"`

	// visits
	Visits []*Visit `json:"visits"`
}

Export export

swagger:model Export

func (*Export) MarshalBinary

func (m *Export) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*Export) UnmarshalBinary

func (m *Export) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*Export) Validate

func (m *Export) Validate(formats strfmt.Registry) error

Validate validates this export

type MediaPreview

type MediaPreview struct {

	// og
	Og OpenGraph `json:"og,omitempty"`

	// title
	Title string `json:"title,omitempty"`

	// twitter
	Twitter Twitter `json:"twitter,omitempty"`
}

MediaPreview media preview

swagger:model MediaPreview

func (*MediaPreview) MarshalBinary

func (m *MediaPreview) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*MediaPreview) UnmarshalBinary

func (m *MediaPreview) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*MediaPreview) Validate

func (m *MediaPreview) Validate(formats strfmt.Registry) error

Validate validates this media preview

type OpenGraph

type OpenGraph map[string]string

OpenGraph open graph

swagger:model OpenGraph

func (OpenGraph) Validate

func (m OpenGraph) Validate(formats strfmt.Registry) error

Validate validates this open graph

type Terse

type Terse struct {

	// javascript tracking
	JavascriptTracking bool `json:"javascriptTracking,omitempty"`

	// media preview
	MediaPreview *MediaPreview `json:"mediaPreview,omitempty"`

	// original URL
	// Required: true
	OriginalURL *string `json:"originalURL"`

	// shortened URL
	// Required: true
	ShortenedURL *string `json:"shortenedURL"`
}

Terse terse

swagger:model Terse

func (*Terse) MarshalBinary

func (m *Terse) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*Terse) UnmarshalBinary

func (m *Terse) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*Terse) Validate

func (m *Terse) Validate(formats strfmt.Registry) error

Validate validates this terse

type TerseOptionalShortened

type TerseOptionalShortened struct {

	// media preview
	MediaPreview *MediaPreview `json:"mediaPreview,omitempty"`

	// original URL
	// Required: true
	OriginalURL *string `json:"originalURL"`

	// shortened URL
	ShortenedURL string `json:"shortenedURL,omitempty"`
}

TerseOptionalShortened terse optional shortened

swagger:model TerseOptionalShortened

func (*TerseOptionalShortened) MarshalBinary

func (m *TerseOptionalShortened) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*TerseOptionalShortened) UnmarshalBinary

func (m *TerseOptionalShortened) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*TerseOptionalShortened) Validate

func (m *TerseOptionalShortened) Validate(formats strfmt.Registry) error

Validate validates this terse optional shortened

type Twitter

type Twitter map[string]string

Twitter twitter

swagger:model Twitter

func (Twitter) Validate

func (m Twitter) Validate(formats strfmt.Registry) error

Validate validates this twitter

type Visit

type Visit struct {

	// accessed
	// Required: true
	// Format: date-time
	Accessed *strfmt.DateTime `json:"accessed"`

	// headers
	Headers map[string][]string `json:"headers,omitempty"`

	// ip
	// Required: true
	IP *string `json:"ip"`
}

Visit visit

swagger:model Visit

func (*Visit) MarshalBinary

func (m *Visit) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*Visit) UnmarshalBinary

func (m *Visit) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*Visit) Validate

func (m *Visit) Validate(formats strfmt.Registry) error

Validate validates this visit

Jump to

Keyboard shortcuts

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