cloud

package
v2.6.0 Latest Latest
Warning

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

Go to latest
Published: Jul 8, 2025 License: Apache-2.0 Imports: 2 Imported by: ? modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

Constants

View Source
const (
	Base              = "/oic"
	Secure            = Base + "/sec"
	SignUp            = Secure + "/account"
	RefreshToken      = Secure + "/tokenrefresh"
	SignIn            = Secure + "/session"
	ResourceDirectory = Base + "/rd"
	ResourceDiscovery = Base + "/res"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type CoapRefreshTokenRequest

type CoapRefreshTokenRequest struct {
	DeviceID     string `json:"di"`
	UserID       string `json:"uid"`
	RefreshToken string `json:"refreshtoken"`
}

type CoapRefreshTokenResponse

type CoapRefreshTokenResponse struct {
	AccessToken  string `json:"accesstoken"`
	RefreshToken string `json:"refreshtoken"`
	ExpiresIn    int64  `json:"expiresin"`
}

type CoapSignInRequest

type CoapSignInRequest struct {
	DeviceID    string `json:"di"`
	UserID      string `json:"uid"`
	AccessToken string `json:"accesstoken"`
	Login       bool   `json:"login"`
}

type CoapSignInResponse

type CoapSignInResponse struct {
	ExpiresIn int64 `json:"expiresin"`
}

type CoapSignUpRequest

type CoapSignUpRequest struct {
	DeviceID              string `json:"di"`
	AuthorizationCode     string `json:"accesstoken"`
	AuthorizationProvider string `json:"authprovider"`
}

type CoapSignUpResponse

type CoapSignUpResponse struct {
	AccessToken  string    `yaml:"accessToken" json:"accesstoken"`
	UserID       string    `yaml:"userID" json:"uid"`
	RefreshToken string    `yaml:"refreshToken" json:"refreshtoken"`
	RedirectURI  string    `yaml:"-" json:"redirecturi"`
	ExpiresIn    int64     `yaml:"-" json:"expiresin"`
	ValidUntil   time.Time `yaml:"-" json:"-"`
}

type PublishResourcesRequest

type PublishResourcesRequest struct {
	DeviceID   string               `json:"di"`
	Links      schema.ResourceLinks `json:"links"`
	TimeToLive int                  `json:"ttl"`
}

type UnpublishResourcesRequest

type UnpublishResourcesRequest struct {
	DeviceID    string
	InstanceIDs []int64
}

Jump to

Keyboard shortcuts

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