statusthingv1connect

package
v0.0.0-...-e0046dd Latest Latest
Warning

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

Go to latest
Published: Jun 5, 2023 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// ItemsServiceName is the fully-qualified name of the ItemsService service.
	ItemsServiceName = "statusthing.v1.ItemsService"
	// StatusServiceName is the fully-qualified name of the StatusService service.
	StatusServiceName = "statusthing.v1.StatusService"
	// NotesServiceName is the fully-qualified name of the NotesService service.
	NotesServiceName = "statusthing.v1.NotesService"
)
View Source
const (
	// ItemsServiceGetItemProcedure is the fully-qualified name of the ItemsService's GetItem RPC.
	ItemsServiceGetItemProcedure = "/statusthing.v1.ItemsService/GetItem"
	// ItemsServiceListItemsProcedure is the fully-qualified name of the ItemsService's ListItems RPC.
	ItemsServiceListItemsProcedure = "/statusthing.v1.ItemsService/ListItems"
	// ItemsServiceAddItemProcedure is the fully-qualified name of the ItemsService's AddItem RPC.
	ItemsServiceAddItemProcedure = "/statusthing.v1.ItemsService/AddItem"
	// ItemsServiceUpdateItemProcedure is the fully-qualified name of the ItemsService's UpdateItem RPC.
	ItemsServiceUpdateItemProcedure = "/statusthing.v1.ItemsService/UpdateItem"
	// ItemsServiceDeleteItemProcedure is the fully-qualified name of the ItemsService's DeleteItem RPC.
	ItemsServiceDeleteItemProcedure = "/statusthing.v1.ItemsService/DeleteItem"
	// StatusServiceGetStatusProcedure is the fully-qualified name of the StatusService's GetStatus RPC.
	StatusServiceGetStatusProcedure = "/statusthing.v1.StatusService/GetStatus"
	// StatusServiceListStatusProcedure is the fully-qualified name of the StatusService's ListStatus
	// RPC.
	StatusServiceListStatusProcedure = "/statusthing.v1.StatusService/ListStatus"
	// StatusServiceAddStatusProcedure is the fully-qualified name of the StatusService's AddStatus RPC.
	StatusServiceAddStatusProcedure = "/statusthing.v1.StatusService/AddStatus"
	// StatusServiceUpdateStatusProcedure is the fully-qualified name of the StatusService's
	// UpdateStatus RPC.
	StatusServiceUpdateStatusProcedure = "/statusthing.v1.StatusService/UpdateStatus"
	// StatusServiceDeleteStatusProcedure is the fully-qualified name of the StatusService's
	// DeleteStatus RPC.
	StatusServiceDeleteStatusProcedure = "/statusthing.v1.StatusService/DeleteStatus"
	// NotesServiceGetNoteProcedure is the fully-qualified name of the NotesService's GetNote RPC.
	NotesServiceGetNoteProcedure = "/statusthing.v1.NotesService/GetNote"
	// NotesServiceListNotesProcedure is the fully-qualified name of the NotesService's ListNotes RPC.
	NotesServiceListNotesProcedure = "/statusthing.v1.NotesService/ListNotes"
	// NotesServiceAddNoteProcedure is the fully-qualified name of the NotesService's AddNote RPC.
	NotesServiceAddNoteProcedure = "/statusthing.v1.NotesService/AddNote"
	// NotesServiceUpdateNoteProcedure is the fully-qualified name of the NotesService's UpdateNote RPC.
	NotesServiceUpdateNoteProcedure = "/statusthing.v1.NotesService/UpdateNote"
	// NotesServiceDeleteNoteProcedure is the fully-qualified name of the NotesService's DeleteNote RPC.
	NotesServiceDeleteNoteProcedure = "/statusthing.v1.NotesService/DeleteNote"
)

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.

Variables

This section is empty.

Functions

func NewItemsServiceHandler

func NewItemsServiceHandler(svc ItemsServiceHandler, opts ...connect_go.HandlerOption) (string, http.Handler)

NewItemsServiceHandler 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 NewNotesServiceHandler

func NewNotesServiceHandler(svc NotesServiceHandler, opts ...connect_go.HandlerOption) (string, http.Handler)

NewNotesServiceHandler 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 NewStatusServiceHandler

func NewStatusServiceHandler(svc StatusServiceHandler, opts ...connect_go.HandlerOption) (string, http.Handler)

NewStatusServiceHandler 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 ItemsServiceClient

type ItemsServiceClient interface {
	// GetItem gets an Item by its Id
	GetItem(context.Context, *connect_go.Request[v1.GetItemRequest]) (*connect_go.Response[v1.GetItemResponse], error)
	// ListItems gets all known Items
	ListItems(context.Context, *connect_go.Request[v1.ListItemsRequest]) (*connect_go.Response[v1.ListItemsResponse], error)
	// AddItem adds a new Item
	AddItem(context.Context, *connect_go.Request[v1.AddItemRequest]) (*connect_go.Response[v1.AddItemResponse], error)
	// UpdateItem updates an existing Item
	UpdateItem(context.Context, *connect_go.Request[v1.UpdateItemRequest]) (*connect_go.Response[v1.UpdateItemResponse], error)
	// DeleteItem deletes an exisiting Item
	DeleteItem(context.Context, *connect_go.Request[v1.DeleteItemRequest]) (*connect_go.Response[v1.DeleteItemResponse], error)
}

ItemsServiceClient is a client for the statusthing.v1.ItemsService service.

func NewItemsServiceClient

func NewItemsServiceClient(httpClient connect_go.HTTPClient, baseURL string, opts ...connect_go.ClientOption) ItemsServiceClient

NewItemsServiceClient constructs a client for the statusthing.v1.ItemsService 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 ItemsServiceHandler

type ItemsServiceHandler interface {
	// GetItem gets an Item by its Id
	GetItem(context.Context, *connect_go.Request[v1.GetItemRequest]) (*connect_go.Response[v1.GetItemResponse], error)
	// ListItems gets all known Items
	ListItems(context.Context, *connect_go.Request[v1.ListItemsRequest]) (*connect_go.Response[v1.ListItemsResponse], error)
	// AddItem adds a new Item
	AddItem(context.Context, *connect_go.Request[v1.AddItemRequest]) (*connect_go.Response[v1.AddItemResponse], error)
	// UpdateItem updates an existing Item
	UpdateItem(context.Context, *connect_go.Request[v1.UpdateItemRequest]) (*connect_go.Response[v1.UpdateItemResponse], error)
	// DeleteItem deletes an exisiting Item
	DeleteItem(context.Context, *connect_go.Request[v1.DeleteItemRequest]) (*connect_go.Response[v1.DeleteItemResponse], error)
}

ItemsServiceHandler is an implementation of the statusthing.v1.ItemsService service.

type NotesServiceClient

type NotesServiceClient interface {
	// GetNote gets a Note by its Id
	GetNote(context.Context, *connect_go.Request[v1.GetNoteRequest]) (*connect_go.Response[v1.GetNoteResponse], error)
	// ListNotes gets all Note for an Item
	ListNotes(context.Context, *connect_go.Request[v1.ListNotesRequest]) (*connect_go.Response[v1.ListNotesResponse], error)
	// AddNote adds a Note to an Item
	AddNote(context.Context, *connect_go.Request[v1.AddNoteRequest]) (*connect_go.Response[v1.AddNoteResponse], error)
	// UpdateNote updates an existing Note
	UpdateNote(context.Context, *connect_go.Request[v1.UpdateNoteRequest]) (*connect_go.Response[v1.UpdateNoteResponse], error)
	// DeleteNote deletes a Note from an Item
	DeleteNote(context.Context, *connect_go.Request[v1.DeleteNoteRequest]) (*connect_go.Response[v1.DeleteNoteResponse], error)
}

NotesServiceClient is a client for the statusthing.v1.NotesService service.

func NewNotesServiceClient

func NewNotesServiceClient(httpClient connect_go.HTTPClient, baseURL string, opts ...connect_go.ClientOption) NotesServiceClient

NewNotesServiceClient constructs a client for the statusthing.v1.NotesService 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 NotesServiceHandler

type NotesServiceHandler interface {
	// GetNote gets a Note by its Id
	GetNote(context.Context, *connect_go.Request[v1.GetNoteRequest]) (*connect_go.Response[v1.GetNoteResponse], error)
	// ListNotes gets all Note for an Item
	ListNotes(context.Context, *connect_go.Request[v1.ListNotesRequest]) (*connect_go.Response[v1.ListNotesResponse], error)
	// AddNote adds a Note to an Item
	AddNote(context.Context, *connect_go.Request[v1.AddNoteRequest]) (*connect_go.Response[v1.AddNoteResponse], error)
	// UpdateNote updates an existing Note
	UpdateNote(context.Context, *connect_go.Request[v1.UpdateNoteRequest]) (*connect_go.Response[v1.UpdateNoteResponse], error)
	// DeleteNote deletes a Note from an Item
	DeleteNote(context.Context, *connect_go.Request[v1.DeleteNoteRequest]) (*connect_go.Response[v1.DeleteNoteResponse], error)
}

NotesServiceHandler is an implementation of the statusthing.v1.NotesService service.

type StatusServiceClient

type StatusServiceClient interface {
	// GetStatus gets a Status by its Id
	GetStatus(context.Context, *connect_go.Request[v1.GetStatusRequest]) (*connect_go.Response[v1.GetStatusResponse], error)
	// ListStatus gets all known Status
	ListStatus(context.Context, *connect_go.Request[v1.ListStatusRequest]) (*connect_go.Response[v1.ListStatusResponse], error)
	// AddStatus adds a new status
	AddStatus(context.Context, *connect_go.Request[v1.AddStatusRequest]) (*connect_go.Response[v1.AddStatusResponse], error)
	// UpdateStatus updates an existing status
	UpdateStatus(context.Context, *connect_go.Request[v1.UpdateStatusRequest]) (*connect_go.Response[v1.UpdateStatusResponse], error)
	// DeleteStatus deletes a Status
	DeleteStatus(context.Context, *connect_go.Request[v1.DeleteStatusRequest]) (*connect_go.Response[v1.DeleteStatusResponse], error)
}

StatusServiceClient is a client for the statusthing.v1.StatusService service.

func NewStatusServiceClient

func NewStatusServiceClient(httpClient connect_go.HTTPClient, baseURL string, opts ...connect_go.ClientOption) StatusServiceClient

NewStatusServiceClient constructs a client for the statusthing.v1.StatusService 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 StatusServiceHandler

type StatusServiceHandler interface {
	// GetStatus gets a Status by its Id
	GetStatus(context.Context, *connect_go.Request[v1.GetStatusRequest]) (*connect_go.Response[v1.GetStatusResponse], error)
	// ListStatus gets all known Status
	ListStatus(context.Context, *connect_go.Request[v1.ListStatusRequest]) (*connect_go.Response[v1.ListStatusResponse], error)
	// AddStatus adds a new status
	AddStatus(context.Context, *connect_go.Request[v1.AddStatusRequest]) (*connect_go.Response[v1.AddStatusResponse], error)
	// UpdateStatus updates an existing status
	UpdateStatus(context.Context, *connect_go.Request[v1.UpdateStatusRequest]) (*connect_go.Response[v1.UpdateStatusResponse], error)
	// DeleteStatus deletes a Status
	DeleteStatus(context.Context, *connect_go.Request[v1.DeleteStatusRequest]) (*connect_go.Response[v1.DeleteStatusResponse], error)
}

StatusServiceHandler is an implementation of the statusthing.v1.StatusService service.

type UnimplementedItemsServiceHandler

type UnimplementedItemsServiceHandler struct{}

UnimplementedItemsServiceHandler returns CodeUnimplemented from all methods.

type UnimplementedNotesServiceHandler

type UnimplementedNotesServiceHandler struct{}

UnimplementedNotesServiceHandler returns CodeUnimplemented from all methods.

type UnimplementedStatusServiceHandler

type UnimplementedStatusServiceHandler struct{}

UnimplementedStatusServiceHandler returns CodeUnimplemented from all methods.

Jump to

Keyboard shortcuts

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