rpcs

package
v0.0.0-...-35d8de9 Latest Latest
Warning

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

Go to latest
Published: Oct 1, 2019 License: Apache-2.0 Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type BaseResponse

type BaseResponse struct {
	ErrorCode    int    `json:"error_code,omitempty"`
	ErrorMessage string `json:"error_message,omitempty"`
}

BaseResponse defines optional fields included in all responses.

type GetOAuthTokenRequest

type GetOAuthTokenRequest struct {
	Scopes    []string `json:"scopes"`
	Secret    []byte   `json:"secret"`
	AccountID string   `json:"account_id"`
}

GetOAuthTokenRequest is parameters for GetOAuthToken RPC call.

func (*GetOAuthTokenRequest) Validate

func (r *GetOAuthTokenRequest) Validate() error

Validate checks that the request is structurally valid.

type GetOAuthTokenResponse

type GetOAuthTokenResponse struct {
	BaseResponse

	AccessToken string `json:"access_token"`
	Expiry      int64  `json:"expiry"`
}

GetOAuthTokenResponse is returned by GetOAuthToken RPC call.

Jump to

Keyboard shortcuts

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