infov1grpc

package
v1.5.1-20240928010732-... Latest Latest
Warning

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

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

Documentation

Index

Constants

View Source
const (
	InfoService_GetInfo_FullMethodName = "/buf.plugin.info.v1.InfoService/GetInfo"
)

Variables

View Source
var InfoService_ServiceDesc = grpc.ServiceDesc{
	ServiceName: "buf.plugin.info.v1.InfoService",
	HandlerType: (*InfoServiceServer)(nil),
	Methods: []grpc.MethodDesc{
		{
			MethodName: "GetInfo",
			Handler:    _InfoService_GetInfo_Handler,
		},
	},
	Streams:  []grpc.StreamDesc{},
	Metadata: "buf/plugin/info/v1/info_service.proto",
}

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

Functions

func RegisterInfoServiceServer

func RegisterInfoServiceServer(s grpc.ServiceRegistrar, srv InfoServiceServer)

Types

type InfoServiceClient

type InfoServiceClient interface {
	// GetInfo gets information about the plugin.
	GetInfo(ctx context.Context, in *v1.GetInfoRequest, opts ...grpc.CallOption) (*v1.GetInfoResponse, error)
}

InfoServiceClient is the client API for InfoService 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.

The service that returns information about the plugin.

func NewInfoServiceClient

func NewInfoServiceClient(cc grpc.ClientConnInterface) InfoServiceClient

type InfoServiceServer

type InfoServiceServer interface {
	// GetInfo gets information about the plugin.
	GetInfo(context.Context, *v1.GetInfoRequest) (*v1.GetInfoResponse, error)
}

InfoServiceServer is the server API for InfoService service. All implementations should embed UnimplementedInfoServiceServer for forward compatibility.

The service that returns information about the plugin.

type UnimplementedInfoServiceServer

type UnimplementedInfoServiceServer struct{}

UnimplementedInfoServiceServer should be embedded to have forward compatible implementations.

NOTE: this should be embedded by value instead of pointer to avoid a nil pointer dereference when methods are called.

func (UnimplementedInfoServiceServer) GetInfo

type UnsafeInfoServiceServer

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

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

Jump to

Keyboard shortcuts

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