swagger

package
v1.1.2 Latest Latest
Warning

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

Go to latest
Published: Mar 3, 2021 License: Apache-2.0 Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ObjectTypes

type ObjectTypes struct {
	Cookie      uint16 `json:"cookie"`
	LoginCookie uint16 `json:"login_cookie"`
}

ObjectTypes contains count of each pdv type in batch.

type PDV

type PDV struct {
	// swagger:allOf v1
	PDVInterface

	PDV []PDVObjectV1 `json:"pdv"`
}

PDV is main data object. swagger:model v1

func (PDV) Version

func (PDV) Version() schema.PDVVersion

type PDVData

type PDVData interface {
	// discriminator: true
	// swagger:name type
	Type() schema.PDVType
}

PDVData is interface for all data types. swagger:model PDVData

type PDVDataCookie

type PDVDataCookie struct {
	// swagger:allOf cookie
	PDVData

	schema.PDVDataCookie
}

PDVDataCookie is PDVData implementation for Cookies(according to https://developer.chrome.com/extensions/cookies). swagger:model cookie

func (PDVDataCookie) Type

func (PDVDataCookie) Type() schema.PDVType

type PDVDataLoginCookie

type PDVDataLoginCookie struct {
	// swagger:allOf login_cookie
	PDVData

	schema.PDVDataLoginCookie
}

PDVDataLoginCookie is the same as PDVDataCookie but with different type. swagger:model login_cookie

func (PDVDataLoginCookie) Type

type PDVInterface

type PDVInterface interface {
	// discriminator: true
	// swagger:name version
	Version() schema.PDVVersion
}

swagger:model PDV

type PDVMeta

type PDVMeta struct {
	// ObjectTypes represents how much certain pdv data pdv contains.
	ObjectTypes ObjectTypes `json:"object_types"`
	Reward      uint64      `json:"reward"`
}

PDVMeta contains info about PDV. swagger:model PDVMeta

type PDVObjectV1

type PDVObjectV1 struct {
	Data []PDVData `json:"data"`

	schema.PDVObjectMetaV1
}

PDVObjectV1 is PDVObject implementation with v1 version. swagger:model PDVObjectV1

Jump to

Keyboard shortcuts

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