apirequest

package
v0.107.2 Latest Latest
Warning

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

Go to latest
Published: Mar 23, 2024 License: GPL-2.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 AssetAttributesGET

type AssetAttributesGET struct {
	Params struct {
		AssetID int64 `json:"asset_id" param:"asset_id"`
	}
}

func NewAssetAttributesGET

func NewAssetAttributesGET(assetID int64) (request AssetAttributesGET, err error)

func (AssetAttributesGET) Complete

func (request AssetAttributesGET) Complete() bool

func (AssetAttributesGET) Request

func (request AssetAttributesGET) Request(v *voki.Voki) (response apiresponse.AssetAttributesGET, err error)

type AssetDELETE

type AssetDELETE struct {
	Params struct {
		AssetID int64 `json:"asset_id" param:"asset_id"`
	}
}

func NewAssetDELETE

func NewAssetDELETE(assetID int64) (request AssetDELETE, err error)

func (AssetDELETE) Complete

func (request AssetDELETE) Complete() bool

func (AssetDELETE) Request

func (request AssetDELETE) Request(v *voki.Voki) (response apiresponse.AssetDELETE, err error)

type AssetDescriptionGET

type AssetDescriptionGET struct {
	Params struct {
		AssetID int64 `json:"asset_id" param:"asset_id"`
	}
}

func NewAssetDescriptionGET

func NewAssetDescriptionGET(assetID int64) (request AssetDescriptionGET, err error)

func (AssetDescriptionGET) Complete

func (request AssetDescriptionGET) Complete() bool

func (AssetDescriptionGET) Request

func (request AssetDescriptionGET) Request(v *voki.Voki) (response apiresponse.AssetDescriptionGET, err error)

type AssetDescriptionPUT

type AssetDescriptionPUT struct {
	Data struct {
		Description string `json:"description"`
	}
	Params struct {
		AssetID int64 `json:"asset_id" param:"asset_id"`
	}
}

func NewAssetDescriptionPUT

func NewAssetDescriptionPUT(assetID int64, description string) (request AssetDescriptionPUT, err error)

func (AssetDescriptionPUT) Complete

func (request AssetDescriptionPUT) Complete() bool

func (AssetDescriptionPUT) Request

func (request AssetDescriptionPUT) Request(v *voki.Voki) (response apiresponse.AssetDescriptionPUT, err error)

type AssetGET

type AssetGET struct {
	Params struct {
		AssetID int64 `json:"asset_id" param:"asset_id"`
	}
}

func NewAssetGET

func NewAssetGET(assetID int64) (request AssetGET, err error)

func (AssetGET) Complete

func (request AssetGET) Complete() bool

func (AssetGET) Request

func (request AssetGET) Request(v *voki.Voki) (response apiresponse.AssetGET, err error)

type AssetRestorePOST

type AssetRestorePOST struct {
	Params struct {
		AssetID int64 `json:"asset_id" param:"asset_id"`
	}
}

func NewAssetRestorePOST

func NewAssetRestorePOST(assetID int64) (request AssetRestorePOST, err error)

func (AssetRestorePOST) Complete

func (request AssetRestorePOST) Complete() bool

func (AssetRestorePOST) Request

func (request AssetRestorePOST) Request(v *voki.Voki) (response apiresponse.AssetRestorePOST, err error)

type AssetStatusDELETE

type AssetStatusDELETE struct {
	Params struct {
		AssetID int64 `json:"asset_id" param:"asset_id"`
	}
}

func NewAssetStatusDELETE

func NewAssetStatusDELETE(assetID int64) (request AssetStatusDELETE, err error)

func (AssetStatusDELETE) Complete

func (request AssetStatusDELETE) Complete() bool

func (AssetStatusDELETE) Request

func (request AssetStatusDELETE) Request(v *voki.Voki) (response apiresponse.AssetStatusDELETE, err error)

type AssetStatusGET

type AssetStatusGET struct {
	Params struct {
		AssetID int64 `json:"asset_id" param:"asset_id"`
	}
}

func NewAssetStatusGET

func NewAssetStatusGET(assetID int64) (request AssetStatusGET, err error)

func (AssetStatusGET) Complete

func (request AssetStatusGET) Complete() bool

func (AssetStatusGET) Request

func (request AssetStatusGET) Request(v *voki.Voki) (response apiresponse.AssetStatusGET, err error)

type AssetStatusPUT

type AssetStatusPUT struct {
	Data struct {
		Status string `json:"status"`
	}
	Params struct {
		AssetID int64 `json:"asset_id" param:"asset_id"`
	}
}

func NewAssetStatusPUT

func NewAssetStatusPUT(assetID int64, status string) (request AssetStatusPUT, err error)

func (AssetStatusPUT) Complete

func (request AssetStatusPUT) Complete() bool

func (AssetStatusPUT) Request

func (request AssetStatusPUT) Request(v *voki.Voki) (response apiresponse.AssetStatusPUT, err error)

type AssetTargetDELETE

type AssetTargetDELETE struct {
	Params struct {
		AssetID int64 `json:"asset_id" param:"asset_id"`
	}
}

func NewAssetTargetDELETE

func NewAssetTargetDELETE(assetID int64) (request AssetTargetDELETE, err error)

func (AssetTargetDELETE) Complete

func (request AssetTargetDELETE) Complete() bool

func (AssetTargetDELETE) Request

func (request AssetTargetDELETE) Request(v *voki.Voki) (response apiresponse.AssetTargetDELETE, err error)

type AssetTargetGET

type AssetTargetGET struct {
	Params struct {
		AssetID int64 `json:"asset_id" param:"asset_id"`
	}
}

func NewAssetTargetGET

func NewAssetTargetGET(assetID int64) (request AssetTargetGET, err error)

func (AssetTargetGET) Complete

func (request AssetTargetGET) Complete() bool

func (AssetTargetGET) Request

func (request AssetTargetGET) Request(v *voki.Voki) (response apiresponse.AssetTargetGET, err error)

type AssetTargetPUT

type AssetTargetPUT struct {
	Data struct {
		Target int64 `json:"target"`
	}
	Params struct {
		AssetID int64 `json:"asset_id" param:"asset_id"`
	}
}

func NewAssetTargetPUT

func NewAssetTargetPUT(assetID, target int64) (request AssetTargetPUT, err error)

func (AssetTargetPUT) Complete

func (request AssetTargetPUT) Complete() bool

func (AssetTargetPUT) Request

func (request AssetTargetPUT) Request(v *voki.Voki) (response apiresponse.AssetTargetPUT, err error)

type AssetsAllGET

type AssetsAllGET struct {
	Data struct {
		Page     int `json:"page"`
		PageSize int `json:"page_size"`
	}
}

func NewAssetsAllGET

func NewAssetsAllGET(page, pageSize int) (request AssetsAllGET, err error)

func (AssetsAllGET) Complete

func (request AssetsAllGET) Complete() bool

func (AssetsAllGET) Request

func (request AssetsAllGET) Request(v *voki.Voki) (response apiresponse.AssetsAllGET, err error)

type AssetsDELETE

type AssetsDELETE struct {
	Data struct {
		AssetIDs []int64 `json:"asset_ids"`
	}
}

func NewAssetsDELETE

func NewAssetsDELETE(assetIDs []int64) (request AssetsDELETE, err error)

func (AssetsDELETE) Complete

func (request AssetsDELETE) Complete() bool

func (AssetsDELETE) Request

func (request AssetsDELETE) Request(v *voki.Voki) (response apiresponse.AssetsDELETE, err error)

type AssetsDetailedGET

type AssetsDetailedGET struct {
	QueryParams struct {
		Deleted  bool `json:"deleted" query:"deleted"`
		Page     int  `json:"page" query:"page"`
		PageSize int  `json:"page_size" query:"page_size"`
	}
}

func NewAssetsDetailedGET

func NewAssetsDetailedGET(deleted bool, page int, pageSize int) (request AssetsDetailedGET, err error)

func (AssetsDetailedGET) Complete

func (request AssetsDetailedGET) Complete() bool

func (AssetsDetailedGET) Request

func (request AssetsDetailedGET) Request(v *voki.Voki) (response apiresponse.AssetsDetailedGET, err error)

type AssetsGET

type AssetsGET struct {
	Data struct {
		Deleted  bool `json:"deleted"`
		Page     int  `json:"page"`
		PageSize int  `json:"page_size"`
	}
}

func NewAssetsGET

func NewAssetsGET(deleted bool, page, pageSize int) (request AssetsGET, err error)

func (AssetsGET) Complete

func (request AssetsGET) Complete() bool

func (AssetsGET) Request

func (request AssetsGET) Request(v *voki.Voki) (response apiresponse.AssetsGET, err error)

type AssetsPOST

type AssetsPOST struct {
	Data struct {
		Assets []models.Asset `json:"assets"`
	}
}

func NewAssetsPOST

func NewAssetsPOST(assets []models.Asset) (request AssetsPOST, err error)

func (AssetsPOST) Complete

func (request AssetsPOST) Complete() bool

func (AssetsPOST) Request

func (request AssetsPOST) Request(v *voki.Voki) (response apiresponse.AssetsPOST, err error)

type AssetsRestorePOST

type AssetsRestorePOST struct {
	Data struct {
		AssetIDs []int64 `json:"asset_ids"`
	}
}

func NewAssetsRestorePOST

func NewAssetsRestorePOST(assetIDs []int64) (request AssetsRestorePOST, err error)

func (AssetsRestorePOST) Complete

func (request AssetsRestorePOST) Complete() bool

func (AssetsRestorePOST) Request

func (request AssetsRestorePOST) Request(v *voki.Voki) (response apiresponse.AssetsRestorePOST, err error)

type AttributeAllowEmptyValueGET added in v0.96.0

type AttributeAllowEmptyValueGET struct {
	Params struct {
		AttributeID int64 `json:"attribute_id" param:"attribute_id"`
	}
}

func NewAttributeAllowEmptyValueGET added in v0.96.0

func NewAttributeAllowEmptyValueGET(attributeID int64) (request AttributeAllowEmptyValueGET, err error)

func (AttributeAllowEmptyValueGET) Complete added in v0.96.0

func (request AttributeAllowEmptyValueGET) Complete() bool

func (AttributeAllowEmptyValueGET) Request added in v0.96.0

func (request AttributeAllowEmptyValueGET) Request(v *voki.Voki) (response apiresponse.AttributeAllowEmptyValueGET, err error)

type AttributeAllowEmptyValuePUT

type AttributeAllowEmptyValuePUT struct {
	Data struct {
		AllowEmptyValue bool `json:"allow_empty_value"`
	}
	Params struct {
		AttributeID int64 `json:"attribute_id" param:"attribute_id"`
	}
}

func NewAttributeAllowEmptyValuePUT

func NewAttributeAllowEmptyValuePUT(attributeID int64, allowEmptyValue bool) (request AttributeAllowEmptyValuePUT, err error)

func (AttributeAllowEmptyValuePUT) Complete

func (request AttributeAllowEmptyValuePUT) Complete() bool

func (AttributeAllowEmptyValuePUT) Request

func (request AttributeAllowEmptyValuePUT) Request(v *voki.Voki) (response apiresponse.AttributeAllowEmptyValuePUT, err error)

type AttributeAssetsGET

type AttributeAssetsGET struct {
	Params struct {
		AttributeID int64 `json:"attribute_id" param:"attribute_id"`
	}
}

func NewAttributeAssetsGET

func NewAttributeAssetsGET(attributeID int64) (request AttributeAssetsGET, err error)

func (AttributeAssetsGET) Complete

func (request AttributeAssetsGET) Complete() bool

func (AttributeAssetsGET) Request

func (request AttributeAssetsGET) Request(v *voki.Voki) (response apiresponse.AttributeAssetsGET, err error)

type AttributeDELETE

type AttributeDELETE struct {
	Params struct {
		AttributeID int64 `json:"attribute_id" param:"attribute_id"`
	}
}

func NewAttributeDELETE

func NewAttributeDELETE(attributeID int64) (request AttributeDELETE, err error)

func (AttributeDELETE) Complete

func (request AttributeDELETE) Complete() bool

func (AttributeDELETE) Request

func (request AttributeDELETE) Request(v *voki.Voki) (response apiresponse.AttributeDELETE, err error)

type AttributeGET

type AttributeGET struct {
	Params struct {
		AttributeID int64 `json:"attribute_id" param:"attribute_id"`
	}
}

func NewAttributeGET

func NewAttributeGET(attributeID int64) (request AttributeGET, err error)

func (AttributeGET) Complete

func (request AttributeGET) Complete() bool

func (AttributeGET) Request

func (request AttributeGET) Request(v *voki.Voki) (response apiresponse.AttributeGET, err error)

type AttributeKeyGET added in v0.95.0

type AttributeKeyGET struct {
	Params struct {
		AttributeID int64 `json:"attribute_id" param:"attribute_id"`
	}
}

func NewAttributeKeyGET added in v0.95.0

func NewAttributeKeyGET(attributeID int64) (request AttributeKeyGET, err error)

func (AttributeKeyGET) Complete added in v0.95.0

func (request AttributeKeyGET) Complete() bool

func (AttributeKeyGET) Request added in v0.95.0

func (request AttributeKeyGET) Request(v *voki.Voki) (response apiresponse.AttributeKeyGET, err error)

type AttributeKeyPUT

type AttributeKeyPUT struct {
	Data struct {
		Key string `json:"key"`
	}
	Params struct {
		AttributeID int64 `json:"attribute_id" param:"attribute_id"`
	}
}

func NewAttributeKeyPUT

func NewAttributeKeyPUT(attributeID int64, key string) (request AttributeKeyPUT, err error)

func (AttributeKeyPUT) Complete

func (request AttributeKeyPUT) Complete() bool

func (AttributeKeyPUT) Request

func (request AttributeKeyPUT) Request(v *voki.Voki) (response apiresponse.AttributeKeyPUT, err error)

type AttributeRestorePOST

type AttributeRestorePOST struct {
	Params struct {
		AttributeID int64 `json:"attribute_id" param:"attribute_id"`
	}
}

func NewAttributeRestorePOST

func NewAttributeRestorePOST(attributeID int64) (request AttributeRestorePOST, err error)

func (AttributeRestorePOST) Complete

func (request AttributeRestorePOST) Complete() bool

func (AttributeRestorePOST) Request

func (request AttributeRestorePOST) Request(v *voki.Voki) (response apiresponse.AttributeRestorePOST, err error)

type AttributesDELETE

type AttributesDELETE struct {
	Data struct {
		AttributeIDs []int64 `json:"attribute_ids"`
	}
}

func NewAttributesDELETE

func NewAttributesDELETE(attributeIDs []int64) (request AttributesDELETE, err error)

func (AttributesDELETE) Complete

func (request AttributesDELETE) Complete() bool

func (AttributesDELETE) Request

func (request AttributesDELETE) Request(v *voki.Voki) (response apiresponse.AttributesDELETE, err error)

type AttributesGET

type AttributesGET struct{}

func NewAttributesGET

func NewAttributesGET() (request AttributesGET, err error)

func (AttributesGET) Complete

func (request AttributesGET) Complete() bool

func (AttributesGET) Request

func (request AttributesGET) Request(v *voki.Voki) (response apiresponse.AttributesGET, err error)

type AttributesPOST

type AttributesPOST struct {
	Data struct {
		Attributes []models.Attribute `json:"attributes"`
	}
}

func NewAttributesPOST

func NewAttributesPOST(attributes []models.Attribute) (request AttributesPOST, err error)

func (AttributesPOST) Complete

func (request AttributesPOST) Complete() bool

func (AttributesPOST) Request

func (request AttributesPOST) Request(v *voki.Voki) (response apiresponse.AttributesPOST, err error)

type EventsGET

type EventsGET struct {
	QueryParams struct {
		Descending bool `json:"descending" query:"descending"`
	}
}

func NewEventsGET

func NewEventsGET(descending bool) (request EventsGET, err error)

func (EventsGET) Complete

func (request EventsGET) Complete() bool

func (EventsGET) Request

func (request EventsGET) Request(v *voki.Voki) (response apiresponse.EventsGET, err error)

type HealthGET

type HealthGET struct{}

func NewHealthGET

func NewHealthGET() (request HealthGET)

func (HealthGET) Complete

func (request HealthGET) Complete() bool

func (HealthGET) Request

func (request HealthGET) Request(v *voki.Voki) (response apiresponse.HealthGET, err error)

type SeedPOST

type SeedPOST struct{}

func NewSeedPOST

func NewSeedPOST() (request SeedPOST, err error)

func (SeedPOST) Complete

func (request SeedPOST) Complete() bool

func (SeedPOST) Request

func (request SeedPOST) Request(v *voki.Voki) (response apiresponse.SeedPOST, err error)

type SpecGET added in v0.87.0

type SpecGET struct{}

func NewSpecGET added in v0.87.0

func NewSpecGET() (request SpecGET, err error)

func (SpecGET) Complete added in v0.87.0

func (request SpecGET) Complete() bool

func (SpecGET) Request added in v0.87.0

func (request SpecGET) Request(v *voki.Voki) (response apiresponse.SpecGET, err error)

type TagDELETE added in v0.78.0

type TagDELETE struct {
	Params struct {
		TagID int64 `json:"tag_id" param:"tag_id"`
	}
}

func NewTagDELETE added in v0.78.0

func NewTagDELETE(tagID int64) (request TagDELETE, err error)

func (TagDELETE) Complete added in v0.78.0

func (request TagDELETE) Complete() bool

func (TagDELETE) Request added in v0.78.0

func (request TagDELETE) Request(v *voki.Voki) (response apiresponse.TagDELETE, err error)

type TagDetailedGET added in v0.78.0

type TagDetailedGET struct {
	Params struct {
		TagID int64 `json:"tag_id" param:"tag_id"`
	}
}

func NewTagDetailedGET added in v0.78.0

func NewTagDetailedGET(tagID int64) (request TagDetailedGET, err error)

func (TagDetailedGET) Complete added in v0.78.0

func (request TagDetailedGET) Complete() bool

func (TagDetailedGET) Request added in v0.78.0

func (request TagDetailedGET) Request(v *voki.Voki) (response apiresponse.TagDetailedGET, err error)

type TagGET added in v0.78.0

type TagGET struct {
	Params struct {
		TagID int64 `json:"tag_id" param:"tag_id"`
	}
}

func NewTagGET added in v0.78.0

func NewTagGET(tagID int64) (request TagGET, err error)

func (TagGET) Complete added in v0.78.0

func (request TagGET) Complete() bool

func (TagGET) Request added in v0.78.0

func (request TagGET) Request(v *voki.Voki) (response apiresponse.TagGET, err error)

type TagValueGET added in v0.78.0

type TagValueGET struct {
	Params struct {
		TagID int64 `json:"tag_id" param:"tag_id"`
	}
}

func NewTagValueGET added in v0.78.0

func NewTagValueGET(tagID int64) (request TagValueGET, err error)

func (TagValueGET) Complete added in v0.78.0

func (request TagValueGET) Complete() bool

func (TagValueGET) Request added in v0.78.0

func (request TagValueGET) Request(v *voki.Voki) (response apiresponse.TagValueGET, err error)

type TagValuePUT added in v0.78.0

type TagValuePUT struct {
	Data struct {
		Value string `json:"value"`
	}
	Params struct {
		TagID int64 `json:"tag_id" param:"tag_id"`
	}
}

func NewTagValuePUT added in v0.78.0

func NewTagValuePUT(tagID int64, value string) (request TagValuePUT, err error)

func (TagValuePUT) Complete added in v0.78.0

func (request TagValuePUT) Complete() bool

func (TagValuePUT) Request added in v0.78.0

func (request TagValuePUT) Request(v *voki.Voki) (response apiresponse.TagValuePUT, err error)

type TagsDELETE added in v0.78.0

type TagsDELETE struct {
	Data struct {
		TagIDs []int64 `json:"tag_ids"`
	}
}

func NewTagsDELETE added in v0.78.0

func NewTagsDELETE(tagIDs []int64) (request TagsDELETE, err error)

func (TagsDELETE) Complete added in v0.78.0

func (request TagsDELETE) Complete() bool

func (TagsDELETE) Request added in v0.78.0

func (request TagsDELETE) Request(v *voki.Voki) (response apiresponse.TagsDELETE, err error)

type TagsGET added in v0.78.0

type TagsGET struct{}

func NewTagsGET added in v0.78.0

func NewTagsGET() (request TagsGET, err error)

func (TagsGET) Complete added in v0.78.0

func (request TagsGET) Complete() bool

func (TagsGET) Request added in v0.78.0

func (request TagsGET) Request(v *voki.Voki) (response apiresponse.TagsGET, err error)

type TagsPOST added in v0.78.0

type TagsPOST struct {
	Data struct {
		Tags []models.Tag `json:"tags"`
	}
}

func NewTagsPOST added in v0.78.0

func NewTagsPOST(tags []models.Tag) (request TagsPOST, err error)

func (TagsPOST) Complete added in v0.78.0

func (request TagsPOST) Complete() bool

func (TagsPOST) Request added in v0.78.0

func (request TagsPOST) Request(v *voki.Voki) (response apiresponse.TagsPOST, err error)

Jump to

Keyboard shortcuts

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