secondhand

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_secondhand_v1_secondhand_proto protoreflect.FileDescriptor
View Source
var SecondHand_ServiceDesc = grpc.ServiceDesc{
	ServiceName: "daprclock.secondhand.v1.SecondHand",
	HandlerType: (*SecondHandServer)(nil),
	Methods: []grpc.MethodDesc{
		{
			MethodName: "Now",
			Handler:    _SecondHand_Now_Handler,
		},
	},
	Streams:  []grpc.StreamDesc{},
	Metadata: "secondhand/v1/secondhand.proto",
}

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

Functions

func RegisterSecondHandServer

func RegisterSecondHandServer(s grpc.ServiceRegistrar, srv SecondHandServer)

Types

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 {
	Second string `protobuf:"bytes,1,opt,name=second,proto3" json:"second,omitempty"`
	// contains filtered or unexported fields
}

func (*NowResponse) Descriptor deprecated

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

Deprecated: Use NowResponse.ProtoReflect.Descriptor instead.

func (*NowResponse) GetSecond

func (x *NowResponse) GetSecond() 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 SecondHandClient

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

SecondHandClient is the client API for SecondHand 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 NewSecondHandClient

func NewSecondHandClient(cc grpc.ClientConnInterface) SecondHandClient

type SecondHandServer

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

SecondHandServer is the server API for SecondHand service. All implementations must embed UnimplementedSecondHandServer for forward compatibility

type UnimplementedSecondHandServer

type UnimplementedSecondHandServer struct {
}

UnimplementedSecondHandServer must be embedded to have forward compatible implementations.

func (UnimplementedSecondHandServer) Now

type UnsafeSecondHandServer

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

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

Jump to

Keyboard shortcuts

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