cloud

package
v2.4.2 Latest Latest
Warning

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

Go to latest
Published: Mar 26, 2024 License: Apache-2.0 Imports: 2 Imported by: 0

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:"-" jsom:"-"`
}

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