v1serializers

package
v0.0.0-...-5b323e4 Latest Latest
Warning

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

Go to latest
Published: Apr 13, 2021 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type HealthCheck

type HealthCheck struct {
	HealthCheck bool
}

func (*HealthCheck) Data

func (serializer *HealthCheck) Data() *healthCheckResponse

type Keyword

type Keyword struct {
	Keyword *models.Keyword
	Links   *presenters.KeywordLinks
}

func (*Keyword) Data

func (serializer *Keyword) Data() *KeywordResponse

type KeywordList

type KeywordList struct {
	Keywords []*models.Keyword

	Pagination
}

func (*KeywordList) Data

func (serializer *KeywordList) Data() []*KeywordResponse

type KeywordResponse

type KeywordResponse struct {
	Id                   uint     `jsonapi:"primary,keyword"`
	Keyword              string   `jsonapi:"attr,keyword"`
	Status               string   `jsonapi:"attr,status"`
	CreatedAt            string   `jsonapi:"attr,created_at"`
	UpdatedAt            string   `jsonapi:"attr,updated_at"`
	LinkCount            int      `jsonapi:"attr,link_count,omitempty"`
	NonAdwordLinksCount  int      `jsonapi:"attr,non_adword_link_count,omitempty"`
	NonAdwordLinks       []string `jsonapi:"attr,non_adword_links,omitempty"`
	AdwordLinksCount     int      `jsonapi:"attr,adword_link_count,omitempty"`
	AdwordLinks          []string `jsonapi:"attr,adword_links,omitempty"`
	ShopAdwordLinksCount int      `jsonapi:"attr,shop_adword_link_count,omitempty"`
	ShopAdwordLinks      []string `jsonapi:"attr,shop_adword_links,omitempty"`
	HTMLCode             string   `jsonapi:"attr,html_code,omitempty"`
}

type OAuthClient

type OAuthClient struct {
	OAuthClient *models.Client
}

func (*OAuthClient) Data

func (serializer *OAuthClient) Data() *oAuthClientResponse

type OAuthToken

type OAuthToken struct {
	OAuthToken *models.OAuthToken
}

func (*OAuthToken) Data

func (serializer *OAuthToken) Data() *oAuthTokenResponse

type Pagination

type Pagination struct {
	Paginator *pagination.Paginator
}
func (serializer *Pagination) Links() (links *jsonapi.Links)

func (*Pagination) Meta

func (serializer *Pagination) Meta() (meta *jsonapi.Meta)

Jump to

Keyboard shortcuts

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