Proto

package
v0.0.0-...-e195814 Latest Latest
Warning

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

Go to latest
Published: Oct 5, 2022 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var File_proto_template_proto protoreflect.FileDescriptor
View Source
var GetCurrentTime_ServiceDesc = grpc.ServiceDesc{
	ServiceName: "Proto.getCurrentTime",
	HandlerType: (*GetCurrentTimeServer)(nil),
	Methods: []grpc.MethodDesc{
		{
			MethodName: "getTime",
			Handler:    _GetCurrentTime_GetTime_Handler,
		},
	},
	Streams:  []grpc.StreamDesc{},
	Metadata: "proto/template.proto",
}

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

Functions

func RegisterGetCurrentTimeServer

func RegisterGetCurrentTimeServer(s grpc.ServiceRegistrar, srv GetCurrentTimeServer)

Types

type GetCurrentTimeClient

type GetCurrentTimeClient interface {
	GetTime(ctx context.Context, in *GetTimeRequest, opts ...grpc.CallOption) (*GetTimeReply, error)
}

GetCurrentTimeClient is the client API for GetCurrentTime 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 GetCurrentTimeServer

type GetCurrentTimeServer interface {
	GetTime(context.Context, *GetTimeRequest) (*GetTimeReply, error)
	// contains filtered or unexported methods
}

GetCurrentTimeServer is the server API for GetCurrentTime service. All implementations must embed UnimplementedGetCurrentTimeServer for forward compatibility

type GetTimeReply

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

func (*GetTimeReply) Descriptor deprecated

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

Deprecated: Use GetTimeReply.ProtoReflect.Descriptor instead.

func (*GetTimeReply) GetReply

func (x *GetTimeReply) GetReply() string

func (*GetTimeReply) ProtoMessage

func (*GetTimeReply) ProtoMessage()

func (*GetTimeReply) ProtoReflect

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

func (*GetTimeReply) Reset

func (x *GetTimeReply) Reset()

func (*GetTimeReply) String

func (x *GetTimeReply) String() string

type GetTimeRequest

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

func (*GetTimeRequest) Descriptor deprecated

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

Deprecated: Use GetTimeRequest.ProtoReflect.Descriptor instead.

func (*GetTimeRequest) ProtoMessage

func (*GetTimeRequest) ProtoMessage()

func (*GetTimeRequest) ProtoReflect

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

func (*GetTimeRequest) Reset

func (x *GetTimeRequest) Reset()

func (*GetTimeRequest) String

func (x *GetTimeRequest) String() string

type UnimplementedGetCurrentTimeServer

type UnimplementedGetCurrentTimeServer struct {
}

UnimplementedGetCurrentTimeServer must be embedded to have forward compatible implementations.

func (UnimplementedGetCurrentTimeServer) GetTime

type UnsafeGetCurrentTimeServer

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

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

Jump to

Keyboard shortcuts

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