hourhand

package
v0.0.0-...-7c9a8cc Latest Latest
Warning

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

Go to latest
Published: Sep 7, 2021 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var File_hourhand_v1_hourhand_proto protoreflect.FileDescriptor
View Source
var HourHand_ServiceDesc = grpc.ServiceDesc{
	ServiceName: "daprclock.hourhand.v1.HourHand",
	HandlerType: (*HourHandServer)(nil),
	Methods: []grpc.MethodDesc{
		{
			MethodName: "Now",
			Handler:    _HourHand_Now_Handler,
		},
	},
	Streams:  []grpc.StreamDesc{},
	Metadata: "hourhand/v1/hourhand.proto",
}

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

Functions

func RegisterHourHandServer

func RegisterHourHandServer(s grpc.ServiceRegistrar, srv HourHandServer)

Types

type HourHandClient

type HourHandClient interface {
	Now(ctx context.Context, in *NowRequest, opts ...grpc.CallOption) (*NowResponse, error)
}

HourHandClient is the client API for HourHand 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 NewHourHandClient

func NewHourHandClient(cc grpc.ClientConnInterface) HourHandClient

type HourHandServer

type HourHandServer interface {
	Now(context.Context, *NowRequest) (*NowResponse, error)
	// contains filtered or unexported methods
}

HourHandServer is the server API for HourHand service. All implementations must embed UnimplementedHourHandServer for forward compatibility

type NowRequest

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

func (*NowRequest) Descriptor deprecated

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

Deprecated: Use NowRequest.ProtoReflect.Descriptor instead.

func (*NowRequest) ProtoMessage

func (*NowRequest) ProtoMessage()

func (*NowRequest) ProtoReflect

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

func (*NowRequest) Reset

func (x *NowRequest) Reset()

func (*NowRequest) String

func (x *NowRequest) String() string

type NowResponse

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

func (*NowResponse) Descriptor deprecated

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

Deprecated: Use NowResponse.ProtoReflect.Descriptor instead.

func (*NowResponse) GetHour

func (x *NowResponse) GetHour() string

func (*NowResponse) ProtoMessage

func (*NowResponse) ProtoMessage()

func (*NowResponse) ProtoReflect

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

func (*NowResponse) Reset

func (x *NowResponse) Reset()

func (*NowResponse) String

func (x *NowResponse) String() string

type UnimplementedHourHandServer

type UnimplementedHourHandServer struct {
}

UnimplementedHourHandServer must be embedded to have forward compatible implementations.

func (UnimplementedHourHandServer) Now

type UnsafeHourHandServer

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

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

Jump to

Keyboard shortcuts

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