v1pluginrpc

package
v0.8.0 Latest Latest
Warning

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

Go to latest
Published: Jan 31, 2025 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// PluginInfoServiceGetPluginInfoPath is the path of the PluginInfoService's GetPluginInfo RPC.
	PluginInfoServiceGetPluginInfoPath = "/buf.plugin.info.v1.PluginInfoService/GetPluginInfo"
)

Variables

This section is empty.

Functions

func RegisterPluginInfoServiceServer

func RegisterPluginInfoServiceServer(serverRegistrar pluginrpc.ServerRegistrar, pluginInfoServiceServer PluginInfoServiceServer)

RegisterPluginInfoServiceServer registers the server for the buf.plugin.info.v1.PluginInfoService service.

Types

type PluginInfoServiceClient

type PluginInfoServiceClient interface {
	// GetPluginInfo gets information about the plugin.
	GetPluginInfo(context.Context, *v1.GetPluginInfoRequest, ...pluginrpc.CallOption) (*v1.GetPluginInfoResponse, error)
}

PluginInfoServiceClient is a client for the buf.plugin.info.v1.PluginInfoService service.

func NewPluginInfoServiceClient

func NewPluginInfoServiceClient(client pluginrpc.Client) (PluginInfoServiceClient, error)

NewPluginInfoServiceClient constructs a client for the buf.plugin.info.v1.PluginInfoService service.

type PluginInfoServiceHandler

type PluginInfoServiceHandler interface {
	// GetPluginInfo gets information about the plugin.
	GetPluginInfo(context.Context, *v1.GetPluginInfoRequest) (*v1.GetPluginInfoResponse, error)
}

PluginInfoServiceHandler is an implementation of the buf.plugin.info.v1.PluginInfoService service.

type PluginInfoServiceServer

type PluginInfoServiceServer interface {
	// GetPluginInfo gets information about the plugin.
	GetPluginInfo(context.Context, pluginrpc.HandleEnv, ...pluginrpc.HandleOption) error
}

PluginInfoServiceServer serves the buf.plugin.info.v1.PluginInfoService service.

func NewPluginInfoServiceServer

func NewPluginInfoServiceServer(handler pluginrpc.Handler, pluginInfoServiceHandler PluginInfoServiceHandler) PluginInfoServiceServer

NewPluginInfoServiceServer constructs a server for the buf.plugin.info.v1.PluginInfoService service.

type PluginInfoServiceSpecBuilder

type PluginInfoServiceSpecBuilder struct {
	GetPluginInfo []pluginrpc.ProcedureOption
}

PluginInfoServiceSpecBuilder builds a Spec for the buf.plugin.info.v1.PluginInfoService service.

func (PluginInfoServiceSpecBuilder) Build

Build builds a Spec for the buf.plugin.info.v1.PluginInfoService service.

Jump to

Keyboard shortcuts

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