proto

package
v0.0.15-r2 Latest Latest
Warning

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

Go to latest
Published: Apr 18, 2022 License: Apache-2.0 Imports: 17 Imported by: 0

Documentation

Overview

Package proto is a reverse proxy.

It translates gRPC into RESTful JSON APIs.

Index

Constants

This section is empty.

Variables

View Source
var AccountsService_ServiceDesc = grpc.ServiceDesc{
	ServiceName: "nocloud.registry.AccountsService",
	HandlerType: (*AccountsServiceServer)(nil),
	Methods: []grpc.MethodDesc{
		{
			MethodName: "Token",
			Handler:    _AccountsService_Token_Handler,
		},
		{
			MethodName: "SetCredentials",
			Handler:    _AccountsService_SetCredentials_Handler,
		},
		{
			MethodName: "Create",
			Handler:    _AccountsService_Create_Handler,
		},
		{
			MethodName: "Update",
			Handler:    _AccountsService_Update_Handler,
		},
		{
			MethodName: "Get",
			Handler:    _AccountsService_Get_Handler,
		},
		{
			MethodName: "List",
			Handler:    _AccountsService_List_Handler,
		},
		{
			MethodName: "Delete",
			Handler:    _AccountsService_Delete_Handler,
		},
	},
	Streams:  []grpc.StreamDesc{},
	Metadata: "pkg/registry/proto/registry.proto",
}

AccountsService_ServiceDesc is the grpc.ServiceDesc for AccountsService 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 File_pkg_registry_proto_registry_proto protoreflect.FileDescriptor
View Source
var NamespacesService_ServiceDesc = grpc.ServiceDesc{
	ServiceName: "nocloud.registry.NamespacesService",
	HandlerType: (*NamespacesServiceServer)(nil),
	Methods: []grpc.MethodDesc{
		{
			MethodName: "Create",
			Handler:    _NamespacesService_Create_Handler,
		},
		{
			MethodName: "List",
			Handler:    _NamespacesService_List_Handler,
		},
		{
			MethodName: "Join",
			Handler:    _NamespacesService_Join_Handler,
		},
		{
			MethodName: "Link",
			Handler:    _NamespacesService_Link_Handler,
		},
		{
			MethodName: "Delete",
			Handler:    _NamespacesService_Delete_Handler,
		},
	},
	Streams:  []grpc.StreamDesc{},
	Metadata: "pkg/registry/proto/registry.proto",
}

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

Functions

func RegisterAccountsServiceHandler

func RegisterAccountsServiceHandler(ctx context.Context, mux *runtime.ServeMux, conn grpc.ClientConnInterface) error

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

func RegisterAccountsServiceHandlerClient

func RegisterAccountsServiceHandlerClient(ctx context.Context, mux *runtime.ServeMux, client AccountsServiceClient) error

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

func RegisterAccountsServiceHandlerFromEndpoint

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

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

func RegisterAccountsServiceHandlerServer

func RegisterAccountsServiceHandlerServer(ctx context.Context, mux *runtime.ServeMux, server AccountsServiceServer) error

RegisterAccountsServiceHandlerServer registers the http handlers for service AccountsService to "mux". UnaryRPC :call AccountsServiceServer 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 RegisterAccountsServiceHandlerFromEndpoint instead.

func RegisterAccountsServiceServer

func RegisterAccountsServiceServer(s grpc.ServiceRegistrar, srv AccountsServiceServer)

func RegisterNamespacesServiceHandler

func RegisterNamespacesServiceHandler(ctx context.Context, mux *runtime.ServeMux, conn grpc.ClientConnInterface) error

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

func RegisterNamespacesServiceHandlerClient

func RegisterNamespacesServiceHandlerClient(ctx context.Context, mux *runtime.ServeMux, client NamespacesServiceClient) error

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

func RegisterNamespacesServiceHandlerFromEndpoint

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

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

func RegisterNamespacesServiceHandlerServer

func RegisterNamespacesServiceHandlerServer(ctx context.Context, mux *runtime.ServeMux, server NamespacesServiceServer) error

RegisterNamespacesServiceHandlerServer registers the http handlers for service NamespacesService to "mux". UnaryRPC :call NamespacesServiceServer 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 RegisterNamespacesServiceHandlerFromEndpoint instead.

func RegisterNamespacesServiceServer

func RegisterNamespacesServiceServer(s grpc.ServiceRegistrar, srv NamespacesServiceServer)

Types

type AccountsServiceClient

AccountsServiceClient is the client API for AccountsService 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 AccountsServiceServer

AccountsServiceServer is the server API for AccountsService service. All implementations must embed UnimplementedAccountsServiceServer for forward compatibility

type NamespacesServiceClient

NamespacesServiceClient is the client API for NamespacesService 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 NamespacesServiceServer

NamespacesServiceServer is the server API for NamespacesService service. All implementations must embed UnimplementedNamespacesServiceServer for forward compatibility

type UnimplementedAccountsServiceServer

type UnimplementedAccountsServiceServer struct {
}

UnimplementedAccountsServiceServer must be embedded to have forward compatible implementations.

func (UnimplementedAccountsServiceServer) Create

func (UnimplementedAccountsServiceServer) Delete

func (UnimplementedAccountsServiceServer) Get

func (UnimplementedAccountsServiceServer) List

func (UnimplementedAccountsServiceServer) Token

func (UnimplementedAccountsServiceServer) Update

type UnimplementedNamespacesServiceServer

type UnimplementedNamespacesServiceServer struct {
}

UnimplementedNamespacesServiceServer must be embedded to have forward compatible implementations.

func (UnimplementedNamespacesServiceServer) Create

func (UnimplementedNamespacesServiceServer) Delete

func (UnimplementedNamespacesServiceServer) Join

func (UnimplementedNamespacesServiceServer) List

type UnsafeAccountsServiceServer

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

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

type UnsafeNamespacesServiceServer

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

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

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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