ownerv1connect

package
v1.16.1-20240425212921... Latest Latest
Warning

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

Go to latest
Published: unknown License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// OrganizationServiceGetOrganizationsProcedure is the fully-qualified name of the
	// OrganizationService's GetOrganizations RPC.
	OrganizationServiceGetOrganizationsProcedure = "/buf.registry.owner.v1.OrganizationService/GetOrganizations"
	// OrganizationServiceListOrganizationsProcedure is the fully-qualified name of the
	// OrganizationService's ListOrganizations RPC.
	OrganizationServiceListOrganizationsProcedure = "/buf.registry.owner.v1.OrganizationService/ListOrganizations"
	// OrganizationServiceCreateOrganizationsProcedure is the fully-qualified name of the
	// OrganizationService's CreateOrganizations RPC.
	OrganizationServiceCreateOrganizationsProcedure = "/buf.registry.owner.v1.OrganizationService/CreateOrganizations"
	// OrganizationServiceUpdateOrganizationsProcedure is the fully-qualified name of the
	// OrganizationService's UpdateOrganizations RPC.
	OrganizationServiceUpdateOrganizationsProcedure = "/buf.registry.owner.v1.OrganizationService/UpdateOrganizations"
	// OrganizationServiceDeleteOrganizationsProcedure is the fully-qualified name of the
	// OrganizationService's DeleteOrganizations RPC.
	OrganizationServiceDeleteOrganizationsProcedure = "/buf.registry.owner.v1.OrganizationService/DeleteOrganizations"
)

These constants are the fully-qualified names of the RPCs defined in this package. They're exposed at runtime as Spec.Procedure and as the final two segments of the HTTP route.

Note that these are different from the fully-qualified method names used by google.golang.org/protobuf/reflect/protoreflect. To convert from these constants to reflection-formatted method names, remove the leading slash and convert the remaining slash to a period.

View Source
const (
	// UserServiceGetUsersProcedure is the fully-qualified name of the UserService's GetUsers RPC.
	UserServiceGetUsersProcedure = "/buf.registry.owner.v1.UserService/GetUsers"
	// UserServiceListUsersProcedure is the fully-qualified name of the UserService's ListUsers RPC.
	UserServiceListUsersProcedure = "/buf.registry.owner.v1.UserService/ListUsers"
	// UserServiceCreateUsersProcedure is the fully-qualified name of the UserService's CreateUsers RPC.
	UserServiceCreateUsersProcedure = "/buf.registry.owner.v1.UserService/CreateUsers"
	// UserServiceUpdateUsersProcedure is the fully-qualified name of the UserService's UpdateUsers RPC.
	UserServiceUpdateUsersProcedure = "/buf.registry.owner.v1.UserService/UpdateUsers"
	// UserServiceDeleteUsersProcedure is the fully-qualified name of the UserService's DeleteUsers RPC.
	UserServiceDeleteUsersProcedure = "/buf.registry.owner.v1.UserService/DeleteUsers"
)

These constants are the fully-qualified names of the RPCs defined in this package. They're exposed at runtime as Spec.Procedure and as the final two segments of the HTTP route.

Note that these are different from the fully-qualified method names used by google.golang.org/protobuf/reflect/protoreflect. To convert from these constants to reflection-formatted method names, remove the leading slash and convert the remaining slash to a period.

View Source
const (
	// OrganizationServiceName is the fully-qualified name of the OrganizationService service.
	OrganizationServiceName = "buf.registry.owner.v1.OrganizationService"
)
View Source
const (
	// OwnerServiceGetOwnersProcedure is the fully-qualified name of the OwnerService's GetOwners RPC.
	OwnerServiceGetOwnersProcedure = "/buf.registry.owner.v1.OwnerService/GetOwners"
)

These constants are the fully-qualified names of the RPCs defined in this package. They're exposed at runtime as Spec.Procedure and as the final two segments of the HTTP route.

Note that these are different from the fully-qualified method names used by google.golang.org/protobuf/reflect/protoreflect. To convert from these constants to reflection-formatted method names, remove the leading slash and convert the remaining slash to a period.

View Source
const (
	// OwnerServiceName is the fully-qualified name of the OwnerService service.
	OwnerServiceName = "buf.registry.owner.v1.OwnerService"
)
View Source
const (
	// UserServiceName is the fully-qualified name of the UserService service.
	UserServiceName = "buf.registry.owner.v1.UserService"
)

Variables

This section is empty.

Functions

func NewOrganizationServiceHandler

func NewOrganizationServiceHandler(svc OrganizationServiceHandler, opts ...connect.HandlerOption) (string, http.Handler)

NewOrganizationServiceHandler builds an HTTP handler from the service implementation. It returns the path on which to mount the handler and the handler itself.

By default, handlers support the Connect, gRPC, and gRPC-Web protocols with the binary Protobuf and JSON codecs. They also support gzip compression.

func NewOwnerServiceHandler

func NewOwnerServiceHandler(svc OwnerServiceHandler, opts ...connect.HandlerOption) (string, http.Handler)

NewOwnerServiceHandler builds an HTTP handler from the service implementation. It returns the path on which to mount the handler and the handler itself.

By default, handlers support the Connect, gRPC, and gRPC-Web protocols with the binary Protobuf and JSON codecs. They also support gzip compression.

func NewUserServiceHandler

func NewUserServiceHandler(svc UserServiceHandler, opts ...connect.HandlerOption) (string, http.Handler)

NewUserServiceHandler builds an HTTP handler from the service implementation. It returns the path on which to mount the handler and the handler itself.

By default, handlers support the Connect, gRPC, and gRPC-Web protocols with the binary Protobuf and JSON codecs. They also support gzip compression.

Types

type OrganizationServiceClient

type OrganizationServiceClient interface {
	// Get Organizations by id or name.
	GetOrganizations(context.Context, *connect.Request[v1.GetOrganizationsRequest]) (*connect.Response[v1.GetOrganizationsResponse], error)
	// List Organizations, usually by User.
	ListOrganizations(context.Context, *connect.Request[v1.ListOrganizationsRequest]) (*connect.Response[v1.ListOrganizationsResponse], error)
	// Create new Organizations.
	//
	// This operation is atomic. Either all Organizations are created or an error is returned.
	CreateOrganizations(context.Context, *connect.Request[v1.CreateOrganizationsRequest]) (*connect.Response[v1.CreateOrganizationsResponse], error)
	// Update existing organizations.
	//
	// This operation is atomic. Either all Organizations are updated or an error is returned.
	UpdateOrganizations(context.Context, *connect.Request[v1.UpdateOrganizationsRequest]) (*connect.Response[v1.UpdateOrganizationsResponse], error)
	// Delete existing organizations.
	//
	// This operation is atomic. Either all Organizations are deleted or an error is returned.
	DeleteOrganizations(context.Context, *connect.Request[v1.DeleteOrganizationsRequest]) (*connect.Response[v1.DeleteOrganizationsResponse], error)
}

OrganizationServiceClient is a client for the buf.registry.owner.v1.OrganizationService service.

func NewOrganizationServiceClient

func NewOrganizationServiceClient(httpClient connect.HTTPClient, baseURL string, opts ...connect.ClientOption) OrganizationServiceClient

NewOrganizationServiceClient constructs a client for the buf.registry.owner.v1.OrganizationService service. By default, it uses the Connect protocol with the binary Protobuf Codec, asks for gzipped responses, and sends uncompressed requests. To use the gRPC or gRPC-Web protocols, supply the connect.WithGRPC() or connect.WithGRPCWeb() options.

The URL supplied here should be the base URL for the Connect or gRPC server (for example, http://api.acme.com or https://acme.com/grpc).

type OrganizationServiceHandler

type OrganizationServiceHandler interface {
	// Get Organizations by id or name.
	GetOrganizations(context.Context, *connect.Request[v1.GetOrganizationsRequest]) (*connect.Response[v1.GetOrganizationsResponse], error)
	// List Organizations, usually by User.
	ListOrganizations(context.Context, *connect.Request[v1.ListOrganizationsRequest]) (*connect.Response[v1.ListOrganizationsResponse], error)
	// Create new Organizations.
	//
	// This operation is atomic. Either all Organizations are created or an error is returned.
	CreateOrganizations(context.Context, *connect.Request[v1.CreateOrganizationsRequest]) (*connect.Response[v1.CreateOrganizationsResponse], error)
	// Update existing organizations.
	//
	// This operation is atomic. Either all Organizations are updated or an error is returned.
	UpdateOrganizations(context.Context, *connect.Request[v1.UpdateOrganizationsRequest]) (*connect.Response[v1.UpdateOrganizationsResponse], error)
	// Delete existing organizations.
	//
	// This operation is atomic. Either all Organizations are deleted or an error is returned.
	DeleteOrganizations(context.Context, *connect.Request[v1.DeleteOrganizationsRequest]) (*connect.Response[v1.DeleteOrganizationsResponse], error)
}

OrganizationServiceHandler is an implementation of the buf.registry.owner.v1.OrganizationService service.

type OwnerServiceClient

type OwnerServiceClient interface {
	// Get Users or Organizations by id or name.
	GetOwners(context.Context, *connect.Request[v1.GetOwnersRequest]) (*connect.Response[v1.GetOwnersResponse], error)
}

OwnerServiceClient is a client for the buf.registry.owner.v1.OwnerService service.

func NewOwnerServiceClient

func NewOwnerServiceClient(httpClient connect.HTTPClient, baseURL string, opts ...connect.ClientOption) OwnerServiceClient

NewOwnerServiceClient constructs a client for the buf.registry.owner.v1.OwnerService service. By default, it uses the Connect protocol with the binary Protobuf Codec, asks for gzipped responses, and sends uncompressed requests. To use the gRPC or gRPC-Web protocols, supply the connect.WithGRPC() or connect.WithGRPCWeb() options.

The URL supplied here should be the base URL for the Connect or gRPC server (for example, http://api.acme.com or https://acme.com/grpc).

type OwnerServiceHandler

type OwnerServiceHandler interface {
	// Get Users or Organizations by id or name.
	GetOwners(context.Context, *connect.Request[v1.GetOwnersRequest]) (*connect.Response[v1.GetOwnersResponse], error)
}

OwnerServiceHandler is an implementation of the buf.registry.owner.v1.OwnerService service.

type UnimplementedOrganizationServiceHandler

type UnimplementedOrganizationServiceHandler struct{}

UnimplementedOrganizationServiceHandler returns CodeUnimplemented from all methods.

func (UnimplementedOrganizationServiceHandler) CreateOrganizations

func (UnimplementedOrganizationServiceHandler) DeleteOrganizations

func (UnimplementedOrganizationServiceHandler) GetOrganizations

func (UnimplementedOrganizationServiceHandler) ListOrganizations

func (UnimplementedOrganizationServiceHandler) UpdateOrganizations

type UnimplementedOwnerServiceHandler

type UnimplementedOwnerServiceHandler struct{}

UnimplementedOwnerServiceHandler returns CodeUnimplemented from all methods.

func (UnimplementedOwnerServiceHandler) GetOwners

type UnimplementedUserServiceHandler

type UnimplementedUserServiceHandler struct{}

UnimplementedUserServiceHandler returns CodeUnimplemented from all methods.

func (UnimplementedUserServiceHandler) CreateUsers

func (UnimplementedUserServiceHandler) DeleteUsers

func (UnimplementedUserServiceHandler) GetUsers

func (UnimplementedUserServiceHandler) ListUsers

func (UnimplementedUserServiceHandler) UpdateUsers

type UserServiceClient

type UserServiceClient interface {
	// Get Users by id or name.
	GetUsers(context.Context, *connect.Request[v1.GetUsersRequest]) (*connect.Response[v1.GetUsersResponse], error)
	// List Users, usually by Organization.
	ListUsers(context.Context, *connect.Request[v1.ListUsersRequest]) (*connect.Response[v1.ListUsersResponse], error)
	// Create new Users.
	//
	// This operation is atomic. Either all Users are created or an error is returned.
	CreateUsers(context.Context, *connect.Request[v1.CreateUsersRequest]) (*connect.Response[v1.CreateUsersResponse], error)
	// Update existing Users.
	//
	// This operation is atomic. Either all Users are updated or an error is returned.
	UpdateUsers(context.Context, *connect.Request[v1.UpdateUsersRequest]) (*connect.Response[v1.UpdateUsersResponse], error)
	// Delete existing Users.
	//
	// This operation is atomic. Either all Users are deleted or an error is returned.
	// Duplicate UserRefs are allowed, and only one User will be deleted. Likewise,
	// duplicate UserRefs belonging to the same User, by id or name, are allowed, and
	// only one User will be deleted.
	DeleteUsers(context.Context, *connect.Request[v1.DeleteUsersRequest]) (*connect.Response[v1.DeleteUsersResponse], error)
}

UserServiceClient is a client for the buf.registry.owner.v1.UserService service.

func NewUserServiceClient

func NewUserServiceClient(httpClient connect.HTTPClient, baseURL string, opts ...connect.ClientOption) UserServiceClient

NewUserServiceClient constructs a client for the buf.registry.owner.v1.UserService service. By default, it uses the Connect protocol with the binary Protobuf Codec, asks for gzipped responses, and sends uncompressed requests. To use the gRPC or gRPC-Web protocols, supply the connect.WithGRPC() or connect.WithGRPCWeb() options.

The URL supplied here should be the base URL for the Connect or gRPC server (for example, http://api.acme.com or https://acme.com/grpc).

type UserServiceHandler

type UserServiceHandler interface {
	// Get Users by id or name.
	GetUsers(context.Context, *connect.Request[v1.GetUsersRequest]) (*connect.Response[v1.GetUsersResponse], error)
	// List Users, usually by Organization.
	ListUsers(context.Context, *connect.Request[v1.ListUsersRequest]) (*connect.Response[v1.ListUsersResponse], error)
	// Create new Users.
	//
	// This operation is atomic. Either all Users are created or an error is returned.
	CreateUsers(context.Context, *connect.Request[v1.CreateUsersRequest]) (*connect.Response[v1.CreateUsersResponse], error)
	// Update existing Users.
	//
	// This operation is atomic. Either all Users are updated or an error is returned.
	UpdateUsers(context.Context, *connect.Request[v1.UpdateUsersRequest]) (*connect.Response[v1.UpdateUsersResponse], error)
	// Delete existing Users.
	//
	// This operation is atomic. Either all Users are deleted or an error is returned.
	// Duplicate UserRefs are allowed, and only one User will be deleted. Likewise,
	// duplicate UserRefs belonging to the same User, by id or name, are allowed, and
	// only one User will be deleted.
	DeleteUsers(context.Context, *connect.Request[v1.DeleteUsersRequest]) (*connect.Response[v1.DeleteUsersResponse], error)
}

UserServiceHandler is an implementation of the buf.registry.owner.v1.UserService service.

Jump to

Keyboard shortcuts

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