mq

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Nov 17, 2020 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Overview

Package mq is a generated protocol buffer package.

It is generated from these files:

github.com/asim/mq/proto/mq.proto

It has these top-level messages:

PubRequest
PubResponse
SubRequest
SubResponse

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func RegisterMQServer

func RegisterMQServer(s *grpc.Server, srv MQServer)

Types

type MQClient

type MQClient interface {
	Pub(ctx context.Context, in *PubRequest, opts ...grpc.CallOption) (*PubResponse, error)
	Sub(ctx context.Context, in *SubRequest, opts ...grpc.CallOption) (MQ_SubClient, error)
}

func NewMQClient

func NewMQClient(cc *grpc.ClientConn) MQClient

type MQServer

type MQServer interface {
	Pub(context.Context, *PubRequest) (*PubResponse, error)
	Sub(*SubRequest, MQ_SubServer) error
}

type MQ_SubClient

type MQ_SubClient interface {
	Recv() (*SubResponse, error)
	grpc.ClientStream
}

type MQ_SubServer

type MQ_SubServer interface {
	Send(*SubResponse) error
	grpc.ServerStream
}

type PubRequest

type PubRequest struct {
	Topic   string `protobuf:"bytes,1,opt,name=topic" json:"topic,omitempty"`
	Payload []byte `protobuf:"bytes,2,opt,name=payload,proto3" json:"payload,omitempty"`
}

func (*PubRequest) Descriptor

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

func (*PubRequest) ProtoMessage

func (*PubRequest) ProtoMessage()

func (*PubRequest) Reset

func (m *PubRequest) Reset()

func (*PubRequest) String

func (m *PubRequest) String() string

type PubResponse

type PubResponse struct {
}

func (*PubResponse) Descriptor

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

func (*PubResponse) ProtoMessage

func (*PubResponse) ProtoMessage()

func (*PubResponse) Reset

func (m *PubResponse) Reset()

func (*PubResponse) String

func (m *PubResponse) String() string

type SubRequest

type SubRequest struct {
	Topic string `protobuf:"bytes,1,opt,name=topic" json:"topic,omitempty"`
}

func (*SubRequest) Descriptor

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

func (*SubRequest) ProtoMessage

func (*SubRequest) ProtoMessage()

func (*SubRequest) Reset

func (m *SubRequest) Reset()

func (*SubRequest) String

func (m *SubRequest) String() string

type SubResponse

type SubResponse struct {
	Payload []byte `protobuf:"bytes,1,opt,name=payload,proto3" json:"payload,omitempty"`
}

func (*SubResponse) Descriptor

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

func (*SubResponse) ProtoMessage

func (*SubResponse) ProtoMessage()

func (*SubResponse) Reset

func (m *SubResponse) Reset()

func (*SubResponse) String

func (m *SubResponse) String() string

Jump to

Keyboard shortcuts

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