signer

package
v0.0.0-...-ba1c585 Latest Latest
Warning

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

Go to latest
Published: Jun 29, 2017 License: BSD-3-Clause Imports: 11 Imported by: 0

README

Auto generated client for the signer service.

The service is implemented using Cloud Endpoints
https://cloud.google.com/endpoints/

The signer-api.json file is auto generated from the server implementation.

The signer-gen.go file is generated using
google.golang.org/api/google-api-go-generator:

google-api-go-generator --api_json_file=signer-api.json -output=signer-gen.go

Documentation

Overview

Package signer provides access to the .

Usage example:

import "google.golang.org/api/signer/v1"
...
signerService, err := signer.New(oauthHttpClient)

Index

Constants

View Source
const (
	// View your email address
	UserinfoEmailScope = "https://www.googleapis.com/auth/userinfo.email"
)

OAuth2 scopes used by this API.

Variables

This section is empty.

Functions

This section is empty.

Types

type PublicKey

type PublicKey struct {
	Base64 string `json:"base64,omitempty"`
}

type PublicKeyCall

type PublicKeyCall struct {
	// contains filtered or unexported fields
}

func (*PublicKeyCall) Do

func (c *PublicKeyCall) Do() (*PublicKey, error)

func (*PublicKeyCall) Fields

func (c *PublicKeyCall) Fields(s ...googleapi.Field) *PublicKeyCall

Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more information.

type Service

type Service struct {
	BasePath string // API endpoint base URL
	// contains filtered or unexported fields
}

func New

func New(client *http.Client) (*Service, error)

func (*Service) PublicKey

func (s *Service) PublicKey() *PublicKeyCall

PublicKey:

func (*Service) Sign

func (s *Service) Sign(base64 string) *SignCall

Sign:

type SignCall

type SignCall struct {
	// contains filtered or unexported fields
}

func (*SignCall) Do

func (c *SignCall) Do() (*VSignature, error)

func (*SignCall) Fields

func (c *SignCall) Fields(s ...googleapi.Field) *SignCall

Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more information.

type VSignature

type VSignature struct {
	R string `json:"r,omitempty"`

	S string `json:"s,omitempty"`
}

Jump to

Keyboard shortcuts

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