resources

package
v1.3.4 Latest Latest
Warning

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

Go to latest
Published: Oct 14, 2022 License: Apache-2.0 Imports: 4 Imported by: 1

Documentation

Overview

Discoverable Resources https://github.com/openconnectivityfoundation/core/blob/master/swagger2.0/oic.wk.res.swagger.json

Index

Constants

View Source
const (
	ResourceType = "oic.wk.res"
	ResourceURI  = "/oic/res"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type BaselineRepresentation

type BaselineRepresentation struct {
	Interfaces    []string             `json:"if,omitempty"`
	ResourceTypes []string             `json:"rt,omitempty"`
	Links         schema.ResourceLinks `json:"links"`
}

type BaselineResourceDiscovery

type BaselineResourceDiscovery []BaselineRepresentation

type BatchRepresentation

type BatchRepresentation struct {
	HrefRaw string          `json:"href"`
	Content cbor.RawMessage `json:"rep"`
}

func (BatchRepresentation) DeviceID

func (v BatchRepresentation) DeviceID() string

func (BatchRepresentation) Href

func (v BatchRepresentation) Href() string

type BatchResourceDiscovery

type BatchResourceDiscovery []BatchRepresentation

func (BatchResourceDiscovery) Len

func (v BatchResourceDiscovery) Len() int

func (BatchResourceDiscovery) Less

func (v BatchResourceDiscovery) Less(i, j int) bool

func (BatchResourceDiscovery) Sort

func (v BatchResourceDiscovery) Sort()

func (BatchResourceDiscovery) Swap

func (v BatchResourceDiscovery) Swap(i, j int)

Jump to

Keyboard shortcuts

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