Discover Packages
github.com/plgd-dev/device/v2
pkg
ocf
cloud
package
Version:
v2.6.0
Opens a new window with list of versions in this module.
Published: Jul 8, 2025
License: Apache-2.0
Opens a new window with license information.
Imports: 2
Opens a new window with list of imports.
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.
Opens a new window with list of known importers.
Documentation
Documentation
¶
View Source
const (
Base = "/oic"
Secure = Base + "/sec"
SignUp = Secure + "/account"
RefreshToken = Secure + "/tokenrefresh"
SignIn = Secure + "/session"
ResourceDirectory = Base + "/rd"
ResourceDiscovery = Base + "/res"
)
type CoapRefreshTokenRequest struct {
DeviceID string `json:"di"`
UserID string `json:"uid"`
RefreshToken string `json:"refreshtoken"`
}
type CoapRefreshTokenResponse struct {
AccessToken string `json:"accesstoken"`
RefreshToken string `json:"refreshtoken"`
ExpiresIn int64 `json:"expiresin"`
}
type CoapSignInRequest struct {
DeviceID string `json:"di"`
UserID string `json:"uid"`
AccessToken string `json:"accesstoken"`
Login bool `json:"login"`
}
type CoapSignInResponse struct {
ExpiresIn int64 `json:"expiresin"`
}
type CoapSignUpRequest struct {
DeviceID string `json:"di"`
AuthorizationCode string `json:"accesstoken"`
AuthorizationProvider string `json:"authprovider"`
}
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 UnpublishResourcesRequest struct {
DeviceID string
InstanceIDs []int64
}
Source Files
¶
Click to show internal directories.
Click to hide internal directories.