consumer

package
v0.0.0-...-a79a6e6 Latest Latest
Warning

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

Go to latest
Published: Aug 16, 2022 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var Consumer_ServiceDesc = grpc.ServiceDesc{
	ServiceName: "consumer.Consumer",
	HandlerType: (*ConsumerServer)(nil),
	Methods: []grpc.MethodDesc{
		{
			MethodName: "Start",
			Handler:    _Consumer_Start_Handler,
		},
		{
			MethodName: "Stop",
			Handler:    _Consumer_Stop_Handler,
		},
	},
	Streams:  []grpc.StreamDesc{},
	Metadata: "consumer.proto",
}

Consumer_ServiceDesc is the grpc.ServiceDesc for Consumer 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_consumer_proto protoreflect.FileDescriptor

Functions

func RegisterConsumerServer

func RegisterConsumerServer(s grpc.ServiceRegistrar, srv ConsumerServer)

Types

type ConsumerClient

type ConsumerClient interface {
	Start(ctx context.Context, in *ConsumerRequest, opts ...grpc.CallOption) (*ConsumerResponse, error)
	Stop(ctx context.Context, in *ConsumerRequest, opts ...grpc.CallOption) (*ConsumerResponse, error)
}

ConsumerClient is the client API for Consumer 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 NewConsumerClient

func NewConsumerClient(cc grpc.ClientConnInterface) ConsumerClient

type ConsumerRequest

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

func (*ConsumerRequest) Descriptor deprecated

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

Deprecated: Use ConsumerRequest.ProtoReflect.Descriptor instead.

func (*ConsumerRequest) GetFeedtype

func (x *ConsumerRequest) GetFeedtype() string

func (*ConsumerRequest) ProtoMessage

func (*ConsumerRequest) ProtoMessage()

func (*ConsumerRequest) ProtoReflect

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

func (*ConsumerRequest) Reset

func (x *ConsumerRequest) Reset()

func (*ConsumerRequest) String

func (x *ConsumerRequest) String() string

type ConsumerResponse

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

func (*ConsumerResponse) Descriptor deprecated

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

Deprecated: Use ConsumerResponse.ProtoReflect.Descriptor instead.

func (*ConsumerResponse) GetResult

func (x *ConsumerResponse) GetResult() string

func (*ConsumerResponse) ProtoMessage

func (*ConsumerResponse) ProtoMessage()

func (*ConsumerResponse) ProtoReflect

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

func (*ConsumerResponse) Reset

func (x *ConsumerResponse) Reset()

func (*ConsumerResponse) String

func (x *ConsumerResponse) String() string

type ConsumerServer

type ConsumerServer interface {
	Start(context.Context, *ConsumerRequest) (*ConsumerResponse, error)
	Stop(context.Context, *ConsumerRequest) (*ConsumerResponse, error)
	// contains filtered or unexported methods
}

ConsumerServer is the server API for Consumer service. All implementations must embed UnimplementedConsumerServer for forward compatibility

type UnimplementedConsumerServer

type UnimplementedConsumerServer struct {
}

UnimplementedConsumerServer must be embedded to have forward compatible implementations.

func (UnimplementedConsumerServer) Start

func (UnimplementedConsumerServer) Stop

type UnsafeConsumerServer

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

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

Jump to

Keyboard shortcuts

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