resetv1

package
v0.0.0-...-08e0700 Latest Latest
Warning

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

Go to latest
Published: Aug 11, 2021 License: MIT Imports: 16 Imported by: 0

Documentation

Overview

Package resetv1 is a reverse proxy.

It translates gRPC into RESTful JSON APIs.

Index

Constants

This section is empty.

Variables

View Source
var File_reset_password_service_proto protoreflect.FileDescriptor
View Source
var ResetPasswordService_ServiceDesc = grpc.ServiceDesc{
	ServiceName: "ResetPasswordService",
	HandlerType: (*ResetPasswordServiceServer)(nil),
	Methods: []grpc.MethodDesc{
		{
			MethodName: "ResetPassword",
			Handler:    _ResetPasswordService_ResetPassword_Handler,
		},
		{
			MethodName: "ChangePassword",
			Handler:    _ResetPasswordService_ChangePassword_Handler,
		},
	},
	Streams:  []grpc.StreamDesc{},
	Metadata: "reset_password_service.proto",
}

ResetPasswordService_ServiceDesc is the grpc.ServiceDesc for ResetPasswordService service. It's only intended for direct use with grpc.RegisterService, and not to be introspected or modified (even as a copy)

Functions

func RegisterResetPasswordServiceHandler

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

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

func RegisterResetPasswordServiceHandlerClient

func RegisterResetPasswordServiceHandlerClient(ctx context.Context, mux *runtime.ServeMux, client ResetPasswordServiceClient) error

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

func RegisterResetPasswordServiceHandlerFromEndpoint

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

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

func RegisterResetPasswordServiceHandlerServer

func RegisterResetPasswordServiceHandlerServer(ctx context.Context, mux *runtime.ServeMux, server ResetPasswordServiceServer) error

RegisterResetPasswordServiceHandlerServer registers the http handlers for service ResetPasswordService to "mux". UnaryRPC :call ResetPasswordServiceServer 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 RegisterResetPasswordServiceHandlerFromEndpoint instead.

func RegisterResetPasswordServiceServer

func RegisterResetPasswordServiceServer(s grpc.ServiceRegistrar, srv ResetPasswordServiceServer)

Types

type ChangePasswordRequest

type ChangePasswordRequest struct {
	NewPassword string `protobuf:"bytes,1,opt,name=new_password,json=newPassword,proto3" json:"new_password,omitempty"`
	ResetCode   string `protobuf:"bytes,2,opt,name=reset_code,json=resetCode,proto3" json:"reset_code,omitempty"`
	// contains filtered or unexported fields
}

func (*ChangePasswordRequest) Descriptor deprecated

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

Deprecated: Use ChangePasswordRequest.ProtoReflect.Descriptor instead.

func (*ChangePasswordRequest) GetNewPassword

func (x *ChangePasswordRequest) GetNewPassword() string

func (*ChangePasswordRequest) GetResetCode

func (x *ChangePasswordRequest) GetResetCode() string

func (*ChangePasswordRequest) ProtoMessage

func (*ChangePasswordRequest) ProtoMessage()

func (*ChangePasswordRequest) ProtoReflect

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

func (*ChangePasswordRequest) Reset

func (x *ChangePasswordRequest) Reset()

func (*ChangePasswordRequest) String

func (x *ChangePasswordRequest) String() string

type ChangePasswordResponse

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

func (*ChangePasswordResponse) Descriptor deprecated

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

Deprecated: Use ChangePasswordResponse.ProtoReflect.Descriptor instead.

func (*ChangePasswordResponse) GetStatus

func (x *ChangePasswordResponse) GetStatus() string

func (*ChangePasswordResponse) ProtoMessage

func (*ChangePasswordResponse) ProtoMessage()

func (*ChangePasswordResponse) ProtoReflect

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

func (*ChangePasswordResponse) Reset

func (x *ChangePasswordResponse) Reset()

func (*ChangePasswordResponse) String

func (x *ChangePasswordResponse) String() string

type ResetPasswordServiceClient

type ResetPasswordServiceClient interface {
	ResetPassword(ctx context.Context, in *ResetRequest, opts ...grpc.CallOption) (*ResetResponse, error)
	ChangePassword(ctx context.Context, in *ChangePasswordRequest, opts ...grpc.CallOption) (*ChangePasswordResponse, error)
}

ResetPasswordServiceClient is the client API for ResetPasswordService 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 ResetPasswordServiceServer

type ResetPasswordServiceServer interface {
	ResetPassword(context.Context, *ResetRequest) (*ResetResponse, error)
	ChangePassword(context.Context, *ChangePasswordRequest) (*ChangePasswordResponse, error)
	// contains filtered or unexported methods
}

ResetPasswordServiceServer is the server API for ResetPasswordService service. All implementations must embed UnimplementedResetPasswordServiceServer for forward compatibility

type ResetRequest

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

func (*ResetRequest) Descriptor deprecated

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

Deprecated: Use ResetRequest.ProtoReflect.Descriptor instead.

func (*ResetRequest) GetEmail

func (x *ResetRequest) GetEmail() string

func (*ResetRequest) ProtoMessage

func (*ResetRequest) ProtoMessage()

func (*ResetRequest) ProtoReflect

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

func (*ResetRequest) Reset

func (x *ResetRequest) Reset()

func (*ResetRequest) String

func (x *ResetRequest) String() string

type ResetResponse

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

func (*ResetResponse) Descriptor deprecated

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

Deprecated: Use ResetResponse.ProtoReflect.Descriptor instead.

func (*ResetResponse) GetMessage

func (x *ResetResponse) GetMessage() string

func (*ResetResponse) ProtoMessage

func (*ResetResponse) ProtoMessage()

func (*ResetResponse) ProtoReflect

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

func (*ResetResponse) Reset

func (x *ResetResponse) Reset()

func (*ResetResponse) String

func (x *ResetResponse) String() string

type UnimplementedResetPasswordServiceServer

type UnimplementedResetPasswordServiceServer struct {
}

UnimplementedResetPasswordServiceServer must be embedded to have forward compatible implementations.

func (UnimplementedResetPasswordServiceServer) ChangePassword

func (UnimplementedResetPasswordServiceServer) ResetPassword

type UnsafeResetPasswordServiceServer

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

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

Jump to

Keyboard shortcuts

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