ownview

package
v1.3.1 Latest Latest
Warning

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

Go to latest
Published: May 23, 2023 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 PostData

type PostData struct {
	ProviderNames []string                          `json:"providers" hash:"name:Provider"`
	Features      []comparison.HeadedFeatureStrings `json:"features" hash:"name:Features"`
}

PostData represents the post data to create a ownview.

func (PostData) Hash

func (v PostData) Hash() string

Hash returns a hash of the PostData

func (PostData) MarshalBinary

func (v PostData) MarshalBinary() ([]byte, error)

MarshalBinary marshals PostData into bytes.

func (*PostData) ToComparisonViewSpec

func (v *PostData) ToComparisonViewSpec(loadedFeatures []features.HeadedFeature) (p comparison.ViewSpec, notLoaded []string)

ToComparisonViewSpec creates a ViewSpec from PostData and the given loaded features.

func (*PostData) UnmarshalBinary

func (v *PostData) UnmarshalBinary(data []byte) error

UnmarshalBinary unmarshalls bytes into OwnviewPostData.

Jump to

Keyboard shortcuts

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