proto

package
v0.1.2 Latest Latest
Warning

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

Go to latest
Published: Mar 5, 2019 License: Apache-2.0 Imports: 5 Imported by: 1

Documentation

Overview

Package proto is a generated protocol buffer package.

It is generated from these files:

token-provider.proto

It has these top-level messages:

TokenRequest
TokenResponse

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func RegisterTokenProviderServer

func RegisterTokenProviderServer(s *grpc.Server, srv TokenProviderServer)

Types

type TokenProviderClient

type TokenProviderClient interface {
	GetToken(ctx context.Context, in *TokenRequest, opts ...grpc.CallOption) (*TokenResponse, error)
}

func NewTokenProviderClient

func NewTokenProviderClient(cc *grpc.ClientConn) TokenProviderClient

type TokenProviderServer

type TokenProviderServer interface {
	GetToken(context.Context, *TokenRequest) (*TokenResponse, error)
}

type TokenRequest

type TokenRequest struct {
	Params []string `protobuf:"bytes,1,rep,name=params" json:"params,omitempty"`
}

func (*TokenRequest) Descriptor

func (*TokenRequest) Descriptor() ([]byte, []int)

func (*TokenRequest) GetParams

func (m *TokenRequest) GetParams() []string

func (*TokenRequest) ProtoMessage

func (*TokenRequest) ProtoMessage()

func (*TokenRequest) Reset

func (m *TokenRequest) Reset()

func (*TokenRequest) String

func (m *TokenRequest) String() string

type TokenResponse

type TokenResponse struct {
	Success bool   `protobuf:"varint,1,opt,name=success" json:"success,omitempty"`
	Status  int32  `protobuf:"varint,2,opt,name=status" json:"status,omitempty"`
	Token   string `protobuf:"bytes,3,opt,name=token" json:"token,omitempty"`
}

func (*TokenResponse) Descriptor

func (*TokenResponse) Descriptor() ([]byte, []int)

func (*TokenResponse) GetStatus

func (m *TokenResponse) GetStatus() int32

func (*TokenResponse) GetSuccess

func (m *TokenResponse) GetSuccess() bool

func (*TokenResponse) GetToken

func (m *TokenResponse) GetToken() string

func (*TokenResponse) ProtoMessage

func (*TokenResponse) ProtoMessage()

func (*TokenResponse) Reset

func (m *TokenResponse) Reset()

func (*TokenResponse) String

func (m *TokenResponse) String() string

Jump to

Keyboard shortcuts

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