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 ¶
- Variables
- func RegisterRoleServiceHandler(ctx context.Context, mux *runtime.ServeMux, conn *grpc.ClientConn) error
- func RegisterRoleServiceHandlerClient(ctx context.Context, mux *runtime.ServeMux, client RoleServiceClient) error
- func RegisterRoleServiceHandlerFromEndpoint(ctx context.Context, mux *runtime.ServeMux, endpoint string, ...) (err error)
- func RegisterRoleServiceHandlerServer(ctx context.Context, mux *runtime.ServeMux, server RoleServiceServer) error
- func RegisterRoleServiceServer(s grpc.ServiceRegistrar, srv RoleServiceServer)
- func RegisterRolepermissionServiceHandler(ctx context.Context, mux *runtime.ServeMux, conn *grpc.ClientConn) error
- func RegisterRolepermissionServiceHandlerClient(ctx context.Context, mux *runtime.ServeMux, client RolepermissionServiceClient) error
- func RegisterRolepermissionServiceHandlerFromEndpoint(ctx context.Context, mux *runtime.ServeMux, endpoint string, ...) (err error)
- func RegisterRolepermissionServiceHandlerServer(ctx context.Context, mux *runtime.ServeMux, server RolepermissionServiceServer) error
- func RegisterRolepermissionServiceServer(s grpc.ServiceRegistrar, srv RolepermissionServiceServer)
- type RoleServiceClient
- type RoleServiceServer
- type RolepermissionServiceClient
- type RolepermissionServiceServer
- type UnimplementedRoleServiceServer
- func (UnimplementedRoleServiceServer) CreateRole(context.Context, *v3.Role) (*v3.Role, error)
- func (UnimplementedRoleServiceServer) DeleteRole(context.Context, *v3.Role) (*v3.Role, error)
- func (UnimplementedRoleServiceServer) GetRole(context.Context, *v3.Role) (*v3.Role, error)
- func (UnimplementedRoleServiceServer) GetRoles(context.Context, *v3.Role) (*v3.RoleList, error)
- func (UnimplementedRoleServiceServer) UpdateRole(context.Context, *v3.Role) (*v3.Role, error)
- type UnimplementedRolepermissionServiceServer
- type UnsafeRoleServiceServer
- type UnsafeRolepermissionServiceServer
Constants ¶
This section is empty.
Variables ¶
var File_proto_rpc_role_role_proto protoreflect.FileDescriptor
var File_proto_rpc_role_rolepermission_proto protoreflect.FileDescriptor
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)
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) 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
func (UnimplementedRolepermissionServiceServer) GetRolepermissions(context.Context, *v3.QueryOptions) (*v31.RolePermissionList, error)
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.