pb

package
v0.6.8 Latest Latest
Warning

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

Go to latest
Published: Jun 3, 2020 License: Apache-2.0 Imports: 15 Imported by: 0

Documentation

Overview

Package pb is a reverse proxy.

It translates gRPC into RESTful JSON APIs.

Index

Constants

This section is empty.

Variables

View Source
var File_userInfoService_proto protoreflect.FileDescriptor

Functions

func RegisterUserInfoServiceHandler

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

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

func RegisterUserInfoServiceHandlerClient

func RegisterUserInfoServiceHandlerClient(ctx context.Context, mux *runtime.ServeMux, client UserInfoServiceClient) error

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

func RegisterUserInfoServiceHandlerFromEndpoint

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

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

func RegisterUserInfoServiceHandlerServer

func RegisterUserInfoServiceHandlerServer(ctx context.Context, mux *runtime.ServeMux, server UserInfoServiceServer) error

RegisterUserInfoServiceHandlerServer registers the http handlers for service UserInfoService to "mux". UnaryRPC :call UserInfoServiceServer directly. StreamingRPC :currently unsupported pending https://github.com/grpc/grpc-go/issues/906.

func RegisterUserInfoServiceServer

func RegisterUserInfoServiceServer(s *grpc.Server, srv UserInfoServiceServer)

Types

type UnimplementedUserInfoServiceServer

type UnimplementedUserInfoServiceServer struct {
}

UnimplementedUserInfoServiceServer can be embedded to have forward compatible implementations.

func (*UnimplementedUserInfoServiceServer) ChangeUserRole

func (*UnimplementedUserInfoServiceServer) ChangeUserRole(context.Context, *_.ChangeUserRoleRequest) (*_.ChangeUserRoleResponse, error)

func (*UnimplementedUserInfoServiceServer) DeleteUser

func (*UnimplementedUserInfoServiceServer) DeleteUser(context.Context, *_.DeleteUserRequest) (*_.DeleteUserResponse, error)

func (*UnimplementedUserInfoServiceServer) GetUserUUID

func (*UnimplementedUserInfoServiceServer) GetUserUUID(context.Context, *_.GetUserUUIDRequest) (*_.GetUserUUIDResponse, error)

func (*UnimplementedUserInfoServiceServer) Login

func (*UnimplementedUserInfoServiceServer) Login(context.Context, *_.LoginRequest) (*_.LoginResponse, error)

func (*UnimplementedUserInfoServiceServer) ResetPassword

func (*UnimplementedUserInfoServiceServer) ResetPassword(context.Context, *_.ResetPasswordRequest) (*_.ResetPasswordResponse, error)

func (*UnimplementedUserInfoServiceServer) SignUp

func (*UnimplementedUserInfoServiceServer) SignUp(context.Context, *_.SignUpRequest) (*_.SignUpResponse, error)

func (*UnimplementedUserInfoServiceServer) UpdateInfo

func (*UnimplementedUserInfoServiceServer) UpdateInfo(context.Context, *_.UpdateInfoRequest) (*_.UpdateInfoResponse, error)

func (*UnimplementedUserInfoServiceServer) UpdatePassword

func (*UnimplementedUserInfoServiceServer) UpdatePassword(context.Context, *_.UpdatePasswordRequest) (*_.UpdatePasswordResponse, error)

type UserInfoServiceClient

type UserInfoServiceClient interface {
	Login(ctx context.Context, in *_.LoginRequest, opts ...grpc.CallOption) (*_.LoginResponse, error)
	SignUp(ctx context.Context, in *_.SignUpRequest, opts ...grpc.CallOption) (*_.SignUpResponse, error)
	UpdateInfo(ctx context.Context, in *_.UpdateInfoRequest, opts ...grpc.CallOption) (*_.UpdateInfoResponse, error)
	UpdatePassword(ctx context.Context, in *_.UpdatePasswordRequest, opts ...grpc.CallOption) (*_.UpdatePasswordResponse, error)
	ResetPassword(ctx context.Context, in *_.ResetPasswordRequest, opts ...grpc.CallOption) (*_.ResetPasswordResponse, error)
	DeleteUser(ctx context.Context, in *_.DeleteUserRequest, opts ...grpc.CallOption) (*_.DeleteUserResponse, error)
	ChangeUserRole(ctx context.Context, in *_.ChangeUserRoleRequest, opts ...grpc.CallOption) (*_.ChangeUserRoleResponse, error)
	GetUserUUID(ctx context.Context, in *_.GetUserUUIDRequest, opts ...grpc.CallOption) (*_.GetUserUUIDResponse, error)
}

UserInfoServiceClient is the client API for UserInfoService service.

For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream.

type UserInfoServiceServer

type UserInfoServiceServer interface {
	Login(context.Context, *_.LoginRequest) (*_.LoginResponse, error)
	SignUp(context.Context, *_.SignUpRequest) (*_.SignUpResponse, error)
	UpdateInfo(context.Context, *_.UpdateInfoRequest) (*_.UpdateInfoResponse, error)
	UpdatePassword(context.Context, *_.UpdatePasswordRequest) (*_.UpdatePasswordResponse, error)
	ResetPassword(context.Context, *_.ResetPasswordRequest) (*_.ResetPasswordResponse, error)
	DeleteUser(context.Context, *_.DeleteUserRequest) (*_.DeleteUserResponse, error)
	ChangeUserRole(context.Context, *_.ChangeUserRoleRequest) (*_.ChangeUserRoleResponse, error)
	GetUserUUID(context.Context, *_.GetUserUUIDRequest) (*_.GetUserUUIDResponse, error)
}

UserInfoServiceServer is the server API for UserInfoService service.

Jump to

Keyboard shortcuts

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