pb

package
v0.0.0-...-e5acbb5 Latest Latest
Warning

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

Go to latest
Published: Jul 24, 2021 License: MIT Imports: 30 Imported by: 1

Documentation

Overview

Package pb is a reverse proxy.

It translates gRPC into RESTful JSON APIs.

Code generated by proroc-gen-graphql, DO NOT EDIT.

Index

Constants

This section is empty.

Variables

View Source
var File_pb_authentication_proto protoreflect.FileDescriptor

Functions

func Gql__input_LoginCallbackRequest

func Gql__input_LoginCallbackRequest() *graphql.InputObject

func Gql__input_LoginCallbackResponse

func Gql__input_LoginCallbackResponse() *graphql.InputObject

func Gql__input_LoginResponse

func Gql__input_LoginResponse() *graphql.InputObject

func Gql__input_ValidateUserLoginRequest

func Gql__input_ValidateUserLoginRequest() *graphql.InputObject

func Gql__input_ValidateUserLoginResponse

func Gql__input_ValidateUserLoginResponse() *graphql.InputObject

func Gql__type_LoginCallbackRequest

func Gql__type_LoginCallbackRequest() *graphql.Object

func Gql__type_LoginCallbackResponse

func Gql__type_LoginCallbackResponse() *graphql.Object

func Gql__type_LoginResponse

func Gql__type_LoginResponse() *graphql.Object

func Gql__type_ValidateUserLoginRequest

func Gql__type_ValidateUserLoginRequest() *graphql.Object

func Gql__type_ValidateUserLoginResponse

func Gql__type_ValidateUserLoginResponse() *graphql.Object

func RegisterAuthenticationsHandler

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

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

func RegisterAuthenticationsHandlerClient

func RegisterAuthenticationsHandlerClient(ctx context.Context, mux *runtime.ServeMux, client AuthenticationsClient) error

RegisterAuthenticationsHandlerClient registers the http handlers for service Authentications to "mux". The handlers forward requests to the grpc endpoint over the given implementation of "AuthenticationsClient". Note: the gRPC framework executes interceptors within the gRPC handler. If the passed in "AuthenticationsClient" doesn't go through the normal gRPC flow (creating a gRPC client etc.) then it will be up to the passed in "AuthenticationsClient" to call the correct interceptors.

func RegisterAuthenticationsHandlerFromEndpoint

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

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

func RegisterAuthenticationsHandlerServer

func RegisterAuthenticationsHandlerServer(ctx context.Context, mux *runtime.ServeMux, server AuthenticationsServer) error

RegisterAuthenticationsHandlerServer registers the http handlers for service Authentications to "mux". UnaryRPC :call AuthenticationsServer directly. StreamingRPC :currently unsupported pending https://github.com/grpc/grpc-go/issues/906. Note that using this registration option will cause many gRPC library features to stop working. Consider using RegisterAuthenticationsHandlerFromEndpoint instead.

func RegisterAuthenticationsServer

func RegisterAuthenticationsServer(s *grpc.Server, srv AuthenticationsServer)

func RegisterValidateLoginServiceServer

func RegisterValidateLoginServiceServer(s *grpc.Server, srv ValidateLoginServiceServer)

Types

type AuthenticationsClient

type AuthenticationsClient interface {
	// Login provide a url of External OAuth login endpoint (Auth0)
	Login(ctx context.Context, in *empty.Empty, opts ...grpc.CallOption) (*LoginResponse, error)
	// LoginCallback receives a callback  from external OAuth application
	LoginCallback(ctx context.Context, in *LoginCallbackRequest, opts ...grpc.CallOption) (*LoginCallbackResponse, error)
	Logout(ctx context.Context, in *empty.Empty, opts ...grpc.CallOption) (*empty.Empty, error)
}

AuthenticationsClient is the client API for Authentications service.

For semantics around ctx use and closing/ending streaming RPCs, please refer to https://pkg.go.dev/google.golang.org/grpc/?tab=doc#ClientConn.NewStream.

type AuthenticationsServer

type AuthenticationsServer interface {
	// Login provide a url of External OAuth login endpoint (Auth0)
	Login(context.Context, *empty.Empty) (*LoginResponse, error)
	// LoginCallback receives a callback  from external OAuth application
	LoginCallback(context.Context, *LoginCallbackRequest) (*LoginCallbackResponse, error)
	Logout(context.Context, *empty.Empty) (*empty.Empty, error)
}

AuthenticationsServer is the server API for Authentications service. All implementations should embed UnimplementedAuthenticationsServer for forward compatibility

type LoginCallbackRequest

type LoginCallbackRequest struct {
	State string `protobuf:"bytes,1,opt,name=state,proto3" json:"state,omitempty"`
	Code  string `protobuf:"bytes,2,opt,name=code,proto3" json:"code,omitempty"`
	// contains filtered or unexported fields
}

func (*LoginCallbackRequest) Descriptor deprecated

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

Deprecated: Use LoginCallbackRequest.ProtoReflect.Descriptor instead.

func (*LoginCallbackRequest) GetCode

func (x *LoginCallbackRequest) GetCode() string

func (*LoginCallbackRequest) GetState

func (x *LoginCallbackRequest) GetState() string

func (*LoginCallbackRequest) ProtoMessage

func (*LoginCallbackRequest) ProtoMessage()

func (*LoginCallbackRequest) ProtoReflect

func (x *LoginCallbackRequest) ProtoReflect() protoreflect.Message

func (*LoginCallbackRequest) Reset

func (x *LoginCallbackRequest) Reset()

func (*LoginCallbackRequest) String

func (x *LoginCallbackRequest) String() string

func (*LoginCallbackRequest) Validate

func (m *LoginCallbackRequest) Validate() error

Validate checks the field values on LoginCallbackRequest with the rules defined in the proto definition for this message. If any rules are violated, an error is returned.

type LoginCallbackRequestValidationError

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

LoginCallbackRequestValidationError is the validation error returned by LoginCallbackRequest.Validate if the designated constraints aren't met.

func (LoginCallbackRequestValidationError) Cause

Cause function returns cause value.

func (LoginCallbackRequestValidationError) Error

Error satisfies the builtin error interface

func (LoginCallbackRequestValidationError) ErrorName

ErrorName returns error name.

func (LoginCallbackRequestValidationError) Field

Field function returns field value.

func (LoginCallbackRequestValidationError) Key

Key function returns key value.

func (LoginCallbackRequestValidationError) Reason

Reason function returns reason value.

type LoginCallbackResponse

type LoginCallbackResponse struct {
	IdToken     string `protobuf:"bytes,1,opt,name=id_token,json=idToken,proto3" json:"id_token,omitempty"`
	AccessToken string `protobuf:"bytes,2,opt,name=access_token,json=accessToken,proto3" json:"access_token,omitempty"`
	UserId      string `protobuf:"bytes,3,opt,name=user_id,json=userId,proto3" json:"user_id,omitempty"`
	// contains filtered or unexported fields
}

func (*LoginCallbackResponse) Descriptor deprecated

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

Deprecated: Use LoginCallbackResponse.ProtoReflect.Descriptor instead.

func (*LoginCallbackResponse) GetAccessToken

func (x *LoginCallbackResponse) GetAccessToken() string

func (*LoginCallbackResponse) GetIdToken

func (x *LoginCallbackResponse) GetIdToken() string

func (*LoginCallbackResponse) GetUserId

func (x *LoginCallbackResponse) GetUserId() string

func (*LoginCallbackResponse) ProtoMessage

func (*LoginCallbackResponse) ProtoMessage()

func (*LoginCallbackResponse) ProtoReflect

func (x *LoginCallbackResponse) ProtoReflect() protoreflect.Message

func (*LoginCallbackResponse) Reset

func (x *LoginCallbackResponse) Reset()

func (*LoginCallbackResponse) String

func (x *LoginCallbackResponse) String() string

func (*LoginCallbackResponse) Validate

func (m *LoginCallbackResponse) Validate() error

Validate checks the field values on LoginCallbackResponse with the rules defined in the proto definition for this message. If any rules are violated, an error is returned.

type LoginCallbackResponseValidationError

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

LoginCallbackResponseValidationError is the validation error returned by LoginCallbackResponse.Validate if the designated constraints aren't met.

func (LoginCallbackResponseValidationError) Cause

Cause function returns cause value.

func (LoginCallbackResponseValidationError) Error

Error satisfies the builtin error interface

func (LoginCallbackResponseValidationError) ErrorName

ErrorName returns error name.

func (LoginCallbackResponseValidationError) Field

Field function returns field value.

func (LoginCallbackResponseValidationError) Key

Key function returns key value.

func (LoginCallbackResponseValidationError) Reason

Reason function returns reason value.

type LoginResponse

type LoginResponse struct {
	Url string `protobuf:"bytes,1,opt,name=url,proto3" json:"url,omitempty"`
	// contains filtered or unexported fields
}

func (*LoginResponse) Descriptor deprecated

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

Deprecated: Use LoginResponse.ProtoReflect.Descriptor instead.

func (*LoginResponse) GetUrl

func (x *LoginResponse) GetUrl() string

func (*LoginResponse) ProtoMessage

func (*LoginResponse) ProtoMessage()

func (*LoginResponse) ProtoReflect

func (x *LoginResponse) ProtoReflect() protoreflect.Message

func (*LoginResponse) Reset

func (x *LoginResponse) Reset()

func (*LoginResponse) String

func (x *LoginResponse) String() string

func (*LoginResponse) Validate

func (m *LoginResponse) Validate() error

Validate checks the field values on LoginResponse with the rules defined in the proto definition for this message. If any rules are violated, an error is returned.

type LoginResponseValidationError

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

LoginResponseValidationError is the validation error returned by LoginResponse.Validate if the designated constraints aren't met.

func (LoginResponseValidationError) Cause

Cause function returns cause value.

func (LoginResponseValidationError) Error

Error satisfies the builtin error interface

func (LoginResponseValidationError) ErrorName

func (e LoginResponseValidationError) ErrorName() string

ErrorName returns error name.

func (LoginResponseValidationError) Field

Field function returns field value.

func (LoginResponseValidationError) Key

Key function returns key value.

func (LoginResponseValidationError) Reason

Reason function returns reason value.

type UnimplementedAuthenticationsServer

type UnimplementedAuthenticationsServer struct {
}

UnimplementedAuthenticationsServer should be embedded to have forward compatible implementations.

func (UnimplementedAuthenticationsServer) Login

func (UnimplementedAuthenticationsServer) LoginCallback

func (UnimplementedAuthenticationsServer) Logout

type UnimplementedValidateLoginServiceServer

type UnimplementedValidateLoginServiceServer struct {
}

UnimplementedValidateLoginServiceServer should be embedded to have forward compatible implementations.

func (UnimplementedValidateLoginServiceServer) ValidateUserLogin

type UnsafeAuthenticationsServer

type UnsafeAuthenticationsServer interface {
	// contains filtered or unexported methods
}

UnsafeAuthenticationsServer may be embedded to opt out of forward compatibility for this service. Use of this interface is not recommended, as added methods to AuthenticationsServer will result in compilation errors.

type UnsafeValidateLoginServiceServer

type UnsafeValidateLoginServiceServer interface {
	// contains filtered or unexported methods
}

UnsafeValidateLoginServiceServer may be embedded to opt out of forward compatibility for this service. Use of this interface is not recommended, as added methods to ValidateLoginServiceServer will result in compilation errors.

type ValidateLoginServiceClient

type ValidateLoginServiceClient interface {
	ValidateUserLogin(ctx context.Context, in *ValidateUserLoginRequest, opts ...grpc.CallOption) (*ValidateUserLoginResponse, error)
}

ValidateLoginServiceClient is the client API for ValidateLoginService service.

For semantics around ctx use and closing/ending streaming RPCs, please refer to https://pkg.go.dev/google.golang.org/grpc/?tab=doc#ClientConn.NewStream.

type ValidateLoginServiceServer

type ValidateLoginServiceServer interface {
	ValidateUserLogin(context.Context, *ValidateUserLoginRequest) (*ValidateUserLoginResponse, error)
}

ValidateLoginServiceServer is the server API for ValidateLoginService service. All implementations should embed UnimplementedValidateLoginServiceServer for forward compatibility

type ValidateUserLoginRequest

type ValidateUserLoginRequest struct {

	//Id is the user Unique identifier
	Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"`
	// Password  is the user password
	Password string `protobuf:"bytes,2,opt,name=password,proto3" json:"password,omitempty"`
	// contains filtered or unexported fields
}

ValidateUserLoginRequest contains user login credential.

func (*ValidateUserLoginRequest) Descriptor deprecated

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

Deprecated: Use ValidateUserLoginRequest.ProtoReflect.Descriptor instead.

func (*ValidateUserLoginRequest) GetId

func (x *ValidateUserLoginRequest) GetId() string

func (*ValidateUserLoginRequest) GetPassword

func (x *ValidateUserLoginRequest) GetPassword() string

func (*ValidateUserLoginRequest) ProtoMessage

func (*ValidateUserLoginRequest) ProtoMessage()

func (*ValidateUserLoginRequest) ProtoReflect

func (x *ValidateUserLoginRequest) ProtoReflect() protoreflect.Message

func (*ValidateUserLoginRequest) Reset

func (x *ValidateUserLoginRequest) Reset()

func (*ValidateUserLoginRequest) String

func (x *ValidateUserLoginRequest) String() string

func (*ValidateUserLoginRequest) Validate

func (m *ValidateUserLoginRequest) Validate() error

Validate checks the field values on ValidateUserLoginRequest with the rules defined in the proto definition for this message. If any rules are violated, an error is returned.

type ValidateUserLoginRequestValidationError

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

ValidateUserLoginRequestValidationError is the validation error returned by ValidateUserLoginRequest.Validate if the designated constraints aren't met.

func (ValidateUserLoginRequestValidationError) Cause

Cause function returns cause value.

func (ValidateUserLoginRequestValidationError) Error

Error satisfies the builtin error interface

func (ValidateUserLoginRequestValidationError) ErrorName

ErrorName returns error name.

func (ValidateUserLoginRequestValidationError) Field

Field function returns field value.

func (ValidateUserLoginRequestValidationError) Key

Key function returns key value.

func (ValidateUserLoginRequestValidationError) Reason

Reason function returns reason value.

type ValidateUserLoginResponse

type ValidateUserLoginResponse struct {

	//Id is the user Unique identifier
	Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"`
	// contains filtered or unexported fields
}

func (*ValidateUserLoginResponse) Descriptor deprecated

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

Deprecated: Use ValidateUserLoginResponse.ProtoReflect.Descriptor instead.

func (*ValidateUserLoginResponse) GetId

func (x *ValidateUserLoginResponse) GetId() string

func (*ValidateUserLoginResponse) ProtoMessage

func (*ValidateUserLoginResponse) ProtoMessage()

func (*ValidateUserLoginResponse) ProtoReflect

func (*ValidateUserLoginResponse) Reset

func (x *ValidateUserLoginResponse) Reset()

func (*ValidateUserLoginResponse) String

func (x *ValidateUserLoginResponse) String() string

func (*ValidateUserLoginResponse) Validate

func (m *ValidateUserLoginResponse) Validate() error

Validate checks the field values on ValidateUserLoginResponse with the rules defined in the proto definition for this message. If any rules are violated, an error is returned.

type ValidateUserLoginResponseValidationError

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

ValidateUserLoginResponseValidationError is the validation error returned by ValidateUserLoginResponse.Validate if the designated constraints aren't met.

func (ValidateUserLoginResponseValidationError) Cause

Cause function returns cause value.

func (ValidateUserLoginResponseValidationError) Error

Error satisfies the builtin error interface

func (ValidateUserLoginResponseValidationError) ErrorName

ErrorName returns error name.

func (ValidateUserLoginResponseValidationError) Field

Field function returns field value.

func (ValidateUserLoginResponseValidationError) Key

Key function returns key value.

func (ValidateUserLoginResponseValidationError) Reason

Reason function returns reason value.

Jump to

Keyboard shortcuts

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