model

package
v0.0.0-...-996d052 Latest Latest
Warning

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

Go to latest
Published: Apr 24, 2023 License: GPL-3.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AdPosts

type AdPosts struct {

	// ad id
	// Required: true
	AdID *ID `json:"ad_id"`

	// day
	// Required: true
	Day *DayDate `json:"day"`

	// ad posts additional properties
	AdPostsAdditionalProperties map[string]interface{} `json:"-"`
}

AdPosts ad posts

swagger:model ad_posts

func (*AdPosts) ContextValidate

func (m *AdPosts) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validate this ad posts based on the context it is used

func (*AdPosts) MarshalBinary

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

MarshalBinary interface implementation

func (AdPosts) MarshalJSON

func (m AdPosts) MarshalJSON() ([]byte, error)

MarshalJSON marshals this object with additional properties into a JSON object

func (*AdPosts) UnmarshalBinary

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

UnmarshalBinary interface implementation

func (*AdPosts) UnmarshalJSON

func (m *AdPosts) UnmarshalJSON(data []byte) error

UnmarshalJSON unmarshals this object with additional properties from JSON

func (*AdPosts) Validate

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

Validate validates this ad posts

type AdPostsPage

type AdPostsPage struct {

	// items
	// Required: true
	Items []*AdPosts `json:"items"`

	// next
	Next Next `json:"next,omitempty"`

	// total
	// Required: true
	Total *Total `json:"total"`
}

AdPostsPage ad posts page

swagger:model ad_posts_page

func (*AdPostsPage) ContextValidate

func (m *AdPostsPage) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validate this ad posts page based on the context it is used

func (*AdPostsPage) MarshalBinary

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

MarshalBinary interface implementation

func (*AdPostsPage) UnmarshalBinary

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

UnmarshalBinary interface implementation

func (*AdPostsPage) Validate

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

Validate validates this ad posts page

type AdStats

type AdStats struct {

	// ad id
	// Required: true
	AdID *ID `json:"ad_id"`

	// day
	// Required: true
	Day *Day `json:"day"`

	// ad stats additional properties
	AdStatsAdditionalProperties map[string]interface{} `json:"-"`
}

AdStats ad stats

swagger:model ad_stats

func (*AdStats) ContextValidate

func (m *AdStats) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validate this ad stats based on the context it is used

func (*AdStats) MarshalBinary

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

MarshalBinary interface implementation

func (AdStats) MarshalJSON

func (m AdStats) MarshalJSON() ([]byte, error)

MarshalJSON marshals this object with additional properties into a JSON object

func (*AdStats) UnmarshalBinary

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

UnmarshalBinary interface implementation

func (*AdStats) UnmarshalJSON

func (m *AdStats) UnmarshalJSON(data []byte) error

UnmarshalJSON unmarshals this object with additional properties from JSON

func (*AdStats) Validate

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

Validate validates this ad stats

type AdStatsPage

type AdStatsPage struct {

	// items
	// Required: true
	Items []*AdStats `json:"items"`

	// next
	Next Next `json:"next,omitempty"`

	// total
	// Required: true
	Total *Total `json:"total"`
}

AdStatsPage ad stats page

swagger:model ad_stats_page

func (*AdStatsPage) ContextValidate

func (m *AdStatsPage) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validate this ad stats page based on the context it is used

func (*AdStatsPage) MarshalBinary

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

MarshalBinary interface implementation

func (*AdStatsPage) UnmarshalBinary

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

UnmarshalBinary interface implementation

func (*AdStatsPage) Validate

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

Validate validates this ad stats page

type CampaignPosts

type CampaignPosts struct {

	// campaign id
	// Required: true
	CampaignID *ID `json:"campaign_id"`

	// day
	// Required: true
	Day *DayDate `json:"day"`

	// campaign posts additional properties
	CampaignPostsAdditionalProperties map[string]interface{} `json:"-"`
}

CampaignPosts campaign posts

swagger:model campaign_posts

func (*CampaignPosts) ContextValidate

func (m *CampaignPosts) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validate this campaign posts based on the context it is used

func (*CampaignPosts) MarshalBinary

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

MarshalBinary interface implementation

func (CampaignPosts) MarshalJSON

func (m CampaignPosts) MarshalJSON() ([]byte, error)

MarshalJSON marshals this object with additional properties into a JSON object

func (*CampaignPosts) UnmarshalBinary

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

UnmarshalBinary interface implementation

func (*CampaignPosts) UnmarshalJSON

func (m *CampaignPosts) UnmarshalJSON(data []byte) error

UnmarshalJSON unmarshals this object with additional properties from JSON

func (*CampaignPosts) Validate

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

Validate validates this campaign posts

type CampaignPostsPage

type CampaignPostsPage struct {

	// items
	// Required: true
	Items []*CampaignPosts `json:"items"`

	// next
	Next Next `json:"next,omitempty"`

	// total
	// Required: true
	Total *Total `json:"total"`
}

CampaignPostsPage campaign posts page

swagger:model campaign_posts_page

func (*CampaignPostsPage) ContextValidate

func (m *CampaignPostsPage) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validate this campaign posts page based on the context it is used

func (*CampaignPostsPage) MarshalBinary

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

MarshalBinary interface implementation

func (*CampaignPostsPage) UnmarshalBinary

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

UnmarshalBinary interface implementation

func (*CampaignPostsPage) Validate

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

Validate validates this campaign posts page

type CampaignStats

type CampaignStats struct {

	// campaign id
	// Required: true
	CampaignID *ID `json:"campaign_id"`

	// day
	// Required: true
	Day *Day `json:"day"`

	// campaign stats additional properties
	CampaignStatsAdditionalProperties map[string]interface{} `json:"-"`
}

CampaignStats campaign stats

swagger:model campaign_stats

func (*CampaignStats) ContextValidate

func (m *CampaignStats) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validate this campaign stats based on the context it is used

func (*CampaignStats) MarshalBinary

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

MarshalBinary interface implementation

func (CampaignStats) MarshalJSON

func (m CampaignStats) MarshalJSON() ([]byte, error)

MarshalJSON marshals this object with additional properties into a JSON object

func (*CampaignStats) UnmarshalBinary

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

UnmarshalBinary interface implementation

func (*CampaignStats) UnmarshalJSON

func (m *CampaignStats) UnmarshalJSON(data []byte) error

UnmarshalJSON unmarshals this object with additional properties from JSON

func (*CampaignStats) Validate

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

Validate validates this campaign stats

type CampaignStatsPage

type CampaignStatsPage struct {

	// items
	// Required: true
	Items []*CampaignStats `json:"items"`

	// next
	Next Next `json:"next,omitempty"`

	// total
	// Required: true
	Total *Total `json:"total"`
}

CampaignStatsPage campaign stats page

swagger:model campaign_stats_page

func (*CampaignStatsPage) ContextValidate

func (m *CampaignStatsPage) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validate this campaign stats page based on the context it is used

func (*CampaignStatsPage) MarshalBinary

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

MarshalBinary interface implementation

func (*CampaignStatsPage) UnmarshalBinary

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

UnmarshalBinary interface implementation

func (*CampaignStatsPage) Validate

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

Validate validates this campaign stats page

type Day

type Day int64

Day Statistics day timestamp in unix time

swagger:model day

func (Day) ContextValidate

func (m Day) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validates this day based on context it is used

func (Day) Validate

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

Validate validates this day

type DayDate

type DayDate string

DayDate Statistics day date in YYYY-MM-DD format

swagger:model day_date

func (DayDate) ContextValidate

func (m DayDate) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validates this day date based on context it is used

func (DayDate) Validate

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

Validate validates this day date

type Error

type Error struct {

	// code
	Code int64 `json:"code,omitempty"`

	// details
	Details interface{} `json:"details,omitempty"`

	// message
	Message string `json:"message,omitempty"`
}

Error error

swagger:model error

func (*Error) ContextValidate

func (m *Error) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validates this error based on context it is used

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 ErrorResponse

type ErrorResponse struct {

	// error
	Error *Error `json:"error,omitempty"`
}

ErrorResponse error response

swagger:model errorResponse

func (*ErrorResponse) ContextValidate

func (m *ErrorResponse) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validate this error response based on the context it is used

func (*ErrorResponse) MarshalBinary

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

MarshalBinary interface implementation

func (*ErrorResponse) UnmarshalBinary

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

UnmarshalBinary interface implementation

func (*ErrorResponse) Validate

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

Validate validates this error response

type ID

type ID int64

ID Object ID

swagger:model id

func (ID) ContextValidate

func (m ID) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validates this id based on context it is used

func (ID) Validate

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

Validate validates this id

type Next

type Next string

Next link to next page of results by main request

swagger:model next

func (Next) ContextValidate

func (m Next) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validates this next based on context it is used

func (Next) Validate

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

Validate validates this next

type Ok

type Ok struct {

	// result
	Result *string `json:"result,omitempty"`
}

Ok ok

swagger:model ok

func (*Ok) ContextValidate

func (m *Ok) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validates this ok based on context it is used

func (*Ok) MarshalBinary

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

MarshalBinary interface implementation

func (*Ok) UnmarshalBinary

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

UnmarshalBinary interface implementation

func (*Ok) Validate

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

Validate validates this ok

type Principal

type Principal struct {

	// account id
	AccountID int64 `json:"account_id,omitempty"`

	// system token
	Token string `json:"token,omitempty"`
}

Principal principal

swagger:model principal

func (*Principal) ContextValidate

func (m *Principal) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validates this principal based on context it is used

func (*Principal) MarshalBinary

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

MarshalBinary interface implementation

func (*Principal) UnmarshalBinary

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

UnmarshalBinary interface implementation

func (*Principal) Validate

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

Validate validates this principal

type Total

type Total int64

Total Total records finded by request

swagger:model total

func (Total) ContextValidate

func (m Total) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validates this total based on context it is used

func (Total) Validate

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

Validate validates this total

Jump to

Keyboard shortcuts

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