Proto

package
v0.0.0-...-ec4e211 Latest Latest
Warning

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

Go to latest
Published: Jan 2, 2022 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var File_proto_proto_proto protoreflect.FileDescriptor
View Source
var Incrementer_ServiceDesc = grpc.ServiceDesc{
	ServiceName: "Proto.Incrementer",
	HandlerType: (*IncrementerServer)(nil),
	Methods: []grpc.MethodDesc{
		{
			MethodName: "Increment",
			Handler:    _Incrementer_Increment_Handler,
		},
	},
	Streams:  []grpc.StreamDesc{},
	Metadata: "proto/proto.proto",
}

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

Functions

func RegisterIncrementerServer

func RegisterIncrementerServer(s grpc.ServiceRegistrar, srv IncrementerServer)

Types

type Empty

type Empty struct {
	// contains filtered or unexported fields
}

func (*Empty) Descriptor deprecated

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

Deprecated: Use Empty.ProtoReflect.Descriptor instead.

func (*Empty) ProtoMessage

func (*Empty) ProtoMessage()

func (*Empty) ProtoReflect

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

func (*Empty) Reset

func (x *Empty) Reset()

func (*Empty) String

func (x *Empty) String() string

type IncrementerClient

type IncrementerClient interface {
	Increment(ctx context.Context, in *Empty, opts ...grpc.CallOption) (*Value, error)
}

IncrementerClient is the client API for Incrementer 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.

type IncrementerServer

type IncrementerServer interface {
	Increment(context.Context, *Empty) (*Value, error)
	// contains filtered or unexported methods
}

IncrementerServer is the server API for Incrementer service. All implementations must embed UnimplementedIncrementerServer for forward compatibility

type UnimplementedIncrementerServer

type UnimplementedIncrementerServer struct {
}

UnimplementedIncrementerServer must be embedded to have forward compatible implementations.

func (UnimplementedIncrementerServer) Increment

type UnsafeIncrementerServer

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

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

type Value

type Value struct {
	CurrentNumber int64 `protobuf:"varint,1,opt,name=currentNumber,proto3" json:"currentNumber,omitempty"`
	// contains filtered or unexported fields
}

func (*Value) Descriptor deprecated

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

Deprecated: Use Value.ProtoReflect.Descriptor instead.

func (*Value) GetCurrentNumber

func (x *Value) GetCurrentNumber() int64

func (*Value) ProtoMessage

func (*Value) ProtoMessage()

func (*Value) ProtoReflect

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

func (*Value) Reset

func (x *Value) Reset()

func (*Value) String

func (x *Value) String() string

Jump to

Keyboard shortcuts

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