rolev3

package
v0.2.7 Latest Latest
Warning

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

Go to latest
Published: Feb 28, 2024 License: Apache-2.0 Imports: 18 Imported by: 0

Documentation

Overview

Package rolev3 is a reverse proxy.

It translates gRPC into RESTful JSON APIs.

Package rolev3 is a reverse proxy.

It translates gRPC into RESTful JSON APIs.

Index

Constants

View Source
const (
	RoleService_CreateRole_FullMethodName = "/paralus.dev.rpc.role.v3.RoleService/CreateRole"
	RoleService_GetRoles_FullMethodName   = "/paralus.dev.rpc.role.v3.RoleService/GetRoles"
	RoleService_GetRole_FullMethodName    = "/paralus.dev.rpc.role.v3.RoleService/GetRole"
	RoleService_UpdateRole_FullMethodName = "/paralus.dev.rpc.role.v3.RoleService/UpdateRole"
	RoleService_DeleteRole_FullMethodName = "/paralus.dev.rpc.role.v3.RoleService/DeleteRole"
)
View Source
const (
	RolepermissionService_GetRolepermissions_FullMethodName = "/paralus.dev.rpc.role.v3.RolepermissionService/GetRolepermissions"
)

Variables

View Source
var File_proto_rpc_role_role_proto protoreflect.FileDescriptor
View Source
var File_proto_rpc_role_rolepermission_proto protoreflect.FileDescriptor
View Source
var RoleService_ServiceDesc = grpc.ServiceDesc{
	ServiceName: "paralus.dev.rpc.role.v3.RoleService",
	HandlerType: (*RoleServiceServer)(nil),
	Methods: []grpc.MethodDesc{
		{
			MethodName: "CreateRole",
			Handler:    _RoleService_CreateRole_Handler,
		},
		{
			MethodName: "GetRoles",
			Handler:    _RoleService_GetRoles_Handler,
		},
		{
			MethodName: "GetRole",
			Handler:    _RoleService_GetRole_Handler,
		},
		{
			MethodName: "UpdateRole",
			Handler:    _RoleService_UpdateRole_Handler,
		},
		{
			MethodName: "DeleteRole",
			Handler:    _RoleService_DeleteRole_Handler,
		},
	},
	Streams:  []grpc.StreamDesc{},
	Metadata: "proto/rpc/role/role.proto",
}

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

View Source
var RolepermissionService_ServiceDesc = grpc.ServiceDesc{
	ServiceName: "paralus.dev.rpc.role.v3.RolepermissionService",
	HandlerType: (*RolepermissionServiceServer)(nil),
	Methods: []grpc.MethodDesc{
		{
			MethodName: "GetRolepermissions",
			Handler:    _RolepermissionService_GetRolepermissions_Handler,
		},
	},
	Streams:  []grpc.StreamDesc{},
	Metadata: "proto/rpc/role/rolepermission.proto",
}

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

Functions

func RegisterRoleServiceHandler added in v0.1.3

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

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

func RegisterRoleServiceHandlerClient added in v0.1.3

func RegisterRoleServiceHandlerClient(ctx context.Context, mux *runtime.ServeMux, client RoleServiceClient) error

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

func RegisterRoleServiceHandlerFromEndpoint added in v0.1.3

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

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

func RegisterRoleServiceHandlerServer added in v0.1.3

func RegisterRoleServiceHandlerServer(ctx context.Context, mux *runtime.ServeMux, server RoleServiceServer) error

RegisterRoleServiceHandlerServer registers the http handlers for service RoleService to "mux". UnaryRPC :call RoleServiceServer 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 RegisterRoleServiceHandlerFromEndpoint instead.

func RegisterRoleServiceServer added in v0.1.3

func RegisterRoleServiceServer(s grpc.ServiceRegistrar, srv RoleServiceServer)

func RegisterRolepermissionServiceHandler added in v0.1.3

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

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

func RegisterRolepermissionServiceHandlerClient added in v0.1.3

func RegisterRolepermissionServiceHandlerClient(ctx context.Context, mux *runtime.ServeMux, client RolepermissionServiceClient) error

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

func RegisterRolepermissionServiceHandlerFromEndpoint added in v0.1.3

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

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

func RegisterRolepermissionServiceHandlerServer added in v0.1.3

func RegisterRolepermissionServiceHandlerServer(ctx context.Context, mux *runtime.ServeMux, server RolepermissionServiceServer) error

RegisterRolepermissionServiceHandlerServer registers the http handlers for service RolepermissionService to "mux". UnaryRPC :call RolepermissionServiceServer 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 RegisterRolepermissionServiceHandlerFromEndpoint instead.

func RegisterRolepermissionServiceServer added in v0.1.3

func RegisterRolepermissionServiceServer(s grpc.ServiceRegistrar, srv RolepermissionServiceServer)

Types

type RoleServiceClient added in v0.1.3

type RoleServiceClient interface {
	CreateRole(ctx context.Context, in *v3.Role, opts ...grpc.CallOption) (*v3.Role, error)
	GetRoles(ctx context.Context, in *v3.Role, opts ...grpc.CallOption) (*v3.RoleList, error)
	GetRole(ctx context.Context, in *v3.Role, opts ...grpc.CallOption) (*v3.Role, error)
	UpdateRole(ctx context.Context, in *v3.Role, opts ...grpc.CallOption) (*v3.Role, error)
	DeleteRole(ctx context.Context, in *v3.Role, opts ...grpc.CallOption) (*v3.Role, error)
}

RoleServiceClient is the client API for RoleService 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.

func NewRoleServiceClient added in v0.1.3

func NewRoleServiceClient(cc grpc.ClientConnInterface) RoleServiceClient

type RoleServiceServer added in v0.1.3

type RoleServiceServer interface {
	CreateRole(context.Context, *v3.Role) (*v3.Role, error)
	GetRoles(context.Context, *v3.Role) (*v3.RoleList, error)
	GetRole(context.Context, *v3.Role) (*v3.Role, error)
	UpdateRole(context.Context, *v3.Role) (*v3.Role, error)
	DeleteRole(context.Context, *v3.Role) (*v3.Role, error)
}

RoleServiceServer is the server API for RoleService service. All implementations should embed UnimplementedRoleServiceServer for forward compatibility

type RolepermissionServiceClient added in v0.1.3

type RolepermissionServiceClient interface {
	GetRolepermissions(ctx context.Context, in *v3.QueryOptions, opts ...grpc.CallOption) (*v31.RolePermissionList, error)
}

RolepermissionServiceClient is the client API for RolepermissionService 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.

func NewRolepermissionServiceClient added in v0.1.3

func NewRolepermissionServiceClient(cc grpc.ClientConnInterface) RolepermissionServiceClient

type RolepermissionServiceServer added in v0.1.3

type RolepermissionServiceServer interface {
	GetRolepermissions(context.Context, *v3.QueryOptions) (*v31.RolePermissionList, error)
}

RolepermissionServiceServer is the server API for RolepermissionService service. All implementations should embed UnimplementedRolepermissionServiceServer for forward compatibility

type UnimplementedRoleServiceServer added in v0.1.3

type UnimplementedRoleServiceServer struct {
}

UnimplementedRoleServiceServer should be embedded to have forward compatible implementations.

func (UnimplementedRoleServiceServer) CreateRole added in v0.1.3

func (UnimplementedRoleServiceServer) DeleteRole added in v0.1.3

func (UnimplementedRoleServiceServer) GetRole added in v0.1.3

func (UnimplementedRoleServiceServer) GetRoles added in v0.1.3

func (UnimplementedRoleServiceServer) UpdateRole added in v0.1.3

type UnimplementedRolepermissionServiceServer added in v0.1.3

type UnimplementedRolepermissionServiceServer struct {
}

UnimplementedRolepermissionServiceServer should be embedded to have forward compatible implementations.

func (UnimplementedRolepermissionServiceServer) GetRolepermissions added in v0.1.3

type UnsafeRoleServiceServer added in v0.1.3

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

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

type UnsafeRolepermissionServiceServer added in v0.1.3

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

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

Jump to

Keyboard shortcuts

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