proto

package
v3.4.1 Latest Latest
Warning

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

Go to latest
Published: Aug 14, 2023 License: GPL-3.0 Imports: 10 Imported by: 0

Documentation

Overview

Package proto provides the gRPC definition of the focus service.

Index

Constants

This section is empty.

Variables

View Source
var File_focus_proto protoreflect.FileDescriptor
View Source
var Focus_ServiceDesc = grpc.ServiceDesc{
	ServiceName: "focus.Focus",
	HandlerType: (*FocusServer)(nil),
	Methods: []grpc.MethodDesc{
		{
			MethodName: "Raise",
			Handler:    _Focus_Raise_Handler,
		},
		{
			MethodName: "Version",
			Handler:    _Focus_Version_Handler,
		},
	},
	Streams:  []grpc.StreamDesc{},
	Metadata: "focus.proto",
}

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

Functions

func RegisterFocusServer

func RegisterFocusServer(s grpc.ServiceRegistrar, srv FocusServer)

Types

type FocusClient

type FocusClient interface {
	Raise(ctx context.Context, in *wrapperspb.StringValue, opts ...grpc.CallOption) (*emptypb.Empty, error)
	Version(ctx context.Context, in *emptypb.Empty, opts ...grpc.CallOption) (*VersionResponse, error)
}

FocusClient is the client API for Focus 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.

func NewFocusClient

func NewFocusClient(cc grpc.ClientConnInterface) FocusClient

type FocusServer

type FocusServer interface {
	Raise(context.Context, *wrapperspb.StringValue) (*emptypb.Empty, error)
	Version(context.Context, *emptypb.Empty) (*VersionResponse, error)
	// contains filtered or unexported methods
}

FocusServer is the server API for Focus service. All implementations must embed UnimplementedFocusServer for forward compatibility

type UnimplementedFocusServer

type UnimplementedFocusServer struct {
}

UnimplementedFocusServer must be embedded to have forward compatible implementations.

func (UnimplementedFocusServer) Raise

func (UnimplementedFocusServer) Version

type UnsafeFocusServer

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

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

type VersionResponse

type VersionResponse struct {
	Version string `protobuf:"bytes,1,opt,name=version,proto3" json:"version,omitempty"`
	// contains filtered or unexported fields
}

func (*VersionResponse) Descriptor deprecated

func (*VersionResponse) Descriptor() ([]byte, []int)

Deprecated: Use VersionResponse.ProtoReflect.Descriptor instead.

func (*VersionResponse) GetVersion

func (x *VersionResponse) GetVersion() string

func (*VersionResponse) ProtoMessage

func (*VersionResponse) ProtoMessage()

func (*VersionResponse) ProtoReflect

func (x *VersionResponse) ProtoReflect() protoreflect.Message

func (*VersionResponse) Reset

func (x *VersionResponse) Reset()

func (*VersionResponse) String

func (x *VersionResponse) String() string

Jump to

Keyboard shortcuts

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