test_proto

package
v0.0.0-...-b3bb595 Latest Latest
Warning

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

Go to latest
Published: Apr 22, 2024 License: MPL-2.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var Chiller_ServiceDesc = grpc.ServiceDesc{
	ServiceName: "Chiller",
	HandlerType: (*ChillerServer)(nil),
	Methods: []grpc.MethodDesc{
		{
			MethodName: "Chill",
			Handler:    _Chiller_Chill_Handler,
		},
	},
	Streams:  []grpc.StreamDesc{},
	Metadata: "interceptors_test.proto",
}

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

View Source
var File_interceptors_test_proto protoreflect.FileDescriptor

Functions

func RegisterChillerServer

func RegisterChillerServer(s grpc.ServiceRegistrar, srv ChillerServer)

Types

type ChillerClient

type ChillerClient interface {
	// Sleep for the given amount of time, and return the amount of time slept.
	Chill(ctx context.Context, in *Time, opts ...grpc.CallOption) (*Time, error)
}

ChillerClient is the client API for Chiller 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 NewChillerClient

func NewChillerClient(cc grpc.ClientConnInterface) ChillerClient

type ChillerServer

type ChillerServer interface {
	// Sleep for the given amount of time, and return the amount of time slept.
	Chill(context.Context, *Time) (*Time, error)
	// contains filtered or unexported methods
}

ChillerServer is the server API for Chiller service. All implementations must embed UnimplementedChillerServer for forward compatibility

type Time

type Time struct {
	Duration *durationpb.Duration `protobuf:"bytes,2,opt,name=duration,proto3" json:"duration,omitempty"`
	// contains filtered or unexported fields
}

func (*Time) Descriptor deprecated

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

Deprecated: Use Time.ProtoReflect.Descriptor instead.

func (*Time) GetDuration

func (x *Time) GetDuration() *durationpb.Duration

func (*Time) ProtoMessage

func (*Time) ProtoMessage()

func (*Time) ProtoReflect

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

func (*Time) Reset

func (x *Time) Reset()

func (*Time) String

func (x *Time) String() string

type UnimplementedChillerServer

type UnimplementedChillerServer struct {
}

UnimplementedChillerServer must be embedded to have forward compatible implementations.

func (UnimplementedChillerServer) Chill

type UnsafeChillerServer

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

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

Jump to

Keyboard shortcuts

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