pb

package
v0.0.0-...-8ed464c Latest Latest
Warning

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

Go to latest
Published: Dec 4, 2016 License: MIT Imports: 12 Imported by: 0

Documentation

Overview

Package pb is a generated protocol buffer package.

It is generated from these files:

pb/client_credentials.proto
pb/token.proto

It has these top-level messages:

ClientCredentialsCreatedEvent
Token

Package pb is a reverse proxy.

It translates gRPC into RESTful JSON APIs.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func RegisterCilentCredentialsServiceHandler

func RegisterCilentCredentialsServiceHandler(ctx context.Context, mux *runtime.ServeMux, conn *grpc.ClientConn) error

RegisterCilentCredentialsServiceHandler registers the http handlers for service CilentCredentialsService to "mux". The handlers forward requests to the grpc endpoint over "conn".

func RegisterCilentCredentialsServiceHandlerFromEndpoint

func RegisterCilentCredentialsServiceHandlerFromEndpoint(ctx context.Context, mux *runtime.ServeMux, endpoint string, opts []grpc.DialOption) (err error)

RegisterCilentCredentialsServiceHandlerFromEndpoint is same as RegisterCilentCredentialsServiceHandler but automatically dials to "endpoint" and closes the connection when "ctx" gets done.

func RegisterCilentCredentialsServiceServer

func RegisterCilentCredentialsServiceServer(s *grpc.Server, srv CilentCredentialsServiceServer)

Types

type CilentCredentialsServiceClient

type CilentCredentialsServiceClient interface {
	CreateClientCredentials(ctx context.Context, in *ClientCredentialsCreatedEvent, opts ...grpc.CallOption) (*Token, error)
}

func NewCilentCredentialsServiceClient

func NewCilentCredentialsServiceClient(cc *grpc.ClientConn) CilentCredentialsServiceClient

type CilentCredentialsServiceServer

type CilentCredentialsServiceServer interface {
	CreateClientCredentials(context.Context, *ClientCredentialsCreatedEvent) (*Token, error)
}

type ClientCredentialsCreatedEvent

type ClientCredentialsCreatedEvent struct {
	ClientId      string `protobuf:"bytes,1,opt,name=client_id,json=clientId" json:"client_id,omitempty"`
	ClientSecret  string `protobuf:"bytes,2,opt,name=client_secret,json=clientSecret" json:"client_secret,omitempty"`
	RequestId     string `protobuf:"bytes,3,opt,name=request_id,json=requestId" json:"request_id,omitempty"`
	PartnerAttrId string `protobuf:"bytes,4,opt,name=partner_attr_id,json=partnerAttrId" json:"partner_attr_id,omitempty"`
	GrantType     string `protobuf:"bytes,5,opt,name=grant_type,json=grantType" json:"grant_type,omitempty"`
}

func (*ClientCredentialsCreatedEvent) Descriptor

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

func (*ClientCredentialsCreatedEvent) GetClientId

func (m *ClientCredentialsCreatedEvent) GetClientId() string

func (*ClientCredentialsCreatedEvent) GetClientSecret

func (m *ClientCredentialsCreatedEvent) GetClientSecret() string

func (*ClientCredentialsCreatedEvent) GetGrantType

func (m *ClientCredentialsCreatedEvent) GetGrantType() string

func (*ClientCredentialsCreatedEvent) GetPartnerAttrId

func (m *ClientCredentialsCreatedEvent) GetPartnerAttrId() string

func (*ClientCredentialsCreatedEvent) GetRequestId

func (m *ClientCredentialsCreatedEvent) GetRequestId() string

func (*ClientCredentialsCreatedEvent) ProtoMessage

func (*ClientCredentialsCreatedEvent) ProtoMessage()

func (*ClientCredentialsCreatedEvent) Reset

func (m *ClientCredentialsCreatedEvent) Reset()

func (*ClientCredentialsCreatedEvent) String

type Token

type Token struct {
	AccessToken  string `protobuf:"bytes,1,opt,name=access_token,json=accessToken" json:"access_token,omitempty"`
	TokenType    string `protobuf:"bytes,2,opt,name=token_type,json=tokenType" json:"token_type,omitempty"`
	ExpiresIn    uint64 `protobuf:"varint,3,opt,name=expires_in,json=expiresIn" json:"expires_in,omitempty"`
	RefreshToken string `protobuf:"bytes,4,opt,name=refresh_token,json=refreshToken" json:"refresh_token,omitempty"`
	Scope        string `protobuf:"bytes,5,opt,name=scope" json:"scope,omitempty"`
	State        string `protobuf:"bytes,6,opt,name=state" json:"state,omitempty"`
}

func (*Token) Descriptor

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

func (*Token) GetAccessToken

func (m *Token) GetAccessToken() string

func (*Token) GetExpiresIn

func (m *Token) GetExpiresIn() uint64

func (*Token) GetRefreshToken

func (m *Token) GetRefreshToken() string

func (*Token) GetScope

func (m *Token) GetScope() string

func (*Token) GetState

func (m *Token) GetState() string

func (*Token) GetTokenType

func (m *Token) GetTokenType() string

func (*Token) ProtoMessage

func (*Token) ProtoMessage()

func (*Token) Reset

func (m *Token) Reset()

func (*Token) String

func (m *Token) String() string

Jump to

Keyboard shortcuts

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