Back to

Package rpcs

Latest Go to latest

The latest major version is .

Published: Aug 6, 2020 | License: Apache-2.0 | Module:


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 {

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

GetOAuthTokenResponse is returned by GetOAuthToken RPC call.

Package Files

Documentation was rendered with GOOS=linux and GOARCH=amd64.

Jump to identifier

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to identifier