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 ¶
- func RegisterCilentCredentialsServiceHandler(ctx context.Context, mux *runtime.ServeMux, conn *grpc.ClientConn) error
- func RegisterCilentCredentialsServiceHandlerFromEndpoint(ctx context.Context, mux *runtime.ServeMux, endpoint string, ...) (err error)
- func RegisterCilentCredentialsServiceServer(s *grpc.Server, srv CilentCredentialsServiceServer)
- type CilentCredentialsServiceClient
- type CilentCredentialsServiceServer
- type ClientCredentialsCreatedEvent
- func (*ClientCredentialsCreatedEvent) Descriptor() ([]byte, []int)
- func (m *ClientCredentialsCreatedEvent) GetClientId() string
- func (m *ClientCredentialsCreatedEvent) GetClientSecret() string
- func (m *ClientCredentialsCreatedEvent) GetGrantType() string
- func (m *ClientCredentialsCreatedEvent) GetPartnerAttrId() string
- func (m *ClientCredentialsCreatedEvent) GetRequestId() string
- func (*ClientCredentialsCreatedEvent) ProtoMessage()
- func (m *ClientCredentialsCreatedEvent) Reset()
- func (m *ClientCredentialsCreatedEvent) String() string
- type Token
- func (*Token) Descriptor() ([]byte, []int)
- func (m *Token) GetAccessToken() string
- func (m *Token) GetExpiresIn() uint64
- func (m *Token) GetRefreshToken() string
- func (m *Token) GetScope() string
- func (m *Token) GetState() string
- func (m *Token) GetTokenType() string
- func (*Token) ProtoMessage()
- func (m *Token) Reset()
- func (m *Token) String() string
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 ¶
func (m *ClientCredentialsCreatedEvent) String() 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) GetAccessToken ¶
func (*Token) GetExpiresIn ¶
func (*Token) GetRefreshToken ¶
func (*Token) GetTokenType ¶
func (*Token) ProtoMessage ¶
func (*Token) ProtoMessage()
Click to show internal directories.
Click to hide internal directories.