Back to godoc.org

Package rpcs

v0.0.0-...-1557bcf
Latest Go to latest

The latest major version is .

Published: Aug 13, 2020 | License: Apache-2.0 | Module: github.com/luci/luci-go

Index

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.

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